Candlestick Channel
Description
Order K-line channel
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| event | String | Yes | Operation: subscribe / unsubscribe |
| channel | String | Yes | Channel name.format: kline.{priceType}.{contractId}.{interval}Example: kline.LAST_PRICE.cmt_btcusdt.MINUTE_1 |
priceType Parameters
| Value | Description |
|---|---|
| LAST_PRICE | Latest price K-line |
| MARK_PRICE | Mark price K-line |
interval Parameters
| Value | Description |
|---|---|
| MINUTE_1 | 1-minute |
| MINUTE_5 | 5-minute |
| MINUTE_15 | 15-minute |
| MINUTE_30 | 30-minute |
| HOUR_1 | 1-hour |
| HOUR_2 | 2-hour |
| HOUR_4 | 4-hour |
| HOUR_6 | 6-hour |
| HOUR_8 | 8-hour |
| HOUR_12 | 12-hour |
| DAY_1 | Daily |
| WEEK_1 | Weekly |
| MONTH_1 | Monthly |
Request Example
{
"event": "subscribe",
"channel": "kline.LAST_PRICE.cmt_btcusdt.MINUTE_1"
}
Response Parameters
| Field | Type | Description |
|---|---|---|
| event | String | Operation: subscribed / unsubscribed |
| channel | String | Channel name |
Subscription Response Example
{
"event": "subscribed",
"channel": "kline.LAST_PRICE.cmt_btcusdt.MINUTE_1"
}
Push Data Parameters
| Field | Type | Description |
|---|---|---|
| event | String | Push action |
| type | String | Type: change (incremental), snapshot (full) |
| channel | String | Channel name |
| data | List | Subscribed data |
| >symbol | String | Product ID |
| >klineTime | String | K-line timestamp |
| >size | String | Trading volume |
| >value | String | Trading amount |
| >high | String | Highest price |
| >low | String | Lowest price |
| >open | String | Opening price |
| >close | String | Closing price |
Push Data Example
{
"event": "payload",
"type": "change",
"channel": "kline.LAST_PRICE.cmt_btcusdt.MINUTE_1",
"data": [
{
"symbol": "cmt_btcusdt",
"klineTime": "1747125660000",
"size": "23.76600",
"value": "2442678.713400",
"high": "102784.6",
"low": "102760.6",
"open": "102760.6",
"close": "102764.0"
}
]
}