pub struct OrderUpdate {
pub order_id: Uuid,
pub client_order_id: SmartString<LazyCompact>,
pub exchange_order_id: Option<SmartString<LazyCompact>>,
pub status: OmsOrderStatus,
pub filled_quantity: Decimal,
pub average_fill_price: Option<Decimal>,
pub update_time_ns: u64,
pub rejection_reason: Option<RejectionReason>,
}Expand description
Order update event
Fields§
§order_id: UuidUnique order ID
client_order_id: SmartString<LazyCompact>Client-assigned order ID
exchange_order_id: Option<SmartString<LazyCompact>>Exchange-assigned order ID (if available)
status: OmsOrderStatusNew order status
filled_quantity: DecimalFilled quantity
average_fill_price: Option<Decimal>Average fill price
update_time_ns: u64Last update time in nanoseconds
rejection_reason: Option<RejectionReason>Rejection reason if rejected
Implementations§
Source§impl OrderUpdate
impl OrderUpdate
Sourcepub fn from_order(order: &Order) -> Self
pub fn from_order(order: &Order) -> Self
Create an order update from an order
Trait Implementations§
Source§impl Clone for OrderUpdate
impl Clone for OrderUpdate
Source§fn clone(&self) -> OrderUpdate
fn clone(&self) -> OrderUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderUpdate
impl Debug for OrderUpdate
Source§impl<'de> Deserialize<'de> for OrderUpdate
impl<'de> Deserialize<'de> for OrderUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OrderUpdate
impl RefUnwindSafe for OrderUpdate
impl Send for OrderUpdate
impl Sync for OrderUpdate
impl Unpin for OrderUpdate
impl UnwindSafe for OrderUpdate
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