K-line Data
Description
Subscribe to candlestick data.
Pushing Frequency
Real Time
Channel
candles_minute_1candles_minute_5candles_minute_10candles_minute_15candles_minute_30candles_hour_1candles_hour_2candles_hour_4candles_hour_6candles_hour_12candles_day_1candles_day_3candles_week_1candles_month_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 |
| > amt | String | Trading unit, the quantity of the quote currency. |
| > qty | String | Trading unit, the quantity of the base currency, or Cont for the number of contracts. |
| > tC | String | Number of trades |
| > sT | Long | Start time |
| > cT | Long | End time |
| > ts | Long | Push 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","91883.46","91958.73","91883.46","91958.73","367.68438","4",2,1741243200000,1741243259999,1741243218348]
]
}