pub struct OrderMetadata {
pub trader_id: TraderId,
pub strategy_id: StrategyId,
pub instrument_id: InstrumentId,
pub client_order_id: ClientOrderId,
pub order_init: Option<OrderInitialized>,
pub is_accepted: bool,
pub venue_order_id: Option<VenueOrderId>,
pub ts_init: UnixNanos,
pub size_precision: u8,
pub price_precision: u8,
pub quote_currency: Currency,
}Expand description
Identity and event context for a tracked order.
Retained through uncertain request outcomes until definitive terminal evidence.
Fields§
§trader_id: TraderIdTrader ID for event generation.
strategy_id: StrategyIdStrategy ID for event generation.
instrument_id: InstrumentIdInstrument ID for event generation.
client_order_id: ClientOrderIdClient order ID for correlation.
order_init: Option<OrderInitialized>Submitted Nautilus order, before AX-specific transformations. Absent for external orders registered without a cached Nautilus order.
is_accepted: boolWhether acceptance is already known.
venue_order_id: Option<VenueOrderId>Current venue order ID, including a promoted replacement.
ts_init: UnixNanosOriginal order timestamp.
size_precision: u8Instrument size precision for quantity conversion.
price_precision: u8Instrument price precision for price conversion.
quote_currency: CurrencyQuote currency for the instrument.
Trait Implementations§
Source§impl Clone for OrderMetadata
impl Clone for OrderMetadata
Auto Trait Implementations§
impl Freeze for OrderMetadata
impl RefUnwindSafe for OrderMetadata
impl Send for OrderMetadata
impl Sync for OrderMetadata
impl Unpin for OrderMetadata
impl UnsafeUnpin for OrderMetadata
impl UnwindSafe for OrderMetadata
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more