Topic:/account/balance#
You will receive this message when an account balance changes. The message contains the details of the change.
Push frequency: real-timeRelation Event#
| Type | Description |
|---|
| main.deposit | Deposit |
| main.withdraw_hold | Hold withdrawal amount |
| main.withdraw_done | Withdrawal done |
| main.transfer | Transfer (Main account) |
| main.other | Other operations (Main account) |
| trade.hold | Hold (Trade account) |
| trade.setted | Settlement (Trade account) |
| trade.transfer | Transfer (Trade account) |
| trade.other | Other operations (Trade account) |
| trade_hf.hold | Hold (trade_hf account) |
| trade_hf.setted | Settlement (trade_hf account) |
| trade_hf.transfer | Transfer (trade_hf account) |
| trade_hf.other | Other operations (trade_hf account) |
| margin.hold | Hold (Margin account) |
| margin.setted | Settlement (Margin account) |
| margin.transfer | Transfer (Margin account) |
| margin.other | Other operations (Margin account) |
| isolated_{symbol}.hold | Hold (Isolated margin account) |
| isolated_{symbol}.setted | Settlement (Isolated margin account) |
| isolated_{symbol}.transfer | Transfer (Isolated margin account) |
| isolated_{symbol}.other | Other operations (Isolated margin account) |
| marginV2.hold | Hold (margin_hf account) |
| marginV2.setted | Settlement (margin_hf account) |
| marginV2.transfer | Transfer (margin_hf account) |
| marginV2.other | Other operations (margin_hf account) |
| isolatedV2_{symbol}.hold | Hold (Isolated margin_hf account) |
| isolatedV2_{symbol}.setted | Settlement (Isolated margin_hf account) |
| isolatedV2_{symbol}.transfer | Transfer (Isolated margin_hf account) |
| isolatedV2_{symbol}.other | Other operations (Isolated margin_hf account) |
| other | Others |
Subscribe Message#
{
"id": 1545910660739,
"type": "subscribe",
"topic": "/account/balance",
"response": true,
"privateChannel": "true"
}
Response#
Example{
"topic": "/account/balance",
"type": "message",
"subject": "account.balance",
"id": "354689988084000",
"userId": "633559791e1cbc0001f319bc",
"channelType": "private",
"data": {
"accountId": "548674591753",
"currency": "USDT",
"total": "21.133773386762",
"available": "20.132773386762",
"hold": "1.001",
"availableChange": "-0.5005",
"holdChange": "0.5005",
"relationContext": {
"symbol": "BTC-USDT",
"orderId": "6721d0632db25b0007071fdc",
"tradeId": "11116472408358913"
},
"relationEvent": "trade.hold",
"relationEventId": "354689988084000",
"time": "1730269283892"
}
}
Modified at 2025-09-26 10:04:30