Skip to main content

K-line

request

 

format: kline_{interval}@{symbol}

interval: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 2d, 3d, 1w, 1M

eg: kline_5m@btc_usdt

rate: real

 

The envelope ch is the family name kline (without the interval); the interval is in event and data.i.

Response

{
"ch": "kline", // channel family (no interval)
"event": "kline_5m@btc_usdt", // subscription string
"data": {
"s": "btc_usdt", // symbol
"p": "last", // price type (spot is always last)
"o": "44000", // open price
"c": "50000", // close price
"h": "52000", // highest price
"l": "36000", // lowest price
"v": "34.2", // quantity (base)
"uv": "230000", // volume (quote)
"i": "5m", // interval
"t": 1656043200000 // start time (ms)
}
}