pub struct OKXOrderAlgo {Show 24 fields
pub algo_id: String,
pub algo_cl_ord_id: String,
pub cl_ord_id: String,
pub ord_id: String,
pub inst_id: Ustr,
pub inst_type: OKXInstrumentType,
pub ord_type: OKXOrderType,
pub state: OKXOrderStatus,
pub side: OKXSide,
pub pos_side: OKXPositionSide,
pub sz: String,
pub trigger_px: String,
pub trigger_px_type: Option<OKXTriggerType>,
pub ord_px: String,
pub td_mode: OKXTradeMode,
pub lever: String,
pub reduce_only: String,
pub actual_px: String,
pub actual_sz: String,
pub notional_usd: String,
pub c_time: u64,
pub u_time: u64,
pub trigger_time: String,
pub tag: String,
}Expand description
Represents an algo order response from /trade/order-algo-* endpoints.
Fields§
§algo_id: StringAlgo order ID assigned by OKX.
algo_cl_ord_id: StringClient-specified algo order ID.
cl_ord_id: StringClient order ID (empty until triggered).
ord_id: StringVenue order ID (empty until triggered).
inst_id: UstrInstrument ID, e.g. ETH-USDT-SWAP.
inst_type: OKXInstrumentTypeInstrument type.
ord_type: OKXOrderTypeAlgo order type.
state: OKXOrderStatusCurrent order state.
side: OKXSideOrder side.
pos_side: OKXPositionSidePosition side.
sz: StringSubmitted size.
trigger_px: StringTrigger price (empty for certain algo styles).
trigger_px_type: Option<OKXTriggerType>Trigger price type (last/mark/index).
ord_px: StringOrder price (-1 indicates market execution once triggered).
td_mode: OKXTradeModeTrade mode (cash/cross/isolated).
lever: StringAlgo leverage configuration.
reduce_only: StringReduce-only flag.
actual_px: StringExecuted price (if triggered).
actual_sz: StringExecuted size (if triggered).
notional_usd: StringNotional value in USD.
c_time: u64Creation time (milliseconds).
u_time: u64Last update time (milliseconds).
trigger_time: StringTrigger timestamp (if triggered).
tag: StringOptional tag supplied during submission.
Trait Implementations§
Source§impl Clone for OKXOrderAlgo
impl Clone for OKXOrderAlgo
Source§fn clone(&self) -> OKXOrderAlgo
fn clone(&self) -> OKXOrderAlgo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OKXOrderAlgo
impl Debug for OKXOrderAlgo
Source§impl<'de> Deserialize<'de> for OKXOrderAlgo
impl<'de> Deserialize<'de> for OKXOrderAlgo
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>,
Auto Trait Implementations§
impl Freeze for OKXOrderAlgo
impl RefUnwindSafe for OKXOrderAlgo
impl Send for OKXOrderAlgo
impl Sync for OKXOrderAlgo
impl Unpin for OKXOrderAlgo
impl UnsafeUnpin for OKXOrderAlgo
impl UnwindSafe for OKXOrderAlgo
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<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