Account balance
Streams all updates to the total, available, and locked balance for an account
Refer to Websocket for establishing the websocket connection.
Balance
Params
{
"method": "subscribe",
"params": {
"source": "account_balance",
"account": "42trU9A5..."
}
}
Stream
{
"channel": "account_balance",
"data": {
"total": "100000.50",
"available": "75000.25",
"locked": "25000.25",
"t": 1234567890
}
}
Field
Type
Description
'<total>'
decimal string
Total balance
'<available>'
decimal string
Available balance
'<locked>'
decimal string
Locked in margin/orders
't'
number
Timestamp in milliseconds
Last updated