以太坊交易所 以太坊交易所
Ctrl+D 以太坊交易所
ads

非小號公共API_RIN:ING

Author:

Time:1900/1/1 0:00:00

非小號公共API

FeixiaohaoAPI是一套高性能的RESTful接口,專門設計用于滿足應用程序開發人員、數據科學家和企業業務平臺的需求。

------------------------------------------------------------------------------------

終結點

FeixiaohaoAPI目前只有1個頂級目錄。

目錄:https://fxhapi.feixiaohao.info/public/v1/ticker/*

描述:返回加密貨幣數據,如有序加密貨幣列表或價格和數量數據。

------------------------------------------------------------------------------------

快速開始

Ticker(行情)

更新頻率:1分鐘更新一次

訪問方式:

GET

URL參數

可選:

start=(指定結果集的開始排名)

limit=(指定結果集的最大數量)

convert=(將返回的price,24hvolume,和marketcap字段轉換到指定貨幣單位并補充到結果對象.可用的貨幣單位有:"AUD","BRL","CAD","CHF","CLP","CNY","CZK","DKK","EUR","GBP","HKD","HUF","IDR","ILS","INR","JPY","KRW","MXN","MYR","NOK","NZD","PHP","PKR","PLN","RUB","SEK","SGD","THB","TRY","TWD","ZAR")

訪問成功:

返回碼:200

返回內容:

[

{

"id":"bitcoin",

"name":"Bitcoin",

"symbol":"BTC",

"rank":1,

"logo-ubxx":"https://s1.bqiapp.com/coin/20181030_72_webp/bitcoin_200_200.webp",

"logo_png":"https://s1.bqiapp.com/coin/20181030_72_png/bitcoin_200_200.png",

"price_usd":5225,

"price_btc":1,

"volume_24h_usd":5150321567,

"market_cap_usd":92163602317,

"available_supply":17637575,

"total_supply":17637575,

"max_supply":21000000,

"percent_change_1h":0.21,

"percent_change_24h":0.64,

"percent_change_7d":6,

"last_updated":1554886833

},

{

"id":"ethereum",

"name":"Ethereum",

"symbol":"ETH",

"rank":2,

"logo-ubxx":"https://s1.bqiapp.com/coin/20181030_72_webp/ethereum_200_200.webp",

"logo_png":"https://s1.bqiapp.com/coin/20181030_72_png/ethereum_200_200.png",

"price_usd":179.65,

"price_btc":0.0344,

"volume_24h_usd":2766496907,

"market_cap_usd":18971178569,

"available_supply":105598041,

"total_supply":105598041,

"max_supply":105598041,

"percent_change_1h":0.35,

"percent_change_24h":2.18,

"percent_change_7d":8.42,

"last_updated":1554886833

}

]

其中各字段的說明如下:

"id":"幣種代碼",

"name":"幣種英文名稱",

"symbol":"幣種的簡稱",

"rank":幣種的排名,

"logo-ubxx":"幣種的logo",

"logo_png":"幣種的logo",

"price_usd":最新價格,

"price_btc":最新價格,

"volume_24h_usd":24h的成交額,

"market_cap_usd":流通市值,

"available_supply":流通數量,

"total_supply":總發行量,

"max_supply":最大發行量,

"percent_change_1h":1小時漲跌幅,

"percent_change_24h":24小時漲跌幅,

"percent_change_7d":7天漲跌幅,

"last_updated":行情更新時間

訪問失敗:

返回碼:401/403或者429

內容:{"message":"APIratelimitexceeded"}

示例請求:

CURL:

curl-H"Accept:application/json"-G"https://fxhapi.feixiaohao.com/public/v1/ticker?limit=5"

C#:

usingSystem;

usingSystem.Net;

usingSystem.Web;

classCSharpExample

{

publicstaticvoidMain(stringargs)

{

try

{

Console.WriteLine(makeAPICall());

}

catch(WebExceptione)

{

Console.WriteLine(e.Message);

}

}

staticstringmakeAPICall()

{

varURL=newUriBuilder("https://fxhapi.feixiaohao.com/public/v1/ticker");

varqueryString=System.Web.HttpUtility.ParseQueryString(string.Empty);

queryString="5";

queryString="5";

queryString="USD";

URL.Query=queryString.ToString();

varclient=newSystem.Net.WebClient();

client.Headers.Add("Accepts","application/json");

returnclient.DownloadString(URL.ToString());

}

}

Java:

importjava.io.IOException;

importjava.net.URISyntaxException;

importjava.util.ArrayList;

importjava.util.List;

publicclassJavaExample{

publicstaticvoidmain(Stringargs){

Stringuri="https://fxhapi.feixiaohao.com/public/v1/ticker";

Listparatmers=newArrayList();

paratmers.add(newBasicNameValuePair("start","5"));

paratmers.add(newBasicNameValuePair("limit","5"));

paratmers.add(newBasicNameValuePair("convert","USD"));

try{

Stringresult=makeAPICall(uri,paratmers);

System.out.println(result);

}catch(IOExceptione){

System.out.println("Error:cannontaccesscontent-"+e.toString());

}catch(URISyntaxExceptione){

System.out.println("Error:InvalidURL"+e.toString());

}

}

publicstaticStringmakeAPICall(Stringuri,Listparameters)

throwsURISyntaxException,IOException{

Stringresponse_content="";

URIBuilderquery=newURIBuilder(uri);

query.addParameters(parameters);

CloseableHttpClientclient=HttpClients.createDefault();

HttpGetrequest=newHttpGet(query.build());

request.setHeader(HttpHeaders.ACCEPT,"application/json");

CloseableHttpResponseresponse=client.execute(request);

try{

System.out.println(response.getStatusLine());

HttpEntityentity=response.getEntity();

response_content=EntityUtils.toString(entity);

EntityUtils.consume(entity);

}finally{

response.close();

}

returnresponse_content;

}

}

Golang:

packagemain

import(

"fmt"

"io/ioutil"

"log"

"net/http"

"net/url"

"os"

)

funcmain(){

client:=&http.Client{}

req,err:=http.NewRequest("GET","https://fxhapi.feixiaohao.com/public/v1/ticker",nil)

iferr!=nil{

log.Print(err)

os.Exit(1)

}

q:=url.Values{}

q.Add("start","5")

q.Add("limit","5")

q.Add("convert","USD")

req.Header.Set("Accepts","application/json")

req.URL.RawQuery=q.Encode()

resp,err:=client.Do(req);

iferr!=nil{

fmt.Println("Errorsendingrequesttoserver")

os.Exit(1)

}

fmt.Println(resp.Status);

respBody,_:=ioutil.ReadAll(resp.Body)

fmt.Println(string(respBody));

}

Tags:ENTRININGSTRIAncient WarriorRINU價格FlamingoTrustRise

酷幣下載
Gate.io ZCX專屬礦池福利,贏$10,000 美元限時獎勵活動公告_GRAM:GAT

Gate.io流動性挖礦產品自上線以來,一直反響熱烈。用戶提供流動性除了可以分享交易手續費外,還可額外獲得限時獎勵池獎金收益.

1900/1/1 0:00:00
2021年已有12省份出手整治虛擬貨幣“挖礦”活動_XEL:十年比特幣動態走勢圖

據經濟觀察網消息,據不完全統計,截至目前,2021年內蒙古、云南、新疆、青海、四川、安徽、河北、江蘇、浙江、福建、江西、海南12省份已出手整治虛擬貨幣“挖礦”活動.

1900/1/1 0:00:00
Messari 2022年加密行業深度研報(十):福利部分,說點我想說的_GAME:Moon Nation Game

原文來自Messari,原文標題為《CryptoThesesfor2022》,譯者|?W3.Hitchhiker第十章福利:說點我想說的福利部分:五點感想我準備在這里說一些真正的alpha和有爭.

1900/1/1 0:00:00
C2C交易相關名詞_DOS:KINE幣

什么是法幣交易?法幣和加密貨幣之間的兌換行為稱之為法幣交易。什么是委托單?用戶發布的購買或出售加密貨幣的需求.

1900/1/1 0:00:00
中幣已發放Songbird(SGB)空投,即將上線SGB/USDT交易_HTT:TPS

尊敬的中幣用戶: ????中幣已根據香港時間2020年12月12日8:00的XRP持倉快照按1XRP=0.1511SGB的比例分發Songbird空投至用戶的現貨賬戶中.

1900/1/1 0:00:00
海南將虛擬貨幣“挖礦”活動列為淘汰類產業_DAG:區塊鏈專業是冷門專業嗎

據南海網12月3日消息,根據國家發改委等11部委出臺的《關于整治虛擬貨幣“挖礦”活動的通知》,為整治虛擬貨幣“挖礦”活動,促進節能減排.

1900/1/1 0:00:00
ads