取得市場指數
HTTP 請求
GET /futures/index
請求參數
| 參數名 | 是否必須 | 類型 | 說明 |
|---|---|---|---|
| market | false | string | 市場名列表,多個市場名之間使用英文","分隔,限制最多10個市場,空字串或不傳表示查詢全部市場 |
請求回應
| 參數名 | 類型 | 說明 |
|---|---|---|
| market | string | 市場名稱 |
| created_at | int | 成交時間戳記(毫秒) |
| price | string | 指數價格 |
| sources | array | 指數成分 |
| sources[n].exchange | string | 交易所名稱 |
| sources[n].created_at | int | 數據採集時間 |
| sources[n].index_weight | string | 指數權重 |
請求範例
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"
}