pub struct OKXOrderHistory {Show 34 fields
pub ord_id: Ustr,
pub cl_ord_id: Ustr,
pub algo_id: Option<Ustr>,
pub algo_cl_ord_id: Option<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: OKXOrderType,
pub sz: String,
pub px: String,
pub side: OKXSide,
pub pos_side: OKXPositionSide,
pub td_mode: OKXTradeMode,
pub reduce_only: String,
pub tgt_ccy: Option<OKXTargetCurrency>,
pub state: OKXOrderStatus,
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: OKXOrderCategory,
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: UstrOrder ID.
cl_ord_id: UstrClient order ID.
algo_id: Option<Ustr>Algo order ID (for conditional orders).
algo_cl_ord_id: Option<Ustr>Client-supplied algo order ID (for conditional orders).
cl_act_id: Option<Ustr>Client account ID (may be omitted by OKX).
tag: StringOrder tag.
inst_type: OKXInstrumentTypeInstrument type.
uly: Option<Ustr>Underlying (optional).
inst_id: UstrInstrument ID.
ord_type: OKXOrderTypeOrder type.
sz: StringOrder size.
px: StringPrice (optional).
side: OKXSideSide.
pos_side: OKXPositionSidePosition side.
td_mode: OKXTradeModeTrade mode.
reduce_only: StringReduce-only flag.
tgt_ccy: Option<OKXTargetCurrency>Target currency (optional).
state: OKXOrderStatusOrder state.
avg_px: StringAverage price (optional).
fee: StringExecution fee.
fee_ccy: StringFee currency.
fill_sz: StringFilled size (optional).
fill_px: StringFill price (optional).
trade_id: UstrTrade ID (optional).
fill_time: u64Fill time, Unix timestamp in milliseconds.
acc_fill_sz: StringAccumulated 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: OKXOrderCategoryOrder category (normal, liquidation, ADL, etc.).
u_time: u64Last update time, Unix timestamp in milliseconds.
c_time: u64Creation time.
Trait Implementations§
Source§impl Clone for OKXOrderHistory
impl Clone for OKXOrderHistory
Source§fn clone(&self) -> OKXOrderHistory
fn clone(&self) -> OKXOrderHistory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Auto Trait Implementations§
impl Freeze for OKXOrderHistory
impl RefUnwindSafe for OKXOrderHistory
impl Send for OKXOrderHistory
impl Sync for OKXOrderHistory
impl Unpin for OKXOrderHistory
impl UnsafeUnpin 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
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