pub enum OtoCommand {
Release {
instrument_id: InstrumentId,
client_order_id: ClientOrderId,
account_id: AccountId,
parent_instrument_id: InstrumentId,
parent_order_id: ClientOrderId,
parent_quantity: Option<Quantity>,
},
Resize {
instrument_id: InstrumentId,
parent_order_id: ClientOrderId,
quantity: Quantity,
},
Cancel {
instrument_id: InstrumentId,
client_order_id: ClientOrderId,
cancel_contingencies: bool,
excluded: Vec<ClientOrderId>,
},
}Expand description
A contingent command delivered to the order’s instrument engine.
Variants§
Release
Releases a child; a parent quantity requests a sibling sizing recount after delivery.
Fields
§
instrument_id: InstrumentId§
client_order_id: ClientOrderId§
account_id: AccountId§
parent_instrument_id: InstrumentId§
parent_order_id: ClientOrderIdResize
Recounts the parent’s child allowance after a full-trigger child fill.
Cancel
Cancels a child ahead of all queued commands.
cancel_contingencies controls cancellation of linked orders. The cascade skips the linked
order IDs in excluded.
Implementations§
Source§impl OtoCommand
impl OtoCommand
Sourcepub fn instrument_id(&self) -> InstrumentId
pub fn instrument_id(&self) -> InstrumentId
Returns the instrument which owns this command.
Trait Implementations§
Source§impl Clone for OtoCommand
impl Clone for OtoCommand
Auto Trait Implementations§
impl Freeze for OtoCommand
impl RefUnwindSafe for OtoCommand
impl Send for OtoCommand
impl Sync for OtoCommand
impl Unpin for OtoCommand
impl UnsafeUnpin for OtoCommand
impl UnwindSafe for OtoCommand
Blanket Implementations§
impl<T> Allocation for T
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