Balance Channel
Channel Update Frequency : On update
The websocket will reply with the shown success response format for subscribed assets with changed balances.
If a subscription has been made to balance:all, the data array in the message from this balance channel will contain a JSON list, otherwise the data array will contain a single JSON corresponding to one spot asset per asset channel subscription.
Request Parameters
op
STRING
Yes
subscribe
args
LIST
Yes
balance:all
or a list of individual assets balance:<assetId>
tag
INTEGER or STRING
No
If given it will be echoed in the reply and the max size of tag
is 32
Channel Update Fields
table
STRING
balance
accountId
STRING
Account identifier
timestamp
STRING
Current millisecond timestamp
tradeType
STRING
LINEAR
, STANDARD
, PORTFOLIO
data
LIST of dictionaries
total
STRING
Total spot asset balance
reserved
STRING
Reserved asset balance for working spot and repo orders
instrumentId
STRING
Base asset ID e.g. BTC
available
STRING
Remaining available asset balance (total - reserved)
locked
STRING
Temporarily locked asset balance
quantityLastUpdated
STRING
Millisecond timestamp
Last updated