比特幣交易所 比特幣交易所
Ctrl+D 比特幣交易所
ads
首頁 > 波場 > Info

非小號公共API_RIN

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-kxfx":"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-kxfx":"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-kxfx":"幣種的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:ENTRININGSTRIDENT價格BORINGsingularity幣價STRI幣

波場
大幣網(Dcoin)關于APXP暫停充提幣公告_OIN

親愛的大幣網(Dcoin)用戶:由于APXP錢包升級,大幣網(Dcoin)已暫停APXP的充提服務,錢包升級完成后我們將第一時間開放提現服務,具體恢復時間請等待最新公告.

1900/1/1 0:00:00
PearCoin交易所穩定非小號排名前50!_COIN

親愛的PearCoin用戶:非小號于2017年8月正式創立,是區塊鏈行業起步最早的區塊鏈數據資訊平臺之一,專注于為電子貨幣用戶提供數據分析及數據挖掘服務,其使命是“打造中立.

1900/1/1 0:00:00
【獎勵發放】GM新幣活動結束及獎勵發放的公告_MIC

GM新幣活動結束及獎勵發放的公告作者AAXManager過去15分鐘內已更新尊敬的AAX用戶:AAX于11月13日12:00-2021年11月23日12:00(香港時間)舉辦的“充幣&交.

1900/1/1 0:00:00
XT關于暫停XRP充提的公告_XT.com

尊敬的XT用戶: 因XRP錢包維護,XT.COM現已暫停XRP充提業務。給您帶來的不便,請您諒解!感謝您對XT.COM的支持與信任.

1900/1/1 0:00:00
BKEX Global 關于上線 BOBA(Boba Network)并開放充值功能的公告_BOBA

尊敬的用戶:?????????????BKEXGlobal即將上線BOBA,詳情如下:上線交易對:BOBA/USDT幣種類型:ERC20充值功能開放時間:已開放交易功能開放時間:2021年12月.

1900/1/1 0:00:00
Gate.io 支持一鍵參與KSM & DOT插槽拍賣活動火熱進行中(第4次DOT拍賣已開啓)_KSM

Gate.io支持Polkadot平行鏈插槽競拍,用戶點擊進入插槽競拍專題頁面,即可快速查看拍賣進展、項目詳情及常見問題。新用戶請點擊注冊Gate.io並參與理財.

1900/1/1 0:00:00
ads