wss://api.parsecapi.com/ws
Parsec WebSocket gives you one real-time connection for live orderbooks across
supported exchanges, plus public trade and user fill events where the upstream
exchange supports them. It also supports wallet address subscriptions that emit
full wallet_activity snapshots for supported wallet-based venues.
When to Use WebSocket vs REST
- Use WebSocket for live orderbook maintenance, trade feeds, and fill notifications.
- Use REST when you need discovery, one-off reads, historical data, or exact pagination.
Quickstart Flow
- Connect to
wss://api.parsecapi.com/ws - Authenticate within 15 seconds
- Subscribe to one or more markets and/or wallet addresses
- Maintain the book with snapshots, deltas, and resyncs when needed
End-to-End Example
This example connects, authenticates, subscribes to one market, applies incoming messages, and requests a resync if the server tells you to refresh:What You Receive
orderbooksnapshotsorderbook_deltaincremental updatesactivityevents for public trades and your own fillswallet_activitysnapshots for watched addresses- connection-level messages such as
heartbeat,error,resync_required, andslow_reader
Connect & Authenticate
Auth message formats, success replies, and connection timeouts.
Subscribe to Markets
Subscribe, unsubscribe, and request a fresh snapshot.
Message Types
Orderbook snapshots, deltas, trades, fills, and system messages.
Reliability, Resync & Limits
Sequence handling, stale feeds, limits, and common recovery steps.