pub enum OrderEvent {
Unfilled {
id: u128,
},
Placed {
id: u128,
},
Canceled {
id: u128,
},
PartiallyFilled {
id: u128,
filled_qty: u64,
fills: Vec<FillMetadata>,
},
Filled {
id: u128,
filled_qty: u64,
fills: Vec<FillMetadata>,
},
}Expand description
An event resulting from the execution of an order.
Variants§
Unfilled
Indicating that the corresponding order was not filled. It is only sent in response to market orders.
Placed
Indicating that the corresponding order was placed on the order book. It is only send in response to limit orders.
Canceled
Indicating that the corresponding order was removed from the order book. It is only sent in response to cancel orders.
PartiallyFilled
Indicating that the corresponding order was only partially filled. It is sent in response to market or limit orders.
Fields
§
fills: Vec<FillMetadata>A vector with information on the order fills.
Filled
Indicating that the corresponding order was filled completely. It is sent in response to market or limit orders.
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderEvent
impl Debug for OrderEvent
Source§impl PartialEq for OrderEvent
impl PartialEq for OrderEvent
impl StructuralPartialEq for OrderEvent
Auto Trait Implementations§
impl Freeze for OrderEvent
impl RefUnwindSafe for OrderEvent
impl Send for OrderEvent
impl Sync for OrderEvent
impl Unpin for OrderEvent
impl UnsafeUnpin 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