pub struct OKXPlaceOrderResponse {Show 26 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<OKXOrderType>,
pub sz: Option<String>,
pub state: Option<OKXOrderStatus>,
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<OKXTargetCurrency>,
pub c_time: Option<String>,
pub u_time: Option<String>,
pub s_code: Option<String>,
pub s_msg: Option<String>,
pub sub_code: 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<OKXOrderType>Order type (optional).
sz: Option<String>Order size (optional).
state: Option<OKXOrderStatus>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<OKXTargetCurrency>Target currency (optional).
c_time: Option<String>Creation time.
u_time: Option<String>Last update time (optional).
s_code: Option<String>The result of the request.
s_msg: Option<String>Error message if the request failed.
sub_code: Option<String>Detailed error code if the request failed.
Trait Implementations§
Source§impl Clone for OKXPlaceOrderResponse
impl Clone for OKXPlaceOrderResponse
Source§fn clone(&self) -> OKXPlaceOrderResponse
fn clone(&self) -> OKXPlaceOrderResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Auto Trait Implementations§
impl Freeze for OKXPlaceOrderResponse
impl RefUnwindSafe for OKXPlaceOrderResponse
impl Send for OKXPlaceOrderResponse
impl Sync for OKXPlaceOrderResponse
impl Unpin for OKXPlaceOrderResponse
impl UnsafeUnpin for OKXPlaceOrderResponse
impl UnwindSafe for OKXPlaceOrderResponse
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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