pub struct TradingConfig {
pub mode: String,
pub real_orders_enabled: bool,
pub dry_run: bool,
pub simulation: SimulationConfig,
pub orders: OrdersConfig,
}Fields§
§mode: StringTrading mode: simulation | paper | live
real_orders_enabled: boolEnable real order execution
dry_run: boolDry run mode
simulation: SimulationConfigSimulation settings
orders: OrdersConfigOrder settings
Trait Implementations§
Source§impl Clone for TradingConfig
impl Clone for TradingConfig
Source§fn clone(&self) -> TradingConfig
fn clone(&self) -> TradingConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TradingConfig
impl Debug for TradingConfig
Source§impl Default for TradingConfig
impl Default for TradingConfig
Source§impl<'de> Deserialize<'de> for TradingConfigwhere
TradingConfig: Default,
impl<'de> Deserialize<'de> for TradingConfigwhere
TradingConfig: Default,
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 TradingConfig
impl RefUnwindSafe for TradingConfig
impl Send for TradingConfig
impl Sync for TradingConfig
impl Unpin for TradingConfig
impl UnsafeUnpin for TradingConfig
impl UnwindSafe for TradingConfig
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