Account (WebSocket)
Risk Events
Liquidation, margin settlement, and auto-deleveraging events for an account.
WSS
Track position liquidations, liquidation settlement, and auto-deleveraging on
the shared account subscription. This reference
groups related messages; it does not create a separate subscription or a
network-side event filter. Dispatch received messages by
data.type.
Handling risk events
liquidationreports the liquidated position’s symbol, price, size, and fill direction (isBuy).marginPriorandmarginAfterdescribe margin before and after liquidation;reasonis optional human-readable context.liquidationMarginreports the separate margin-settlement leg.lossandshortfalldescribe the settlement outcome. Its transfers use integeramountAtomsin each asset’s smallest units, not display-unit amounts. Isolated settlement events includeisoPubkey.adlreports the auto-deleveraged position’s symbol, price, size, and fill direction. Its optionalreasonprovides human-readable context.
timestamp values. Preserve integer precision
when decoding them. Keep position events and settlement transfers distinct
when reconciling account activity.
For historical liquidation and ADL analysis, use
POST /account with type: "riskHistory".