#[non_exhaustive]pub struct Order {
pub id: OrderId,
pub key: MarketKey,
pub side: Side,
pub price: Decimal,
pub size: Decimal,
pub filled: Decimal,
pub status: OrderStatus,
pub time_in_force: Option<TimeInForce>,
pub client_order_id: Option<ClientOrderId>,
pub created: Option<UnixMillis>,
pub extensions: Extensions,
}Expand description
An order as the venue reports it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: OrderIdThe venue’s id for it.
key: MarketKeyThe instrument or outcome it trades.
side: SideBuy or sell.
price: DecimalThe limit price.
size: DecimalThe size ordered, in the instrument’s native quantity.
filled: DecimalHow much has filled.
status: OrderStatusWhere it stands.
time_in_force: Option<TimeInForce>How long it rests.
client_order_id: Option<ClientOrderId>The caller’s id for it.
created: Option<UnixMillis>When the venue accepted it.
extensions: ExtensionsThe venue’s own facts.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl !RefUnwindSafe for Order
impl !UnwindSafe for Order
impl Freeze for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin 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