Skip to main content

K-line Data

Description

Subscribe to candlestick data.

Pushing Frequency

Real Time

Channel

  • candles_minute_1
  • candles_minute_5
  • candles_minute_10
  • candles_minute_15
  • candles_minute_30
  • candles_hour_1
  • candles_hour_2
  • candles_hour_4
  • candles_hour_6
  • candles_hour_12
  • candles_day_1
  • candles_day_3
  • candles_week_1
  • candles_month_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
> amtStringTrading unit, the quantity of the quote currency.
> qtyStringTrading unit, the quantity of the base currency, or Cont for the number of contracts.
> tCStringNumber of trades
> sTLongStart time
> cTLongEnd time
> tsLongPush time (millisecond)

Request Example

{
"event": "subscribe",
"channel": ["candles_minute_1"],
"symbols": ["BTC_USDT_PERP"]
}

Push Data Example

{
"channel": "candles_minute_1",
"data": [
["BTC_USDT_PERP","57516.97","57545.86","57516.97","57545.86","230.12566","4",1718874240000,1725264420000,1725264479999]
]
}