pub struct OKXOrderHistory {Show 32 fields
pub ord_id: Ustr,
pub cl_ord_id: Ustr,
pub cl_act_id: Option<Ustr>,
pub tag: String,
pub inst_type: OKXInstrumentType,
pub uly: Option<Ustr>,
pub inst_id: Ustr,
pub ord_type: String,
pub sz: String,
pub px: String,
pub side: OKXSide,
pub pos_side: OKXPositionSide,
pub td_mode: String,
pub reduce_only: String,
pub tgt_ccy: String,
pub state: String,
pub avg_px: String,
pub fee: String,
pub fee_ccy: String,
pub fill_sz: String,
pub fill_px: String,
pub trade_id: Ustr,
pub fill_time: u64,
pub acc_fill_sz: String,
pub fill_fee: Option<String>,
pub req_id: Option<Ustr>,
pub cancel_fill_sz: Option<String>,
pub cancel_total_sz: Option<String>,
pub fee_discount: Option<String>,
pub category: String,
pub u_time: u64,
pub c_time: u64,
}
Expand description
Represents a single historical order record from GET /api/v5/trade/orders-history
.
Fields§
§ord_id: Ustr
Order ID.
cl_ord_id: Ustr
Client order ID.
cl_act_id: Option<Ustr>
Client account ID (may be omitted by OKX).
tag: String
Order tag.
inst_type: OKXInstrumentType
Instrument type.
uly: Option<Ustr>
Underlying (optional).
inst_id: Ustr
Instrument ID.
ord_type: String
Order type.
sz: String
Order size.
px: String
Price (optional).
side: OKXSide
Side.
pos_side: OKXPositionSide
Position side.
td_mode: String
Trade mode.
reduce_only: String
Reduce-only flag.
tgt_ccy: String
Target currency (optional).
state: String
Order state.
avg_px: String
Average price (optional).
fee: String
Execution fee.
fee_ccy: String
Fee currency.
fill_sz: String
Filled size (optional).
fill_px: String
Fill price (optional).
trade_id: Ustr
Trade ID (optional).
fill_time: u64
Fill time, Unix timestamp in milliseconds.
acc_fill_sz: String
Accumulated filled size.
fill_fee: Option<String>
Fill fee (optional, may be omitted).
req_id: Option<Ustr>
Request ID (optional).
cancel_fill_sz: Option<String>
Cancelled filled size (optional).
cancel_total_sz: Option<String>
Cancelled total size (optional).
fee_discount: Option<String>
Fee discount (optional).
category: String
Category (optional).
u_time: u64
Last update time, Unix timestamp in milliseconds.
c_time: u64
Creation time.
Trait Implementations§
Source§impl Clone for OKXOrderHistory
impl Clone for OKXOrderHistory
Source§fn clone(&self) -> OKXOrderHistory
fn clone(&self) -> OKXOrderHistory
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 OKXOrderHistory
impl Debug for OKXOrderHistory
Source§impl<'de> Deserialize<'de> for OKXOrderHistory
impl<'de> Deserialize<'de> for OKXOrderHistory
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 OKXOrderHistory
impl RefUnwindSafe for OKXOrderHistory
impl Send for OKXOrderHistory
impl Sync for OKXOrderHistory
impl Unpin for OKXOrderHistory
impl UnwindSafe for OKXOrderHistory
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