pub enum OrderKind {
Market,
Limit(f64),
Stop(f64),
StopLimit {
stop: f64,
limit: f64,
},
}Expand description
The price condition that decides when an order fills.
Variants§
Market
Fills at the next bar’s open (or this bar’s close under
process_orders_on_close).
Limit(f64)
Fills when price reaches price or better.
Stop(f64)
Fills when price reaches price or worse.
StopLimit
A limit at limit, armed once price reaches stop.
Trait Implementations§
impl Copy for OrderKind
impl StructuralPartialEq for OrderKind
Auto Trait Implementations§
impl Freeze for OrderKind
impl RefUnwindSafe for OrderKind
impl Send for OrderKind
impl Sync for OrderKind
impl Unpin for OrderKind
impl UnsafeUnpin for OrderKind
impl UnwindSafe for OrderKind
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