pub enum OrderKind {
Market,
Limit {
price: f64,
},
Stop {
trigger: f64,
},
StopLimit {
trigger: f64,
limit: f64,
},
Trailing {
trail_amount: f64,
},
}Variants§
Market
Limit
Stop
StopLimit
Trailing
Trailing stop: trail_amount is the fixed price distance kept behind the best price seen
since the order was submitted.
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