pub enum OKXOrderCategory {
Normal,
FullLiquidation,
PartialLiquidation,
Adl,
Twap,
Iceberg,
Oco,
Conditional,
MoveOrderStop,
Ddh,
Other,
}Expand description
Represents the category of an order on OKX.
The category field indicates whether an order is a normal trade, liquidation, auto-deleveraging (ADL) event, or algorithmic order type. This is critical for risk management and proper handling of exchange-generated orders.
§References
https://www.okx.com/docs-v5/en/#order-book-trading-ws-order-channel
Variants§
Normal
Normal trading order.
FullLiquidation
Full liquidation order (position completely closed by exchange).
PartialLiquidation
Partial liquidation order (position partially closed by exchange).
Adl
Auto-deleveraging order (position closed to offset counterparty liquidation).
Twap
Time-Weighted Average Price algorithmic order.
Iceberg
Iceberg algorithmic order (hidden quantity).
Oco
One-Cancels-the-Other algorithmic order.
Conditional
Conditional/trigger order.
MoveOrderStop
Move order stop algorithmic order.
Ddh
Delivery and exercise (for futures/options settlement).
Other
Unknown or future category (graceful fallback).
Trait Implementations§
Source§impl AsRef<str> for OKXOrderCategory
impl AsRef<str> for OKXOrderCategory
Source§impl Clone for OKXOrderCategory
impl Clone for OKXOrderCategory
Source§fn clone(&self) -> OKXOrderCategory
fn clone(&self) -> OKXOrderCategory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OKXOrderCategory
impl Debug for OKXOrderCategory
Source§impl<'de> Deserialize<'de> for OKXOrderCategory
impl<'de> Deserialize<'de> for OKXOrderCategory
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 OKXOrderCategory
impl Display for OKXOrderCategory
Source§impl FromStr for OKXOrderCategory
impl FromStr for OKXOrderCategory
Source§impl Hash for OKXOrderCategory
impl Hash for OKXOrderCategory
Source§impl IntoEnumIterator for OKXOrderCategory
impl IntoEnumIterator for OKXOrderCategory
type Iterator = OKXOrderCategoryIter
fn iter() -> OKXOrderCategoryIter ⓘ
Source§impl PartialEq for OKXOrderCategory
impl PartialEq for OKXOrderCategory
Source§impl Serialize for OKXOrderCategory
impl Serialize for OKXOrderCategory
Source§impl TryFrom<&str> for OKXOrderCategory
impl TryFrom<&str> for OKXOrderCategory
impl Copy for OKXOrderCategory
impl Eq for OKXOrderCategory
impl StructuralPartialEq for OKXOrderCategory
Auto Trait Implementations§
impl Freeze for OKXOrderCategory
impl RefUnwindSafe for OKXOrderCategory
impl Send for OKXOrderCategory
impl Sync for OKXOrderCategory
impl Unpin for OKXOrderCategory
impl UnwindSafe for OKXOrderCategory
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
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
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Separable for Twhere
T: Display,
impl<T> Separable for Twhere
T: Display,
Source§fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
SeparatorPolicy. Read moreSource§fn separate_with_commas(&self) -> String
fn separate_with_commas(&self) -> String
Source§fn separate_with_spaces(&self) -> String
fn separate_with_spaces(&self) -> String
Source§fn separate_with_dots(&self) -> String
fn separate_with_dots(&self) -> String
Source§fn separate_with_underscores(&self) -> String
fn separate_with_underscores(&self) -> String
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.