pub struct OKXOrderMsg {Show 31 fields
pub acc_fill_sz: Option<String>,
pub algo_cl_ord_id: Option<String>,
pub algo_id: Option<String>,
pub avg_px: String,
pub c_time: u64,
pub cancel_source: Option<String>,
pub cancel_source_reason: Option<String>,
pub category: Ustr,
pub ccy: Ustr,
pub cl_ord_id: 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: Ustr,
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 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.
algo_cl_ord_id: Option<String>
Algorithm client order ID.
algo_id: Option<String>
Algorithm ID.
avg_px: String
Average price.
c_time: u64
Creation time, Unix timestamp in milliseconds.
cancel_source: Option<String>
Cancel source.
cancel_source_reason: Option<String>
Cancel source reason.
category: Ustr
Category.
ccy: Ustr
Currency.
cl_ord_id: String
Client order ID.
fee: Option<String>
Fee.
fee_ccy: Ustr
Fee currency.
fill_px: String
Fill price.
fill_sz: String
Fill size.
fill_time: u64
Fill time, Unix timestamp in milliseconds.
inst_id: Ustr
Instrument ID.
inst_type: OKXInstrumentType
Instrument type.
lever: String
Leverage.
ord_id: Ustr
Order ID.
ord_type: OKXOrderType
Order type.
pnl: String
Profit and loss.
pos_side: Ustr
Position side.
px: String
Price.
reduce_only: String
Reduce only flag.
side: OKXSide
Side.
state: OKXOrderStatus
Order state.
exec_type: OKXExecType
Execution type.
sz: String
Size.
td_mode: OKXTradeMode
Trade mode.
trade_id: String
Trade ID.
u_time: u64
Last update time, Unix timestamp in milliseconds.
Trait Implementations§
Source§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
§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