pub struct RiskConfig {
pub session_pnl: SessionPnlConfig,
pub circuit_breaker: CircuitBreakerConfig,
pub sizing: SizingConfig,
}Expand description
Risk-layer defaults applied to every symbol in the bot’s config.
Per-symbol overrides are a Phase 2c concern — for now every configured
symbol gets the same SessionPnl, CircuitBreaker, and PositionSizer.
Fields§
§session_pnl: SessionPnlConfigSession PnL config applied to every configured symbol.
circuit_breaker: CircuitBreakerConfigCircuit-breaker config applied to every configured symbol.
sizing: SizingConfigPosition-sizing config used by the execution service.
Trait Implementations§
Source§impl Clone for RiskConfig
impl Clone for RiskConfig
Source§fn clone(&self) -> RiskConfig
fn clone(&self) -> RiskConfig
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 RiskConfig
impl Debug for RiskConfig
Source§impl Default for RiskConfig
impl Default for RiskConfig
Source§fn default() -> RiskConfig
fn default() -> RiskConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RiskConfig
impl RefUnwindSafe for RiskConfig
impl Send for RiskConfig
impl Sync for RiskConfig
impl Unpin for RiskConfig
impl UnsafeUnpin for RiskConfig
impl UnwindSafe for RiskConfig
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