Get Market Index
HTTP request
GET /spot/index
Request parameters
Parameter Name | Required | Type | Notes |
---|---|---|---|
market | false | string | List of market names. Use "," to separate multiple market names, a maximum of 10 markets are allowed. An empty string or pass to query all markets. |
Return parameters
Parameter Name | Type | Notes |
---|---|---|
market | string | Market name |
created_at | int | Transaction timestamp (milliseconds) |
price | string | Index price |
sources | array | Index component |
sources[n].exchange | string | Exchange name |
sources[n].created_at | int | Data collection time |
sources[n].index_weight | string | Index weight |
sources[n].index_price | string | Index price |
Request example
GET /spot/index?market=BTCUSDT
Response example
{
"code": 0,
"data": [
{
"market": "BTCUSDT",
"created_at": 1689152421692,
"price": "30718.42",
"sources": [
{
"exchange": "kucoin",
"created_at": 1689152421685,
"index_weight": "1.00000000",
"index_price": "30718.42"
}
]
}
],
"message": "OK"
}