pub enum TradingCommand {
SubmitOrder(SubmitOrder),
SubmitOrderList(SubmitOrderList),
ModifyOrder(ModifyOrder),
CancelOrder(CancelOrder),
CancelAllOrders(CancelAllOrders),
BatchCancelOrders(BatchCancelOrders),
QueryOrder(QueryOrder),
QueryAccount(QueryAccount),
}Variants§
SubmitOrder(SubmitOrder)
SubmitOrderList(SubmitOrderList)
ModifyOrder(ModifyOrder)
CancelOrder(CancelOrder)
CancelAllOrders(CancelAllOrders)
BatchCancelOrders(BatchCancelOrders)
QueryOrder(QueryOrder)
QueryAccount(QueryAccount)
Implementations§
Source§impl TradingCommand
impl TradingCommand
pub const fn client_id(&self) -> Option<ClientId>
Sourcepub const fn instrument_id(&self) -> InstrumentId
pub const fn instrument_id(&self) -> InstrumentId
Returns the instrument ID for the command.
§Panics
Panics if the command is QueryAccount which does not have an instrument ID.
pub const fn ts_init(&self) -> UnixNanos
pub const fn strategy_id(&self) -> Option<StrategyId>
Trait Implementations§
Source§impl Clone for TradingCommand
impl Clone for TradingCommand
Source§fn clone(&self) -> TradingCommand
fn clone(&self) -> TradingCommand
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 TradingCommand
impl Debug for TradingCommand
Source§impl Display for TradingCommand
impl Display for TradingCommand
Source§impl PartialEq for TradingCommand
impl PartialEq for TradingCommand
Source§impl<'a> ToCapnp<'a> for TradingCommand
impl<'a> ToCapnp<'a> for TradingCommand
impl Eq for TradingCommand
impl StructuralPartialEq for TradingCommand
Auto Trait Implementations§
impl Freeze for TradingCommand
impl RefUnwindSafe for TradingCommand
impl Send for TradingCommand
impl Sync for TradingCommand
impl Unpin for TradingCommand
impl UnwindSafe for TradingCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more