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

Account Channel

Description

Data will be pushed when the following events occurred:

  1. Push on first-time subscription
  2. Push when spot/margin/futures orders are filled in the unified trading account
  3. Push when the fund settlement is done
  4. Push when balance changes (transfers, airdrops, loans, etc.)
Code
{ "op": "subscribe", "args": [ { "instType": "UTA", "topic": "account" } ] }

Request Parameters

ParameterTypeRequiredDescription
opStringYesOperation
subscribe/unsubscribe
argsList<Object>YesSubscribed channels
> instTypeStringYesProduct Type
UTA Unified trading account
> topicStringYesTopic
account
Code
{ "event": "subscribe", "arg": { "instType": "UTA", "topic": "account" }, "connId": "xxxxxxxxxx" }

Response Parameters

ParameterTypeDescription
eventStringOperation
subscribe Subscribe
unsubscribe Unsubscribe
error Parameter Error
argObjectSubscribed Channel
> instTypeStringProduct Type
UTA
> topicStringTopic
account
codeStringError Code
msgStringError Message
connIdStringConnection ID
Code
{ "data": [{ "unrealisedPnL": "-10116.55", "totalEquity": "4976919.05", "positionMgnRatio": "0", "mmr": "408.08", "effEquity": "4847952.35", "imr": "17795.97", "mgnRatio": "0", "coin": [{ "debts": "0", "balance": "0.9992", "available": "0.9992", "borrow": "0", "locked": "0", "equity": "0.9992", "coin": "ETH", "usdValue": "2488.667472", "bonus": "0" }, { "debts": "0", "balance": "52.00819", "available": "52.00819", "borrow": "0", "locked": "0", "equity": "52.00819", "coin": "BTC", "usdValue": "4630564.31304974", "bonus": "0" }, { "debts": "0", "balance": "354411.45536458", "available": "344282.65536458", "borrow": "0", "locked": "0", "equity": "344282.65536458", "coin": "USDT", "usdValue": "343866.07335159", "bonus": "10" }] }], "arg": { "instType": "UTA", "topic": "account" }, "action": "snapshot", "ts": 1740546523244 }

Push Parameters

ParameterTypeDescription
actionStringAction
snapshot Full data
update Incremental data
tsNumberTimestamp
argObjectSubscribe channel
> instTypeStringProduct type
UTA
> topicStringTopic
account
dataListSubscribed data
> totalEquityStringAccount equity (USD)
> effEquityStringEffective margin (USD)
The net value available for margin in spot and perpetual trades under cross-margin mode, converted to fiat
> mmrStringMaintenance margin (USD)
The minimum margin required to maintain the position, converted to fiat
> imrStringInitial margin (USD) Total initial margin of assets in base coin, converted to fiat
> mgnRatioStringMargin ratio
>positionMgnRatioStringHold position margin ratio
> unrealisedPnLStringUnrealised profit and loss
> coinListCoin list
>> coinStringCoin name
>> balanceStringCoin balance
>> lockedStringLocked amount
Only applicable for spot order placement
>> equityStringCoin equity (USD)
>> usdValueStringCoin value (USD)
>> availableStringAvailable balance
>> borrowStringBorrowed amount
>> debtsStringDebt
Only applicable for margin trading
>> bonusStringUSDT bonus amount
Batch Modify Order ChannelPositions Channel
JSON
JSON
JSON