Struct lfest::Order [−][src]
pub struct Order {
pub id: u64,
pub timestamp: u64,
pub order_type: OrderType,
pub limit_price: f64,
pub trigger_price: f64,
pub size: f64,
pub side: Side,
pub executed: bool,
}
Expand description
Defines an order
Fields
id: u64
id will be filled in using exchange.submit_order()
timestamp: u64
timestamp will be filled in using exchange.submit_order()
order_type: OrderType
order type
limit_price: f64
the limit order price
trigger_price: f64
the trigger price
size: f64
order size
side: Side
order side
executed: bool
whether or not the order has been marked as executed
Implementations
Create a new limit order Returns an OrderError if either the limit_price or size is invalid
Create a new market order Returns an OrderError if wrong size provided
Create a new stop market order Returns an OrderError if either the trigger_price or size is invalid
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Order
impl UnwindSafe for Order
Blanket Implementations
Mutably borrows from an owned value. Read more