Expand description
Version 2 provider architecture Provider V2 - Next generation provider architecture
This module defines the improved provider architecture that aligns with the consolidated WebSocket implementation using MessageHandler pattern.
Key improvements over V1:
- Separation of concerns: REST APIs vs real-time streaming
- Event-driven architecture using callbacks instead of channels
- Integration with WebSocketClient/MessageHandler pattern
- Cleaner trait boundaries and reduced coupling
- Better error handling and resource management
Structs§
- Hybrid
Connection - Unified connection managing both REST and WebSocket
- Provider
Registry - Registry for managing multiple providers
Traits§
- Data
Event Handler - Data event callbacks for real-time streaming
- Hybrid
Provider - Combined provider trait for exchanges that support both REST and streaming
- Provider
Factory - Factory trait for creating provider instances
- Rest
Provider - REST API provider for exchange metadata and historical data This trait focuses purely on HTTP-based operations
- Stream
Provider - Real-time streaming provider using WebSocket This trait handles live market data streaming