K-line Streams
Subscribe
{
"method": "SUBSCRIPTION",
"params": [
"spot@public.kline.v3.api.pb@BTCUSDT@Min15"
]
}
The K-line stream pushes updates for the requested K-line type every second (latest candle).
Request Parameters spot@public.kline.v3.api.pb@<symbol>@<interval>
Response Parameters
| Parameter | Data Type | Description |
|---|---|---|
| publicspotkline | object | K-line information |
| interval | interval | K-line interval |
| windowstart | long | Start time of the K-line |
| openingprice | bigDecimal | Opening trade price during this K-line |
| closingprice | bigDecimal | Closing trade price during this K-line |
| highestprice | bigDecimal | Highest trade price during this K-line |
| lowestprice | bigDecimal | Lowest trade price during this K-line |
| volume | bigDecimal | Trade volume during this K-line |
| amount | bigDecimal | Trade amount during this K-line |
| windowend | long | End time of the K-line |
| symbol | string | Trading pair |
| symbolid | string | Trading pair ID |
| createtime | long | Event time |
K-line interval parameters:
Min -> minutes; Hour -> hours; Day -> days; Week -> weeks; M -> month
- Min1
- Min5
- Min15
- Min30
- Min60
- Hour4
- Hour8
- Day1
- Week1
- Month1
Sample data
{
"channel": "spot@public.kline.v3.api.pb@BTCUSDT@Min15",
"publicspotkline": {
"interval": "Min15",
"windowstart": 1736410500,
"openingprice": "92925",
"closingprice": "93158.47",
"highestprice": "93158.47",
"lowestprice": "92800",
"volume": "36.83803224",
"amount": "3424811.05",
"windowend": 1736411400
},
"symbol": "BTCUSDT",
"symbolid": "2fb942154ef44a4ab2ef98c8afb6a4a7",
"createtime": 1736410707571
}