pub struct OKXOrderMsg {Show 31 fields
pub acc_fill_sz: Option<String>,
pub avg_px: String,
pub c_time: u64,
pub cancel_source: Option<String>,
pub cancel_source_reason: Option<String>,
pub category: OKXOrderCategory,
pub ccy: Ustr,
pub cl_ord_id: String,
pub algo_cl_ord_id: Option<String>,
pub fee: Option<String>,
pub fee_ccy: Ustr,
pub fill_px: String,
pub fill_sz: String,
pub fill_time: u64,
pub inst_id: Ustr,
pub inst_type: OKXInstrumentType,
pub lever: String,
pub ord_id: Ustr,
pub ord_type: OKXOrderType,
pub pnl: String,
pub pos_side: OKXPositionSide,
pub px: String,
pub reduce_only: String,
pub side: OKXSide,
pub state: OKXOrderStatus,
pub exec_type: OKXExecType,
pub sz: String,
pub td_mode: OKXTradeMode,
pub tgt_ccy: Option<OKXTargetCurrency>,
pub trade_id: String,
pub u_time: u64,
}Expand description
Order update message from WebSocket orders channel.
Fields§
§acc_fill_sz: Option<String>Accumulated filled size.
avg_px: StringAverage price.
c_time: u64Creation time, Unix timestamp in milliseconds.
cancel_source: Option<String>Cancel source.
cancel_source_reason: Option<String>Cancel source reason.
category: OKXOrderCategoryOrder category (normal, liquidation, ADL, etc.).
ccy: UstrCurrency.
cl_ord_id: StringClient order ID.
algo_cl_ord_id: Option<String>Parent algo client order ID if present.
fee: Option<String>Fee.
fee_ccy: UstrFee currency.
fill_px: StringFill price.
fill_sz: StringFill size.
fill_time: u64Fill time, Unix timestamp in milliseconds.
inst_id: UstrInstrument ID.
inst_type: OKXInstrumentTypeInstrument type.
lever: StringLeverage.
ord_id: UstrOrder ID.
ord_type: OKXOrderTypeOrder type.
pnl: StringProfit and loss.
pos_side: OKXPositionSidePosition side.
px: StringPrice (algo orders use ordPx instead).
reduce_only: StringReduce only flag.
side: OKXSideSide.
state: OKXOrderStatusOrder state.
exec_type: OKXExecTypeExecution type.
sz: StringSize.
td_mode: OKXTradeModeTrade mode.
tgt_ccy: Option<OKXTargetCurrency>Target currency (base_ccy or quote_ccy). Empty for margin modes.
trade_id: StringTrade ID.
u_time: u64Last update time, Unix timestamp in milliseconds.
Trait Implementations§
Source§impl Clone for OKXOrderMsg
impl Clone for OKXOrderMsg
Source§fn clone(&self) -> OKXOrderMsg
fn clone(&self) -> OKXOrderMsg
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OKXOrderMsg
impl Debug for OKXOrderMsg
Source§impl<'de> Deserialize<'de> for OKXOrderMsg
impl<'de> Deserialize<'de> for OKXOrderMsg
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OKXOrderMsg
impl RefUnwindSafe for OKXOrderMsg
impl Send for OKXOrderMsg
impl Sync for OKXOrderMsg
impl Unpin for OKXOrderMsg
impl UnwindSafe for OKXOrderMsg
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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