Skip to main content

Real-Time Updates via WebSocket

To receive recent trade executions, use the WebSocket v2 API and subscribe to the Trade Stream. To bootstrap your recent trades data, send an emitCompletedOrders request to receive an initial snapshot, then apply subsequent completedOrdersDelta updates sequentially. Existing users can use the legacy Order Book WebSocket to get recent trade executions:
  • completedOrders: Snapshot of recent trade executions upon connection.
  • completedOrdersDelta: New trade executions since the last update.

Understanding Recent Trades Messages

  • Both sides included: Each execution is represented by taker and maker sides.
  • Batched messages: Updates may arrive in batches for efficiency.
  • Per-market streams: Messages are emitted per subscribed market.
  • Timestamps: Entries include an execution timestamp (i.e., updatedAt in milliseconds).

Processing Notes

  • Sort or display trades by updatedAt for chronological views.
  • Use matchId to correlate or deduplicate multi-side entries for the same trade.
  • Expect batches; process sequentially to retain order.