2025-06-06 20:33:29 +08:00
# Exchange Integrations
2025-06-07 14:29:09 +08:00
## Overview
This module provides a standardized interface for collecting real-time data from various cryptocurrency exchanges. It uses a modular architecture that allows easy addition of new exchanges while maintaining consistent behavior and error handling.
2025-06-06 20:33:29 +08:00
2025-06-07 14:29:09 +08:00
## Documentation Structure
2025-06-06 20:33:29 +08:00
2025-06-07 14:29:09 +08:00
- **[Technical Documentation ](exchanges.md )**: Detailed technical documentation of the exchange module architecture, including factory pattern, configuration, and error handling.
- **Exchange-Specific Implementations**:
- **[OKX ](okx_collector.md )**: Complete guide for OKX exchange integration
2025-06-06 20:33:29 +08:00
2025-06-07 14:29:09 +08:00
## Quick Links
2025-06-06 20:33:29 +08:00
2025-06-07 14:29:09 +08:00
- [Data Collection Architecture ](../data_collectors.md )
- [Error Handling Guide ](../error_handling.md )
- [Logging Configuration ](../logging.md )
2025-06-06 20:33:29 +08:00
2025-06-07 14:29:09 +08:00
## Exchange Status
2025-06-06 20:33:29 +08:00
2025-06-07 14:29:09 +08:00
| Exchange | Status | Features | Documentation |
|----------|---------|-----------|---------------|
2025-06-07 15:46:24 +08:00
| OKX | ✅ Production | Trades, Order Book, Ticker, Configurable Timeframes (1s+) | [Guide ](okx_collector.md ) |
2025-06-07 14:29:09 +08:00
| Binance | 🔄 Planned | TBD | - |
| Coinbase | 🔄 Planned | TBD | - |
2025-06-06 20:33:29 +08:00
2025-06-07 15:46:24 +08:00
## Features
### Core Features
- Real-time data collection
- Robust error handling
- Automatic reconnection
- Health monitoring
- Configurable timeframes
- Support for 1-second intervals
- Flexible timeframe configuration
- Custom timeframe aggregation
### Exchange-Specific Features
- OKX: Full WebSocket support with configurable timeframes (1s+)
- More exchanges coming soon
2025-06-07 14:29:09 +08:00
## Adding New Exchanges
2025-06-06 20:33:29 +08:00
2025-06-07 14:29:09 +08:00
See [Technical Documentation ](exchanges.md ) for detailed implementation guide.
2025-06-06 20:33:29 +08:00
2025-06-07 14:29:09 +08:00
Key Steps:
1. Create exchange module in `data/exchanges/`
2. Implement collector class extending `BaseDataCollector`
3. Add WebSocket/REST implementations
4. Register in `ExchangeFactory`
5. Add documentation
2025-06-06 20:33:29 +08:00
2025-06-07 14:29:09 +08:00
## Support
2025-06-06 20:33:29 +08:00
2025-06-07 14:29:09 +08:00
- Report issues in the project issue tracker
- See [Contributing Guide ](../../CONTRIBUTING.md ) for development guidelines
- Check [Known Issues ](exchanges.md#known-issues ) for current limitations
2025-06-06 20:33:29 +08:00
---
2025-06-07 14:29:09 +08:00
*Back to [Main Documentation ](../../README.md )*