Struct Order
pub struct Order {Show 13 fields
pub order_id: OrderId,
pub client_intent_id: ClientIntentId,
pub venue_id: VenueId,
pub instrument_id: InstrumentId,
pub side: Side,
pub order_type: OrderType,
pub price: Option<Decimal>,
pub qty: Decimal,
pub filled_qty: Decimal,
pub state: OrderLifecycleState,
pub correlation_id: Option<Uuid>,
pub strategy_id: Option<String>,
pub reduce_only: bool,
}Expand description
A tracked order in the engine state.
Fields§
§order_id: OrderIdVenue-assigned order identifier.
client_intent_id: ClientIntentIdClient-generated intent identifier for idempotency.
venue_id: VenueIdExchange venue the order was sent to.
instrument_id: InstrumentIdInstrument identifier.
side: SideOrder side.
order_type: OrderTypeOrder type (limit, market, etc.).
price: Option<Decimal>Limit price, if applicable.
qty: DecimalRequested quantity in base currency.
filled_qty: DecimalQuantity filled so far.
state: OrderLifecycleStateCurrent lifecycle state.
correlation_id: Option<Uuid>Correlation ID linking the intent → risk → exec chain.
strategy_id: Option<String>Originating strategy id, persisted for durable attribution across restarts.
reduce_only: boolWhether this order is reduce-only (closing a position).
Trait Implementations§
§impl<'de> Deserialize<'de> for Order
impl<'de> Deserialize<'de> for Order
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Order, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Order, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Order
impl Serialize for Order
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq 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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)