以太坊價格 以太坊價格
Ctrl+D 以太坊價格
ads
首頁 > AVAX > Info

ING:非小號公共API

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-irjw":"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-irjw":"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-irjw":"幣種的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:ENTRININGSTRIContents ProtocolRIN幣RIGHT WING MEMENeon District

AVAX
加密貨幣:Messari 2022年加密行業深度研報(五):市場基礎設施

原文來自Messari,原文標題為《CryptoThesesfor2022》,譯者|?W3.Hitchhiker投資者來說很糟糕.

1900/1/1 0:00:00
EXT:XT關于系統升級維護的公告

尊敬的XT用戶: 為了給用戶提供更好的交易體驗,優化產品性能,XT將于2021年12月04日09:00-10:00進行系統升級維護,在此期間將暫停網站和APP上的一切功能.

1900/1/1 0:00:00
COM:AAX 2周年價格競猜活動得獎者名單

AAX2周年價格競猜活動得獎者名單作者AAXManager過去15分鐘內已更新2周年比特幣和AAB價格競猜活動正式結束!感謝大家踴躍參與.

1900/1/1 0:00:00
GLO:關於下線KDAG, CUST, YAMV2的公告

尊敬的BitGlobal用戶:基於多次項目審查和溝通,我們決定於2021年12月8日15:00(UTC8)停止交易並下架以下幣種:KDAG,CUST.

1900/1/1 0:00:00
LYG:學習RAMP知識,贏150,000美元大獎

活動時間:2021年12月03日08:00至2021年12月10日07:59點擊按鈕,立刻參與活動活動一:動手指漲知識,分享70,000美元等值RAMP活動期間,參與指定RAMP交易對交易.

1900/1/1 0:00:00
區塊鏈:新功能上線:Whales Tracking

NFT世界中,巨鯨指的是市場中一類重要的專業玩家。他們憑借龐大的資金量以及對行業的超前認知賺取收益,甚至影響市場走向。如今,NFT市場方興未艾,一些巨鯨正在悄然聚集.

1900/1/1 0:00:00
ads