pub struct LiveTradingConfig {
pub dry_run: bool,
pub order_timeout_seconds: u64,
pub position_check_interval_ms: u64,
}Expand description
Live trading engine configuration.
Controls real-time trading behavior and safety parameters.
Fields§
§dry_run: boolEnable dry-run mode (no real orders) Env: VELORA_ENGINE_LIVE_DRY_RUN
CRITICAL: Set to false only for real money trading.
Default is true for safety.
order_timeout_seconds: u64Order timeout in seconds Env: VELORA_ENGINE_LIVE_ORDER_TIMEOUT_SECONDS
position_check_interval_ms: u64Position check interval in milliseconds Env: VELORA_ENGINE_LIVE_POSITION_CHECK_INTERVAL_MS
Trait Implementations§
Source§impl Clone for LiveTradingConfig
impl Clone for LiveTradingConfig
Source§impl Debug for LiveTradingConfig
impl Debug for LiveTradingConfig
Source§impl Default for LiveTradingConfig
impl Default for LiveTradingConfig
Source§impl<'de> Deserialize<'de> for LiveTradingConfig
impl<'de> Deserialize<'de> for LiveTradingConfig
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 LiveTradingConfig
impl RefUnwindSafe for LiveTradingConfig
impl Send for LiveTradingConfig
impl Sync for LiveTradingConfig
impl Unpin for LiveTradingConfig
impl UnsafeUnpin for LiveTradingConfig
impl UnwindSafe for LiveTradingConfig
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