pub enum ExecutionEvent {
OrderAccepted(Order),
CancelOrder {
order_id: SmartString,
original_order: Order,
},
ModifyOrder {
order_id: SmartString,
original_order: Order,
new_price: Option<Decimal>,
new_quantity: Option<Decimal>,
},
CancelAllOrders(InstrumentId),
CancelAllOrdersGlobally,
}Expand description
Events related to order execution
Variants§
OrderAccepted(Order)
Order accepted by the exchange
CancelOrder
Request to cancel an existing order
ModifyOrder
Request to modify an existing order
Fields
§
order_id: SmartStringOrder ID to modify
CancelAllOrders(InstrumentId)
Request to cancel all open orders for a specific instrument
CancelAllOrdersGlobally
Request to cancel all open orders across all instruments
Trait Implementations§
Source§impl Clone for ExecutionEvent
impl Clone for ExecutionEvent
Source§fn clone(&self) -> ExecutionEvent
fn clone(&self) -> ExecutionEvent
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 moreAuto Trait Implementations§
impl Freeze for ExecutionEvent
impl RefUnwindSafe for ExecutionEvent
impl Send for ExecutionEvent
impl Sync for ExecutionEvent
impl Unpin 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