Skip to main content

K-line Stream

Subscribe to K-line pushes for a specified futures trading pair and interval. Futures-specific: supports the 1s interval.

  • Channel Format: kline@{symbol},{interval}
  • Supported Intervals: 1s 1m 3m 5m 15m 30m 1h 2h 4h 6h 8h 12h 1d 3d 1w 1M
  • Push Frequency: Real-time when data changes; for 1s, one closed K-line per second
  • Access: Public

Subscribe Request

{
"op": "subscribe",
"args": [
"kline@BTC_USDT,1s",
"kline@BTC_USDT,1m"
]
}

Unsubscribe

{
"op": "unsubscribe",
"args": ["kline@BTC_USDT,1s"]
}

Push Example

{
"ch": "kline@BTC_USDT,1s",
"d": {
"s": "BTC_USDT",
"i": "1s",
"ot": 1768205280000,
"ct": 1768205280999,
"o": "49000",
"h": "49100",
"l": "48900",
"c": "49050",
"v": "12.345",
"qv": "605000.50",
"tc": 156,
"bv": "6.123",
"bqv": "300000.25",
"x": true
}
}

Push Fields

FieldTypeDescription
sstringTrading pair
istringInterval (1s, 1m, ...)
otnumberOpen time (milliseconds)
ctnumberClose time (milliseconds)
ostringOpen price
hstringHigh price
lstringLow price
cstringClose price / latest price
vstringVolume (base asset)
qvstringTurnover (quote asset)
tcnumberNumber of trades
bvstringTaker buy volume
bqvstringTaker buy turnover
xbooleanWhether the K-line is closed