Skip to main content

Change of balance

Type: Websocket Push
Description: Balance change notification

Parameters

nametypemandatorydefaultdescription
falseN/ANo parameters required, subscribe to the balance topic to receive updates

Notes

  • This push notification is triggered when a user's account balance changes.
  • Subscription format: balance
  • Supports both SPOT and LEVER business types.
  • Useful for tracking real-time balance changes after trades, deposits, withdrawals, or transfers.

Push Example

Push
{
"topic": "balance",
"event": "balance",
"data": {
"a": "123", // Account ID
"t": 1656043204763, // Event time (ms)
"c": "btc", // Currency
"b": "123", // Total spot balance
"f": "11", // Frozen amount
"z": "SPOT", // BizType [SPOT, LEVER]
"s": "btc_usdt" // Symbol
}
}