rusty_common/websocket/exchanges/
mod.rs

1//! Exchange-specific WebSocket implementations
2//!
3//! This module provides exchange-specific configurations and handlers.
4
5pub mod binance;
6pub mod bithumb;
7pub mod bybit;
8pub mod coinbase;
9pub mod config;
10pub mod upbit;
11
12use super::WebSocketConfig;
13use crate::types::Exchange;
14
15// Re-export exchange configuration
16pub use config::{ExchangeConfig, get_compression_summary, supports_websocket_compression};
17
18/// Get default WebSocket configuration for an exchange
19pub fn get_default_config(exchange: Exchange, url: String) -> WebSocketConfig {
20    match exchange {
21        Exchange::Binance => binance::default_config(url),
22        Exchange::Bybit => bybit::default_config(url),
23        Exchange::Coinbase => coinbase::default_config(url),
24        Exchange::Upbit => upbit::default_config(url),
25        Exchange::Bithumb => bithumb::default_config(url),
26    }
27}