Overview
Access real-time market data through WebSocket streams. All WebSocket connections require authentication using API key headers during the connection handshake.Available streams
Level 1 Quotes
Best bid and ask prices and quantities in real-time
Trade Executions
Real-time trade data with volume statistics
Order Book Depth
Complete order book with multiple price levels
Ticker Data
Real-time ticker data and price statistics
Stream types overview
Quick subscribe
Multiple streams example
JavaScript implementation
Supported trading pairs
Message format
All market data messages follow a consistent structure:Subscription management
Subscribe to streams
Unsubscribe from streams
Best practices
Subscription Strategy
Subscription Strategy
- Subscribe only to data you actually need
- Use batch subscriptions for multiple symbols
- Unsubscribe from unused streams to reduce bandwidth
- Validate symbol names before subscribing
Data Processing
Data Processing
- Handle snapshot vs delta updates appropriately
- Implement proper order book reconstruction for depth streams
- Buffer high-frequency updates for UI rendering
- Maintain local state for efficient processing
Performance Optimization
Performance Optimization
- Process messages asynchronously
- Use efficient data structures for order books
- Implement proper memory management
- Monitor bandwidth usage and adjust subscriptions
Error handling
Common market data stream errors and solutions:Invalid Symbol
Invalid Symbol
Error: Subscription rejected due to invalid trading pairSolution: Verify symbol format matches supported trading pairs exactly
Rate Limiting
Rate Limiting
Error: Too many subscription requestsSolution: Batch multiple subscriptions into single request
Connection Issues
Connection Issues
Error: Message delivery interruptionSolution: Implement reconnection logic and state recovery
Next steps
- Learn about Level 1 Quotes implementation details
- Explore Trade Executions for real-time trade data
- Review Order Book Depth for full market depth
- Set up Connection Management for reliable connectivity
- Explore Account Updates for private data streams