Account Channel
Get the wallet balance updates (polled every 500ms)
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| op | string | Yes | Operation, subscribe unsubscribe |
| args | list | Yes | List of channels to request subscription |
| > instType | string | Yes | Product type: SPOT |
| > channel | string | Yes | Channel name: account |
| > instId | string | No | Product ID (optional, use default) |
Request Example
{
"op": "subscribe",
"args": [
{
"instType": "SPOT",
"channel": "account",
"instId": "default"
}
]
}
Response Example
{
"event": "subscribe",
"arg": {
"instType": "SPOT",
"channel": "account",
"instId": "default"
}
}
Push Parameters
| Parameter | Type | Description |
|---|---|---|
| action | string | Push data action: snapshot / update |
| arg | object | Channels with successful subscription |
| > instType | string | Product type: SPOT |
| > channel | string | Channel name: account |
| > instId | string | Product ID: default |
| data | list | Account data list |
| > coin | string | Token symbol (USDT, BTC, ETH, etc.) |
| > available | string | Available balance |
| > frozen | string | Frozen amount (locked by orders) |
| > locked | string | Admin locked amount |
| > uTime | string | Update time |
| ts | number | Push timestamp |
Push Data
{
"action": "snapshot",
"arg": {
"instType": "SPOT",
"channel": "account",
"instId": "default"
},
"data": [
{
"coin": "USDT",
"available": "10000.00",
"frozen": "500.00",
"locked": "0",
"uTime": "1695716760565"
},
{
"coin": "BTC",
"available": "0.5",
"frozen": "0.1",
"locked": "0",
"uTime": "1695716760565"
}
],
"ts": 1695716761589
}