pub struct OKXPlaceOrderResponse {Show 23 fields
pub ord_id: Option<Ustr>,
pub cl_ord_id: Option<Ustr>,
pub tag: Option<String>,
pub inst_id: Option<Ustr>,
pub side: Option<OKXSide>,
pub ord_type: Option<String>,
pub sz: Option<String>,
pub state: Option<String>,
pub px: Option<String>,
pub avg_px: Option<String>,
pub acc_fill_sz: Option<String>,
pub fill_sz: Option<String>,
pub fill_px: Option<String>,
pub trade_id: Option<Ustr>,
pub fill_time: Option<String>,
pub fee: Option<String>,
pub fee_ccy: Option<String>,
pub req_id: Option<Ustr>,
pub pos_side: Option<OKXPositionSide>,
pub reduce_only: Option<String>,
pub tgt_ccy: Option<String>,
pub c_time: Option<String>,
pub u_time: Option<String>,
}
Expand description
Represents the response from POST /api/v5/trade/order
(place order).
This model is designed to be flexible and handle the minimal fields that the API returns.
Fields§
§ord_id: Option<Ustr>
Order ID.
cl_ord_id: Option<Ustr>
Client order ID.
tag: Option<String>
Order tag.
inst_id: Option<Ustr>
Instrument ID (optional - might not be in response).
side: Option<OKXSide>
Order side (optional).
ord_type: Option<String>
Order type (optional).
sz: Option<String>
Order size (optional).
state: Option<String>
Order state (optional).
px: Option<String>
Price (optional).
avg_px: Option<String>
Average price (optional).
acc_fill_sz: Option<String>
Accumulated filled size.
fill_sz: Option<String>
Fill size (optional).
fill_px: Option<String>
Fill price (optional).
trade_id: Option<Ustr>
Trade ID (optional).
fill_time: Option<String>
Fill time (optional).
fee: Option<String>
Fee (optional).
fee_ccy: Option<String>
Fee currency (optional).
req_id: Option<Ustr>
Request ID (optional).
pos_side: Option<OKXPositionSide>
Position side (optional).
reduce_only: Option<String>
Reduce-only flag (optional).
tgt_ccy: Option<String>
Target currency (optional).
c_time: Option<String>
Creation time.
u_time: Option<String>
Last update time (optional).
Trait Implementations§
Source§impl Clone for OKXPlaceOrderResponse
impl Clone for OKXPlaceOrderResponse
Source§fn clone(&self) -> OKXPlaceOrderResponse
fn clone(&self) -> OKXPlaceOrderResponse
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 OKXPlaceOrderResponse
impl Debug for OKXPlaceOrderResponse
Source§impl<'de> Deserialize<'de> for OKXPlaceOrderResponse
impl<'de> Deserialize<'de> for OKXPlaceOrderResponse
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 OKXPlaceOrderResponse
impl RefUnwindSafe for OKXPlaceOrderResponse
impl Send for OKXPlaceOrderResponse
impl Sync for OKXPlaceOrderResponse
impl Unpin for OKXPlaceOrderResponse
impl UnwindSafe for OKXPlaceOrderResponse
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