pub enum RejectReason {
Show 49 variants
EcNoError,
EcOthers,
EcUnknownMessageType,
EcMissingClOrdId,
EcMissingOrigClOrdId,
EcClOrdIdorigClOrdIdareTheSame,
EcDuplicatedClOrdId,
EcOrigClOrdIddoesNotExist,
EcTooLateToCancel,
EcUnknownOrderType,
EcUnknownSide,
EcUnknownTimeInForce,
EcWronglyRouted,
EcMarketOrderPriceIsNotZero,
EcLimitOrderInvalidPrice,
EcNoEnoughQtyToFill,
EcNoImmediateQtyToFill,
EcPerCancelRequest,
EcMarketOrderCannotBePostOnly,
EcPostOnlyWillTakeLiquidity,
EcCancelReplaceOrder,
EcInvalidSymbolStatus,
EcCancelForNoFullFill,
EcBySelfMatch,
EcInCallAuctionStatus,
EcQtyCannotBeZero,
EcMarketOrderNoSupportTif,
EcReachMaxTradeNum,
EcInvalidPriceScale,
EcBitIndexInvalid,
EcStopBySelfMatch,
EcInvalidSmpType,
EcCancelByMmp,
EcInvalidUserType,
EcInvalidMirrorOid,
EcInvalidMirrorUid,
EcEcInvalidQty,
EcInvalidAmount,
EcLoadOrderCancel,
EcMarketQuoteNoSuppSell,
EcDisorderOrderId,
EcInvalidBaseValue,
EcLoadOrderCanMatch,
EcSecurityStatusFail,
EcReachRiskPriceLimit,
EcOrderNotExist,
EcCancelByOrderValueZero,
EcCancelByMatchValueZero,
EcReachMarketPriceLimit,
}Expand description
Why an order was rejected or cancelled by the matching engine (rejectReason).
Variants§
EcNoError
No error.
EcOthers
Other reason.
EcUnknownMessageType
Unknown message type.
EcMissingClOrdId
Missing client order id.
EcMissingOrigClOrdId
Missing original client order id.
EcClOrdIdorigClOrdIdareTheSame
Client order id and original client order id are the same.
EcDuplicatedClOrdId
Duplicated client order id.
EcOrigClOrdIddoesNotExist
Original client order id does not exist.
EcTooLateToCancel
Too late to cancel.
EcUnknownOrderType
Unknown order type.
EcUnknownSide
Unknown side.
EcUnknownTimeInForce
Unknown time in force.
EcWronglyRouted
Wrongly routed.
EcMarketOrderPriceIsNotZero
A market order has a non-zero price.
EcLimitOrderInvalidPrice
Invalid limit price.
EcNoEnoughQtyToFill
Not enough quantity to fill.
EcNoImmediateQtyToFill
No maker could be found to fill the order.
EcPerCancelRequest
Cancelled by request.
EcMarketOrderCannotBePostOnly
A market order cannot be post-only.
EcPostOnlyWillTakeLiquidity
The post-only order would have executed as a taker.
EcCancelReplaceOrder
Cancelled by a replace (amend).
EcInvalidSymbolStatus
The symbol status does not allow it.
EcCancelForNoFullFill
Cancelled because it could not be filled completely (FOK).
EcBySelfMatch
Cancelled by self-match prevention.
EcInCallAuctionStatus
used for pre-market order operation, e.g., during 2nd phase of call auction, cancel order is not allowed, when the cancel request is failed to be rejected by trading server, the request will be rejected by matching box finally
EcQtyCannotBeZero
Quantity cannot be zero.
EcMarketOrderNoSupportTif
Market orders do not support this time in force.
EcReachMaxTradeNum
Maximum number of trades reached.
EcInvalidPriceScale
Invalid price precision.
EcBitIndexInvalid
Invalid bit index.
EcStopBySelfMatch
Stopped by self-match prevention.
EcInvalidSmpType
Invalid self-match prevention type.
EcCancelByMmp
Cancelled by market maker protection.
EcInvalidUserType
Invalid user type.
EcInvalidMirrorOid
Invalid mirror order id.
EcInvalidMirrorUid
Invalid mirror user id.
EcEcInvalidQty
Invalid quantity.
EcInvalidAmount
Invalid amount.
EcLoadOrderCancel
Cancelled while loading the order.
EcMarketQuoteNoSuppSell
Market orders in quote quantity do not support sell.
EcDisorderOrderId
Out-of-order order id.
EcInvalidBaseValue
Invalid base value.
EcLoadOrderCanMatch
The loaded order can match.
EcSecurityStatusFail
Security status check failed.
EcReachRiskPriceLimit
Risk price limit reached.
EcOrderNotExist
The order does not exist.
EcCancelByOrderValueZero
Cancelled because its remaining value is zero.
EcCancelByMatchValueZero
Cancelled because the order it matched with has a remaining value of zero.
EcReachMarketPriceLimit
Market price limit reached.