Skip to main content
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

  • liquidation reports the liquidated position’s symbol, price, size, and fill direction (isBuy). marginPrior and marginAfter describe margin before and after liquidation; reason is optional human-readable context.
  • liquidationMargin reports the separate margin-settlement leg. loss and shortfall describe the settlement outcome. Its transfers use integer amountAtoms in each asset’s smallest units, not display-unit amounts. Isolated settlement events include isoPubkey.
  • adl reports the auto-deleveraged position’s symbol, price, size, and fill direction. Its optional reason provides human-readable context.
These events use nanosecond 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".
Subscribe
type:object

Schema defaults on this request are playground example prefills, not omitted-field defaults accepted by the network endpoint.

Liquidation
type:object

Network-published liquidation

Liquidation margin
type:object

Network-published liquidationMargin

ADL
type:object

Network-published adl

Subscribed
type:object
Unsubscribed
type:object