pub struct OrderMetadata {
pub trader_id: TraderId,
pub strategy_id: StrategyId,
pub instrument_id: InstrumentId,
pub client_order_id: ClientOrderId,
pub venue_order_id: Option<VenueOrderId>,
pub ts_init: UnixNanos,
pub size_precision: u8,
pub price_precision: u8,
pub quote_currency: Currency,
}Expand description
Metadata for pending order operations.
Used to correlate order responses with the original request.
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.
venue_order_id: Option<VenueOrderId>Venue order ID (populated after acknowledgment).
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
Source§fn clone(&self) -> OrderMetadata
fn clone(&self) -> OrderMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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§
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
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>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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