Channels
Subaccount balances
Channel name: {subaccount_id}.balances. Private channel (requires authentication) that streams balance and position updates for one of your subaccounts, where is the numeric subaccount identifier.
WSS
/
v3
/
ws
Messages
{
"id": 1,
"method": "subscribe",
"params": {
"channels": [
"orderbook.ETH-PERP.10.20"
]
}
}No examples found{
"name": "<string>",
"new_balance": "<string>",
"previous_balance": "<string>",
"update_type": "<string>"
}subscribeRequest
type:object
Send to subscribe: list this channel's address (with the {param} segments filled, e.g. orderbook.ETH-PERP.10.20) in params.channels.
unsubscribeRequest
type:object
Send to unsubscribe: list the channel addresses to drop in params.channels, or omit it to unsubscribe from everything.
subaccountBalancesNotification
type:object
Pushed as a JSON array; each element has the fields below.
Messages
{
"id": 1,
"method": "subscribe",
"params": {
"channels": [
"orderbook.ETH-PERP.10.20"
]
}
}No examples found{
"name": "<string>",
"new_balance": "<string>",
"previous_balance": "<string>",
"update_type": "<string>"
}