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 Channel
Private
Reality
SBE
Public

Public Trades Channel

Description

To subscribe the public trades channel

During Reality market closed hours, on-exchange trade data can be obtained via this channel; during market open hours, off-exchange trade data is currently available via Get Reality Fills.

Real-time Push

Code
{ "op": "subscribe", "args": [ { "instType": "usdt-futures", "topic": "publicTrade", "symbol": "BTCUSDT" } ] }

Request Parameters

ParametersTypeRequiredDescription
opStringYesOperation
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
publicTrade Public trade
> symbolStringYesSymbol name
e.g. BTCUSDT
Code
{ "event": "subscribe", "arg": { "instType": "usdt-futures", "topic": "publicTrade", "symbol": "BTCUSDT" }, "connId": "xxxxxxxxxx" }

Response Parameters

ParametersTypeDescription
eventStringOperation
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
publicTrade Public trade channel
> symbolStringSymbol name
codeStringError code
msgStringError message
connIdStringConnection ID
Code
{ "data": [ { "p": "100000", "S": "buy", "T": "1736348770627", "v": "0.00118", "i": "1260903622036942849", "L": "1234568787787878787", "isRPI": "no" } ], "arg": { "instType": "usdt-futures", "symbol": "BTCUSDT", "topic": "publicTrade" }, "action": "snapshot", "ts": 1736371104297 }

Push Parameters

ParametersTypeDescription
argObjectSubscribed channel
> instTypeStringProduct type
spot Spot trading
usdt-futures USDT futures
coin-futures Coin-M futures
usdc-futures USDC futures
> topicStringTopic
publicTrade
> symbolStringSymbol name
actionStringPush data action
snapshot Full data
update Incremental data
dataList<Object>Subscribed data
> iStringFill execution ID
> LStringExecution correlation ID
> pStringFill price
> vStringFill size
COIN-Futures:The unit is quote coin
Others:The unit is base coin
> SStringFill side
sell/buy
> TStringFill timestamp
A Unix timestamp in milliseconds
> isRPIStringWhether it is an RPI fill
yes Yes
no No
Depth ChannelRPI Depth Channel
JSON
JSON
JSON