//! Binance data provider
//!
//! Integrations for Binance spot and futures markets:
//! - Historical aggTrades data (CSV/ZIP format)
//! - Tier-1 symbol discovery (multi-market analysis)
//! - Real-time WebSocket streams (aggTrades)
//! - SHA-256 checksum verification (Issue #43)
//!
//! ## Architecture
//!
//! - `historical` - CSV/ZIP historical data loader
//! - `symbols` - Tier-1 cryptocurrency symbol discovery
//! - `websocket` - Real-time aggTrades WebSocket client
//! - `checksum` - SHA-256 verification for data integrity
//!
//! ## Data Sources
//!
//! - **Spot Market**: <https://data.binance.vision/>
//! - **UM Futures**: USDT-margined perpetuals
//! - **CM Futures**: Coin-margined perpetuals
//!
//! ## Tier-1 Instruments
//!
//! Cryptocurrencies available across ALL THREE Binance futures markets.
//! Current count: 18 symbols (BTC, ETH, SOL, ADA, etc.)

pub mod checksum;
pub mod combined_ws;
pub mod historical;
pub mod parallel_fetch;
pub mod rate_limiter;
pub mod symbols;
pub mod websocket;

// Re-export commonly used types
pub use checksum::{
    ChecksumError, ChecksumResult, compute_sha256, fetch_and_verify, fetch_checksum,
    parse_checksum_file, verify_checksum,
};
pub use combined_ws::CombinedWebSocketStream;
pub use historical::{
    CsvAggTrade, HistoricalDataLoader, HistoricalError, IntraDayChunkIterator, detect_csv_headers,
    python_bool,
};
pub use parallel_fetch::fetch_aggtrades_parallel;
pub use rate_limiter::{AdaptiveRateLimiter, RateLimitError, shared_binance_limiter};
pub use symbols::{TIER1_SYMBOLS, get_tier1_symbols, get_tier1_usdt_pairs, is_tier1_symbol};
pub use websocket::{BinanceWebSocketStream, ReconnectionPolicy, StreamSignal, WebSocketError};
