- Introduced a new `exceptions.py` file containing custom exceptions for the exchanges module, improving error specificity and handling. - Updated the `factory.py` and `registry.py` files to utilize the new exceptions, enhancing robustness in error reporting and logging. - Implemented validation logic in `ExchangeCollectorConfig` to ensure proper configuration, raising appropriate exceptions when validation fails. - Enhanced logging throughout the factory methods to provide better insights into the collector creation process and error scenarios. - Added comprehensive documentation for the exchanges module, detailing the architecture, error handling, and usage examples. These changes significantly improve the error handling and maintainability of the exchanges module, aligning with project standards and enhancing developer experience.
1.6 KiB
1.6 KiB
Exchange Integrations
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.
Documentation Structure
- Technical Documentation: Detailed technical documentation of the exchange module architecture, including factory pattern, configuration, and error handling.
- Exchange-Specific Implementations:
- OKX: Complete guide for OKX exchange integration
Quick Links
Exchange Status
| Exchange | Status | Features | Documentation |
|---|---|---|---|
| OKX | ✅ Production | Trades, Order Book, Ticker, Candles | Guide |
| Binance | 🔄 Planned | TBD | - |
| Coinbase | 🔄 Planned | TBD | - |
Adding New Exchanges
See Technical Documentation for detailed implementation guide.
Key Steps:
- Create exchange module in
data/exchanges/ - Implement collector class extending
BaseDataCollector - Add WebSocket/REST implementations
- Register in
ExchangeFactory - Add documentation
Support
- Report issues in the project issue tracker
- See Contributing Guide for development guidelines
- Check Known Issues for current limitations
Back to Main Documentation