Bitget APIBitget API
UTAClassic
Legacy Doc
  • Overview
  • API Documentation
  • WebSocket
  • Agent Hub
  • SDK
  • Changelog
Copied to clipboard
Websocket
Public
Private
    Place Order ChannelCancel Order ChannelModify Order ChannelOrder ChannelFill ChannelFast Fill ChannelBatch Place Order ChannelBatch Cancel Order ChannelBatch Modify Order ChannelAccount ChannelPositions ChannelADL Notification ChannelStrategy Order Channel
Reality
SBE
Private

Fill Channel

Description

Push real-time fill data.

Push rules:

  1. No push on first-time subscription
  2. Push when spot/leveraged/futures orders are filled
Code
{ "op": "subscribe", "args": [ { "instType": "UTA", "topic": "fill" } ] }

Request Parameters

ParametersTypeDescription
opStringOperation:
subscribe /unsubscribe
argsList<Object>Subscribed channel
> instTypeStringProduct type
UTA Unified trading account
> topicStringTopic
fill
Code
{ "event": "subscribe", "arg": { "instType": "UTA", "topic": "fill" }, "connId": "xxxxxxxxxx" }

Response Parameters

ParametersTypeDescription
eventStringOperation
subscribe / unsubscribe / error
argObjectSubscribed channel
> instTypeStringProduct type
UTA
> topicStringTopic
fill
codeStringError code
msgStringError message
connIdStringConnection ID
Code
{ "data": [ { "symbol": "BTCUSDT", "orderType": "market", "updatedTime": "1736378720623", "side": "buy", "orderId": "1288888888888888888", "execPnl": "0", "feeDetail": [ { "feeCoin": "USDT", "fee": "0.569958" } ], "execTime": "1736378720623", "tradeScope": "taker", "tradeSide": "open", "execId": "1288888888888888888", "execLinkId": "1288888888888888888", "execPrice": "94993", "holdSide": "long", "execValue": "949.93", "category": "usdt-futures", "execQty": "0.01", "clientOid": "1288888888888888889", "isRPI": "no" } ], "arg": { "instType": "UTA", "topic": "fill" }, "action": "snapshot", "ts": 1733904123981 }

Push Parameters

ParametersTypeDescription
argObjectSubscribed channel
> instTypeStringproduct type
UTA Unified trading account
> topicStringTopic
fill fill
actionStringAction
snapshot Full data
dataList<Object>Subscribed data
> categoryStringProduct type
spot Spot trading
margin Margin trading
usdt-futures USDT futures
coin-futures Coin-M futures
usdc-futures USDC futures
> orderIdStringOrder ID
> clientOidStringClient Order ID
> execIdStringFill ID
> execLinkIdStringExecution correlation ID
> symbolStringSymbol name
> orderTypeStringOrder type
limit/market
> sideStringTrade side
buy/sell
> holdSideStringPosition direction
long: Long
short: Short
> tradeSideStringTrade side
open/close
Detailed enumerations can be obtained on the Enumeration page.
> execPriceStringFill price
> execQtyStringFill quantity
The unit is base coin
> execValueStringFill value
The unit is quote coin
> execPnlStringExecution profit and loss
> tradeScopeStringTrade scope
taker/maker
> feeDetailStringFee detail
>> feeCoinStringFee coin
>> feeStringTotal fee
> execTimeStringExecution timestamp
A Unix timestamp in milliseconds. e.g.,1622697148123
> updatedTimeStringUpdated timestamp
A Unix timestamp in milliseconds. e.g.,1622697148123
> isRPIStringWhether it is an RPI fill
yes Yes
no No
Order ChannelFast Fill Channel
JSON
JSON
JSON