pub struct Order {
pub id: u64,
pub side: OrderSide,
pub kind: OrderKind,
pub quantity: f64,
pub filled_quantity: f64,
pub status: OrderStatus,
pub trailing_stop_price: Option<f64>,
pub stop_triggered: bool,
}Fields§
§id: u64§side: OrderSide§kind: OrderKind§quantity: f64§filled_quantity: f64§status: OrderStatus§trailing_stop_price: Option<f64>For OrderKind::Trailing: the current computed stop level, updated every bar.
stop_triggered: boolFor OrderKind::StopLimit: true once the trigger has been crossed and the order behaves
as a resting limit order at limit.
Trait Implementations§
impl Copy for Order
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
impl UnwindSafe for Order
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