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,
}Expand description
Why an order was cancelled (cancelType).
Variants§
CancelByUser
Cancelled by the user.
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
Cancelled by Bybit (admin).
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
Cancelled because the account cannot afford the order cost.
CancelByPmTrialMmOverEquity
Cancelled because portfolio margin trial maintenance margin exceeded equity.
CancelByAccountBlocking
Cancelled because the account is blocked.
CancelByDelivery
Cancelled by delivery.
CancelByMmpTriggered
Cancelled by market maker protection.
CancelByCrossSelfMuch
Cancelled by cross self-match.
CancelByCrossReachMaxTradeNum
Cancelled because the cross reached the maximum number of trades.
UNKNOWN
Not documented