跳到主要內容

取得市場指數

HTTP 請求

GET /futures/index

請求參數

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

請求回應

參數名類型說明
marketstring市場名稱
created_atint成交時間戳記(毫秒)
pricestring指數價格
sourcesarray指數成分
sources[n].exchangestring交易所名稱
sources[n].created_atint數據採集時間
sources[n].index_weightstring指數權重

請求範例

GET /futures/index?market=BTCUSDT

回應範例

{
"code": 0,
"data": [
{
"market": "BTCUSDT",
"created_at": 1703561120000,
"price": "30718.42",
"sources": [
{
"created_at": 1703561102173,
"exchange": "binance",
"index_weight": "0.25"
},
{
"created_at": 1703561124859,
"exchange": "coinex",
"index_weight": "0.25"
},
{
"created_at": 1703561123704,
"exchange": "mexc",
"index_weight": "0.25"
},
{
"created_at": 1703561125040,
"exchange": "bybit",
"index_weight": "0.25"
}
]
}
],
"message": "OK"
}