Account (WebSocket)
Account Snapshot
Initialize and replace the account’s current state.
WSS
Use
accountSnapshot to initialize margin, positions, orders, and account
settings. Subscribe through the public account stream,
without a signature. The subscription includes other account events; it has
no network-side snapshot-only filter.
When it arrives
Subscribing requests an executor-generated snapshot asynchronously. Wait for the snapshot before treating the view as ready; a subscription confirmation is not account state. Further snapshots can refresh the view, including parent accounts with isolated activity.Handling
Replace stored state with each snapshot, including the complete open-order list. Positions and orders include attached isolated-account rows. Key positions bysymbol and isoPubkey (or cross-margin identity) so positions in the same
market do not overwrite each other. Subscribe to each sub-account separately;
a master’s child list is not an aggregate feed for those accounts.
Unprefixed margin fields describe the queried account. Optional agg* fields
include that account plus its isolated accounts, but exclude separate
sub-accounts. Do not add local or isolated values to these totals again.
Use the reported transferableBalance, not availableMargin, for current
transfer capacity; execution rechecks risk.
After reconnecting, obtain another snapshot and reconcile missed executions
through account history. There is
no account replay cursor. See Balances & Positions
for applying subsequent updates.