Skip to main content

Mark Price K-line Data

Description

Subscribe to candlestick data that marks prices.

Pushing Frequency

The push frequency is the fastest interval 1 second push the data.

Channel

  • mark_price_candles_minute_1
  • mark_price_candles_minute_5
  • mark_price_candles_minute_10
  • mark_price_candles_minute_15
  • mark_candles_minute_30
  • mark_candles_hour_1
  • mark_candles_hour_2
  • mark_candles_hour_4
  • mark_candles_hour_12
  • mark_candles_day_1
  • mark_candles_day_3
  • mark_candles_week_1

Request Parameters

ParameterRequiredTypeDescription
eventYesStringOperation: subscribe, unsubscribe
channelYesArrayChannel
symbolsArraytrading 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": ["mark_price_candles_minute_1"],
"symbols": ["BTC_USDT_PERP"]
}

Push Data Example

{
"channel": "mark_price_candles_minute_1",
"data": [
["BTC_USDT_PERP","57800.17","57815.95","57809.65","57800.17",1725264900000,1725264959999,1725264919140]
]
}