pub enum CancelType {
Show 20 variants
CancelByUser,
CancelByReduceOnly,
CancelByPrepareLiq,
CancelAllBeforeLiq,
CancelByPrepareAdl,
CancelAllBeforeAdl,
CancelByAdmin,
CancelBySettle,
CancelByTpSlTsClear,
CancelBySmp,
CancelByDCP,
CancelByRebalance,
CancelByCannotAffordOrderCost,
CancelByPmTrialMmOverEquity,
CancelByAccountBlocking,
CancelByDelivery,
CancelByMmpTriggered,
CancelByCrossSelfMuch,
CancelByCrossReachMaxTradeNum,
UNKNOWN,
}Variants§
CancelByUser
CancelByReduceOnly
cancelled by reduceOnly
CancelByPrepareLiq
cancelled in order to attempt liquidation prevention by freeing up margin
CancelAllBeforeLiq
cancelled in order to attempt liquidation prevention by freeing up margin
CancelByPrepareAdl
cancelled due to ADL
CancelAllBeforeAdl
cancelled due to ADL
CancelByAdmin
CancelBySettle
cancelled due to delisting contract
CancelByTpSlTsClear
TP/SL order cancelled when the position is cleared
CancelBySmp
cancelled by SMP
CancelByDCP
cancelled by DCP triggering
CancelByRebalance
Spread trading: the order price of a single leg order is outside the limit price range.
CancelByCannotAffordOrderCost
CancelByPmTrialMmOverEquity
CancelByAccountBlocking
CancelByDelivery
CancelByMmpTriggered
CancelByCrossSelfMuch
CancelByCrossReachMaxTradeNum
UNKNOWN
Not documented
Trait Implementations§
Source§impl Clone for CancelType
impl Clone for CancelType
Source§fn clone(&self) -> CancelType
fn clone(&self) -> CancelType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CancelType
Source§impl Debug for CancelType
impl Debug for CancelType
Source§impl<'de> Deserialize<'de> for CancelType
impl<'de> Deserialize<'de> for CancelType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CancelType
impl PartialEq for CancelType
Source§fn eq(&self, other: &CancelType) -> bool
fn eq(&self, other: &CancelType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CancelType
impl Serialize for CancelType
impl StructuralPartialEq for CancelType
Auto Trait Implementations§
impl Freeze for CancelType
impl RefUnwindSafe for CancelType
impl Send for CancelType
impl Sync for CancelType
impl Unpin for CancelType
impl UnsafeUnpin for CancelType
impl UnwindSafe for CancelType
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