pub enum DeriveOrderCancelReason {
Show 14 variants
Empty,
UserRequest,
MmpTrigger,
InsufficientMargin,
SignedMaxFeeTooLow,
CancelOnDisconnect,
IocOrMarketPartialFill,
SessionKeyDeregistered,
SubaccountWithdrawn,
Compliance,
TriggerFailed,
ValidationFailed,
AlgoCompleted,
PostOnlyCrossMarket,
}Expand description
Cancel reason attached to a cancelled order. Empty string corresponds to no reason (order is still open or finished by another transition).
ValidationFailed is present in the SDK enum but absent from the public
JSON schema; included here for round-trip fidelity against SDK responses.
Variants§
Empty
No cancel reason (open or finished without cancellation).
UserRequest
Explicit cancel via private/cancel*.
MmpTrigger
Market Maker Protection tripped.
InsufficientMargin
Margin check failed at matching.
SignedMaxFeeTooLow
Signed max_fee is below the venue’s current required fee.
CancelOnDisconnect
WS disconnect cancelled the session with cancel-on-disconnect enabled.
IocOrMarketPartialFill
Remainder of an IOC or market order auto-cancelled.
SessionKeyDeregistered
Signing session key was deregistered.
SubaccountWithdrawn
Subaccount fully withdrawn.
Compliance
Cancelled by compliance action.
TriggerFailed
Trigger worker could not submit the child order.
ValidationFailed
Pre-engine validation failure (SDK-only, not in the public schema).
AlgoCompleted
Algorithmic parent completed after finishing its slices.
PostOnlyCrossMarket
Post-only order would cross the market.
Trait Implementations§
Source§impl AsRef<str> for DeriveOrderCancelReason
impl AsRef<str> for DeriveOrderCancelReason
Source§impl Clone for DeriveOrderCancelReason
impl Clone for DeriveOrderCancelReason
Source§fn clone(&self) -> DeriveOrderCancelReason
fn clone(&self) -> DeriveOrderCancelReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DeriveOrderCancelReason
Source§impl Debug for DeriveOrderCancelReason
impl Debug for DeriveOrderCancelReason
Source§impl<'de> Deserialize<'de> for DeriveOrderCancelReason
impl<'de> Deserialize<'de> for DeriveOrderCancelReason
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>,
Source§impl Display for DeriveOrderCancelReason
impl Display for DeriveOrderCancelReason
impl Eq for DeriveOrderCancelReason
Source§impl FromStr for DeriveOrderCancelReason
impl FromStr for DeriveOrderCancelReason
Source§impl Hash for DeriveOrderCancelReason
impl Hash for DeriveOrderCancelReason
Source§impl PartialEq for DeriveOrderCancelReason
impl PartialEq for DeriveOrderCancelReason
Source§fn eq(&self, other: &DeriveOrderCancelReason) -> bool
fn eq(&self, other: &DeriveOrderCancelReason) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DeriveOrderCancelReason
impl Serialize for DeriveOrderCancelReason
impl StructuralPartialEq for DeriveOrderCancelReason
Auto Trait Implementations§
impl Freeze for DeriveOrderCancelReason
impl RefUnwindSafe for DeriveOrderCancelReason
impl Send for DeriveOrderCancelReason
impl Sync for DeriveOrderCancelReason
impl Unpin for DeriveOrderCancelReason
impl UnsafeUnpin for DeriveOrderCancelReason
impl UnwindSafe for DeriveOrderCancelReason
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
impl<'de, T> BorrowedRpcObject<'de> for Twhere
T: RpcBorrow<'de> + RpcSend,
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
key and return true if they are equal.§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
§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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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