Bitget APIBitget API
UTAClassic
Legacy Doc
  • Overview
  • API Documentation
  • WebSocket
  • Agent Hub
  • SDK
  • Changelog
Copied to clipboard
Websocket
Public
    Tickers ChannelCandlestick ChannelDepth ChannelPublic Trades ChannelRPI Depth ChannelLiquidation ChannelInstruments ChannelOpen Interest Limit ChannelPosition Tier ChannelFunding Rate ChannelMargin Loan ChannelMargin Coins Channel
Private
Reality
SBE
Public

Candlestick Channel

Description

Get the candlestick data of the product

  • When there are transactions in the K-line channel, data is pushed once per second.
  • When there are no transactions, data is pushed once at the specified time granularity.

Push logic adjustment

Effective in demo trading on November 4, 2026, and expected in live trading on November 17, 2026: after a successful subscription, this channel will no longer push snapshot data (action=snapshot); only real-time incremental data (action=update) will be pushed. Before the adjustment takes effect, the first push after subscription is a snapshot of recent data. To obtain historical data, please use the corresponding REST API.

Notes for Reality stock (rtoken) symbol subscription

  • Only the market candlestick type is supported.
  • Only the 1m, 5m, 15m, 1H, 4H, 1D intervals are supported.
  • For the 1m interval, volume and turnover are not included in the push data.
Code
{ "op": "subscribe", "args": [ { "instType": "spot", "topic": "kline", "symbol": "BTCUSDT", "interval": "1D" } ] }

Request Parameters

ParameterTypeRequiredDescription
opStringYesAction
subscribe Subscribe
unsubscribe Unsubscribe
argsList<Object>YesSubscribed channel
> instTypeStringYesProduct type
spot Spot trading
usdt-futures USDT futures
coin-futures Coin-M futures
usdc-futures USDC futures
> topicStringYesTopic
kline K-line channel
> symbolStringYesSymbol name
e.g., BTCUSDT
> intervalStringYesInterval
1m, 3m,5m, 15m, 30m, 1H, 4H,6H, 12H, 1D
Code
{ "event": "subscribe", "arg": { "instType": "spot", "topic": "kline", "symbol": "BTCUSDT", "interval": "1D" }, "connId": "xxxxxxxxxx" }

Response Parameters

ParametersTypeDescription
eventStringAction
subscribe Subscribe
unsubscribe Unsubscribe
error Parameter error
argObjectSubscribed channel
> instTypeStringProduct type
spot Spot trading
usdt-futures USDT futures
coin-futures Coin-M futures
usdc-futures USDC futures
> topicStringTopic
kline K-line channel
> symbolStringSymbol name
e.g., BTCUSDT
> intervalStringInterval
codeStringError code
msgStringError message
connIdStringConnection ID
Code
{ "data": [ { "volume": "0.423", "high": "400005", "low": "276670", "start": "1710518400000", "close": "400005", "turnover": "148190.38375", "open": "276670" } ], "arg": { "instType": "spot", "symbol": "BTCUSDT", "topic": "kline", "interval": "1D" }, "action": "update", "ts": 1736370735556 }

Push Parameters

ParametersTypeDescription
argObjectSubscribed channel
> instTypeStringProduct type
spot Spot trading
usdt-futures USDT futures
coin-futures Coin-M futures
usdc-futures USDC futures
> topicStringTopic
kline
> symbolStringSymbol name
actionStringPush data action
snapshot Full data
update Incremental data
After the push logic adjustment takes effect, only update is pushed
dataList<Object>Subscribed data
> startStringThe timestamp that the system generated the data
A Unix timestamp in milliseconds
> openStringOpen price
> closeStringClose price
> highStringHighest price
> lowStringLowest price
> volumeStringTrade Volume
The unit is base coin
> turnoverStringTurnover
The unit is quote coin
Tickers ChannelDepth Channel
JSON
JSON
JSON