pub struct AccountRisk {
pub equity: f64,
pub risk_pct_per_trade: f64,
pub max_leverage: f64,
pub max_position_notional: Option<f64>,
}Expand description
Account-level risk configuration.
Fields§
§equity: f64§risk_pct_per_trade: f64Fraction of equity risked per trade (e.g. 0.01 = 1%).
max_leverage: f64§max_position_notional: Option<f64>Absolute cap on one position’s notional value, regardless of leverage headroom.
Trait Implementations§
Source§impl Clone for AccountRisk
impl Clone for AccountRisk
Source§fn clone(&self) -> AccountRisk
fn clone(&self) -> AccountRisk
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 moreimpl Copy for AccountRisk
Source§impl Debug for AccountRisk
impl Debug for AccountRisk
Source§impl PartialEq for AccountRisk
impl PartialEq for AccountRisk
impl StructuralPartialEq for AccountRisk
Auto Trait Implementations§
impl Freeze for AccountRisk
impl RefUnwindSafe for AccountRisk
impl Send for AccountRisk
impl Sync for AccountRisk
impl Unpin for AccountRisk
impl UnsafeUnpin for AccountRisk
impl UnwindSafe for AccountRisk
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