pub enum LossLimit {
AccountPercent(f64),
Amount(f64),
RiskMultiples(f64),
}Expand description
How large a day’s realized loss may become.
Variants§
AccountPercent(f64)
Percent of the balance at the day’s reset instant; 2.0 means two percent.
Amount(f64)
Account-currency amount.
RiskMultiples(f64)
Sum of realized R over positions fully closed since the reset; 3.0 halts at minus three R.
Trait Implementations§
impl Copy for LossLimit
Source§impl<'de> Deserialize<'de> for LossLimit
impl<'de> Deserialize<'de> for LossLimit
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
impl StructuralPartialEq for LossLimit
Auto Trait Implementations§
impl Freeze for LossLimit
impl RefUnwindSafe for LossLimit
impl Send for LossLimit
impl Sync for LossLimit
impl Unpin for LossLimit
impl UnsafeUnpin for LossLimit
impl UnwindSafe for LossLimit
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