Index Price K-line Data
Description
Subscribe to candlestick data for index prices.
Pushing Frequency
The push frequency is the fastest interval 1 second push the data.
Channel
index_candles_minute_1index_candles_minute_5index_candles_minute_10index_candles_minute_15index_candles_minute_30index_candles_hour_1index_candles_hour_2index_candles_hour_4index_candles_hour_12index_candles_day_1index_candles_day_3index_candles_week_1
Request Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| event | Yes | String | Operation: subscribe, unsubscribe |
| channel | Yes | Array | Channel |
| symbols | Yes | Array | trading pair array |
Request Response
| Parameter | Type | Description |
|---|---|---|
| event | String | Operation: subscribe, unsubscribe |
| channel | String | Channel |
| symbols | Array | trading pair array |
| message | String | Error message |
Push Data
| Parameter | Type | Description |
|---|---|---|
| channel | String | Channel |
| data | Array | The subscribed data |
| > s | String | A trading pair |
| > l | String | Lowest price |
| > h | String | Highest price |
| > o | String | Opening price |
| > c | String | Closing price |
| > sT | Long | Start time |
| > cT | Long | End time |
| > ts | Long | Push time (millisecond) |
Request Example
{
"event": "subscribe",
"channel": ["index_candles_minute_1"],
"symbols": ["BTC_USDT_PERP"]
}
Push Data Example
{
"channel": "index_candles_minute_1",
"data": [
["BTC_USDT_PERP","57520.09","57614.9","57520.09","57609.89",1725248760000,1725248819999,1725248813187]
]
}