Skip to main content

Liquidations

The liquidations stream uses the multiplex WebSocket endpoint:
All subscriptions go through /ws.
You authenticate using X-API-Key during the WebSocket handshake.

1. Subscription schema

Available filters

For type = "liquidation" the server currently supports:
  • user (optional, string)
    Only stream liquidations for this user address.
  • amount_dollars (optional, number)
    Only stream liquidations where notional_usd >= amount_dollars.
You can combine both filters.

2. Subscribe: All liquidations

Client message

Example server event


3. Subscribe: Liquidations above a notional threshold

Filter by minimum notional size in USD using amount_dollars:
Only liquidations with notional_usd >= 50000 are streamed.

4. Subscribe: Liquidations for a specific user

You can also combine filters:

5. Unsubscribe


6. wscat examples

All liquidations

Liquidations (>= 50k USD)

Liquidations for a specific user