pub struct ExchangeConfig {
pub enabled: bool,
pub spot_enabled: Option<bool>,
pub futures_enabled: Option<bool>,
pub max_symbols: usize,
pub rate_limit_per_second: u32,
pub reconnect_delay_ms: u64,
pub max_reconnect_attempts: u32,
pub include_symbols: Vec<String>,
pub exclude_symbols: Vec<String>,
}Expand description
Individual exchange configuration
Fields§
§enabled: boolWhether this exchange is enabled
spot_enabled: Option<bool>Whether spot trading is enabled for this exchange
futures_enabled: Option<bool>Whether futures trading is enabled for this exchange
max_symbols: usizeMaximum number of symbols to monitor for this exchange
rate_limit_per_second: u32Rate limit per second for this exchange
reconnect_delay_ms: u64Delay in milliseconds before reconnecting on failure
max_reconnect_attempts: u32Maximum number of reconnection attempts
include_symbols: Vec<String>List of symbols to specifically include (empty means all)
exclude_symbols: Vec<String>List of symbols to exclude
Trait Implementations§
Source§impl Clone for ExchangeConfig
impl Clone for ExchangeConfig
Source§fn clone(&self) -> ExchangeConfig
fn clone(&self) -> ExchangeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExchangeConfig
impl Debug for ExchangeConfig
Source§impl<'de> Deserialize<'de> for ExchangeConfig
impl<'de> Deserialize<'de> for ExchangeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExchangeConfig
impl RefUnwindSafe for ExchangeConfig
impl Send for ExchangeConfig
impl Sync for ExchangeConfig
impl Unpin for ExchangeConfig
impl UnwindSafe for ExchangeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more