Skip to main content

Completed Trades

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

1. Subscription schema

All client messages follow the same structure:

Available filters

For type = "completed_trades" the server currently supports:
  • user (optional, string) → only stream completed trades for this user address
If user is omitted, you receive all completed trades.

2. Subscribe: All completed trades

Client message

Example server event


3. Subscribe: Completed trades for a specific user

Client message


4. Unsubscribe

To stop receiving completed trades on this connection:
Example confirmation:

5. wscat examples

All completed trades

Completed trades for a user