Account Channel
Get the account balance and margin information
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: USDT-FUTURES |
| > channel | string | Yes | Channel name: account |
| > instId | string | No | Product ID (optional, use default) |
Request Example
{
"op": "subscribe",
"args": [
{
"instType": "USDT-FUTURES",
"channel": "account",
"instId": "default"
}
]
}
Response Example
{
"event": "subscribe",
"arg": {
"instType": "USDT-FUTURES",
"channel": "account",
"instId": "default"
}
}
Push Parameters
| Parameter | Type | Description |
|---|---|---|
| action | string | Push data action |
| arg | object | Channels with successful subscription |
| > instType | string | Product type |
| > channel | string | Channel name |
| > instId | string | Product ID |
| data | object | Subscription data |
| > marginCoin | string | Margin coin (USDT) |
| > locked | string | Locked balance |
| > available | string | Available balance |
| > crossedMaxAvailable | string | Max available for cross margin |
| > isolatedMaxAvailable | string | Max available for isolated margin |
| > maxTransferOut | string | Max transferable amount |
| > accountEquity | string | Account equity |
| > unrealizedPL | string | Unrealized profit and loss |
| > coupon | string | Coupon balance |
| ts | number | Push timestamp |
Push Data
{
"action": "snapshot",
"arg": {
"instType": "USDT-FUTURES",
"channel": "account",
"instId": "default"
},
"data": {
"marginCoin": "USDT",
"locked": "500.00",
"available": "8500.00",
"crossedMaxAvailable": "8500.00",
"isolatedMaxAvailable": "8500.00",
"maxTransferOut": "8500.00",
"accountEquity": "10000.00",
"unrealizedPL": "150.50",
"coupon": "0"
},
"ts": 1695716761589
}