Skip to main content

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_1
  • index_candles_minute_5
  • index_candles_minute_10
  • index_candles_minute_15
  • index_candles_minute_30
  • index_candles_hour_1
  • index_candles_hour_2
  • index_candles_hour_4
  • index_candles_hour_12
  • index_candles_day_1
  • index_candles_day_3
  • index_candles_week_1

Request Parameters

ParameterRequiredTypeDescription
eventYesStringOperation: subscribe, unsubscribe
channelYesArrayChannel
symbolsYesArraytrading pair array

Request Response

ParameterTypeDescription
eventStringOperation: subscribe, unsubscribe
channelStringChannel
symbolsArraytrading pair array
messageStringError message

Push Data

ParameterTypeDescription
channelStringChannel
dataArrayThe subscribed data
> sStringA trading pair
> lStringLowest price
> hStringHighest price
> oStringOpening price
> cStringClosing price
> sTLongStart time
> cTLongEnd time
> tsLongPush 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]
]
}