WS Reference
Public Trades Stream
Real-time trade updates and snapshots for a specific market.
WSS
This stream is available on the
publicTrades subscription. It provides real-time trade updates for a specified market via publicCompletedOrdersDelta push messages, plus on-demand snapshots of recent trades via emitPublicCompletedOrders.
Snapshot vs. Delta
TheemitPublicCompletedOrders request returns a snapshot of recent trades via publicCompletedOrders. Use it for:
- Initial state hydration when first connecting to the stream
- Recovery after reconnects or connection interruptions
- Verifying historical execution completeness
- Getting recent trade history before processing real-time delta updates
- Reconciling local trade history with server state