pub enum OrderEvent {
New(OrderRequest),
Accepted(Uuid),
Sent {
order_id: Uuid,
exchange_order_id: Option<String>,
},
Active(Uuid),
PartialFill {
order_id: Uuid,
fill_quantity: Decimal,
fill_price: Decimal,
timestamp_ns: u64,
},
Filled {
order_id: Uuid,
fill_quantity: Decimal,
fill_price: Decimal,
timestamp_ns: u64,
},
Canceled {
order_id: Uuid,
remaining_quantity: Decimal,
timestamp_ns: u64,
},
Rejected {
order_id: Uuid,
reason: RejectionReason,
timestamp_ns: u64,
},
}Expand description
Order event types for lifecycle tracking
Variants§
New(OrderRequest)
New order request received
Accepted(Uuid)
Order validated and accepted
Sent
Order sent to exchange
Active(Uuid)
Order active on exchange
PartialFill
Order partially filled
Filled
Order completely filled
Canceled
Order canceled
Fields
§
remaining_quantity: DecimalRemaining quantity
Rejected
Order rejected
Trait Implementations§
Source§impl Clone for OrderEvent
impl Clone for OrderEvent
Source§fn clone(&self) -> OrderEvent
fn clone(&self) -> OrderEvent
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 OrderEvent
impl Debug for OrderEvent
Source§impl<'de> Deserialize<'de> for OrderEvent
impl<'de> Deserialize<'de> for OrderEvent
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 OrderEvent
impl RefUnwindSafe for OrderEvent
impl Send for OrderEvent
impl Sync for OrderEvent
impl Unpin for OrderEvent
impl UnwindSafe for OrderEvent
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