跳到主要內容

取得市場行情

HTTP 請求

GET /spot/ticker

請求參數

參數名是否必須類型說明
marketfalsestring市場名列表,多個市場名之間使用英文","分隔,限制最多10個市場,空字串或不傳表示查詢全部市場

請求回應

參數名類型說明
marketstring市場名稱
laststring最新價格
openstring開盤價
closestring收盤價
highstring最高價
lowstring最低價
volumestring成交量
valuestring成交額
volume_sellstring賣一量
volume_buystring買一量
periodint週期,固定為86400,表示該資料是一天的值

回應範例

GET /spot/ticker?market=LATUSDT,ELONUSDT

回應範例

{
"code": 0,
"data": [
{
"market": "LATUSDT",
"last": "0.008157",
"open": "0.008286",
"close": "0.008157",
"high": "0.008390",
"low": "0.008106",
"volume": "807714.49139758",
"volume_sell": "286170.69645599",
"volume_buy": "266161.23236408",
"value": "6689.21644207",
"period": 86400
},
{
"market": "ELONUSDT",
"last": "0.000000152823",
"open": "0.000000158650",
"close": "0.000000152823",
"high": "0.000000159474",
"low": "0.000000147026",
"volume": "88014042237.15",
"volume_sell": "11455578769.13",
"volume_buy": "17047669612.10",
"value": "13345.65122447",
"period": 86400
}
],
"message": "OK"
}