pub enum ExecutionEvent {
Accepted {
seq: u64,
order_id: OrderId,
},
Trade {
seq: u64,
maker_order_id: OrderId,
taker_order_id: OrderId,
price: u64,
qty: u64,
},
Filled {
seq: u64,
order_id: OrderId,
},
Cancelled {
seq: u64,
order_id: OrderId,
reason: CancelReason,
},
Amended {
seq: u64,
order_id: OrderId,
price: u64,
qty: u64,
},
Expired {
seq: u64,
order_id: OrderId,
remaining_qty: u64,
},
SelfTradePrevented {
seq: u64,
order_id: OrderId,
},
}Expand description
One execution event. Every variant carries the seq of the command
that produced it.
Variants§
Accepted
An incoming order rested its remainder on the book.
Trade
A trade between a resting maker and the incoming taker, at the maker price.
Fields
Filled
An order reached zero remaining quantity by trading.
Cancelled
An order left the book by cancellation.
Fields
§
reason: CancelReasonWhy it was cancelled.
Amended
An order was amended. Price and quantity are the new values.
Fields
Expired
An immediate-or-cancel order remainder expired unfilled.
Fields
SelfTradePrevented
Self-trade prevention stopped the incoming order at its own resting order.
Trait Implementations§
Source§impl Clone for ExecutionEvent
impl Clone for ExecutionEvent
impl Copy for ExecutionEvent
Source§impl Debug for ExecutionEvent
impl Debug for ExecutionEvent
impl Eq for ExecutionEvent
Source§impl PartialEq for ExecutionEvent
impl PartialEq for ExecutionEvent
impl StructuralPartialEq for ExecutionEvent
Auto Trait Implementations§
impl Forget for ExecutionEvent
impl Freeze for ExecutionEvent
impl Move for ExecutionEvent
impl RefUnwindSafe for ExecutionEvent
impl Send for ExecutionEvent
impl Sync for ExecutionEvent
impl Unpin for ExecutionEvent
impl UnsafeUnpin for ExecutionEvent
impl UnwindSafe for ExecutionEvent
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