pub enum Sizing {
Contracts(f64),
Cash(f64),
PercentOfEquity(f64),
}Expand description
How an order without an explicit qty is sized, from the strategy
declaration’s default_qty_type/default_qty_value.
Variants§
Contracts(f64)
A fixed number of contracts (strategy.fixed).
Cash(f64)
A fixed amount of cash, converted to contracts at the fill price
(strategy.cash).
PercentOfEquity(f64)
A percentage of current equity, converted at the fill price
(strategy.percent_of_equity).
Trait Implementations§
impl Copy for Sizing
impl StructuralPartialEq for Sizing
Auto Trait Implementations§
impl Freeze for Sizing
impl RefUnwindSafe for Sizing
impl Send for Sizing
impl Sync for Sizing
impl Unpin for Sizing
impl UnsafeUnpin for Sizing
impl UnwindSafe for Sizing
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