pub struct ILLimitParams {
pub max_il: Decimal,
pub close_il: Option<Decimal>,
pub grace_period: u64,
}Expand description
Parameters for an IL-limit strategy.
Fields§
§max_il: DecimalMaximum IL before rebalancing.
close_il: Option<Decimal>Maximum IL before closing position.
grace_period: u64Grace period in steps before acting.
Trait Implementations§
Source§impl Clone for ILLimitParams
impl Clone for ILLimitParams
Source§fn clone(&self) -> ILLimitParams
fn clone(&self) -> ILLimitParams
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 ILLimitParams
impl Debug for ILLimitParams
Auto Trait Implementations§
impl Freeze for ILLimitParams
impl RefUnwindSafe for ILLimitParams
impl Send for ILLimitParams
impl Sync for ILLimitParams
impl Unpin for ILLimitParams
impl UnsafeUnpin for ILLimitParams
impl UnwindSafe for ILLimitParams
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