#[non_exhaustive]pub struct PlaceSpreadOrderRequest {
pub sprd_id: String,
pub cl_ord_id: Option<String>,
pub tag: Option<String>,
pub side: String,
pub ord_type: String,
pub sz: String,
pub px: Option<String>,
}Expand description
Place-spread-order request body (sprd-order).
OKX docs: https://www.okx.com/docs-v5/en/#spread-trading-websocket-trade-api-ws-place-order
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sprd_id: StringSpread ID.
cl_ord_id: Option<String>Client order ID.
tag: Option<String>Order tag.
side: StringOrder side: buy or sell.
ord_type: StringSpread order type: limit, post_only, or ioc.
sz: StringOrder quantity.
px: Option<String>Order price.
Implementations§
Source§impl PlaceSpreadOrderRequest
impl PlaceSpreadOrderRequest
Trait Implementations§
Source§impl Clone for PlaceSpreadOrderRequest
impl Clone for PlaceSpreadOrderRequest
Source§fn clone(&self) -> PlaceSpreadOrderRequest
fn clone(&self) -> PlaceSpreadOrderRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlaceSpreadOrderRequest
impl Debug for PlaceSpreadOrderRequest
impl Eq for PlaceSpreadOrderRequest
Source§impl PartialEq for PlaceSpreadOrderRequest
impl PartialEq for PlaceSpreadOrderRequest
Source§impl Serialize for PlaceSpreadOrderRequest
impl Serialize for PlaceSpreadOrderRequest
impl StructuralPartialEq for PlaceSpreadOrderRequest
Auto Trait Implementations§
impl Freeze for PlaceSpreadOrderRequest
impl RefUnwindSafe for PlaceSpreadOrderRequest
impl Send for PlaceSpreadOrderRequest
impl Sync for PlaceSpreadOrderRequest
impl Unpin for PlaceSpreadOrderRequest
impl UnsafeUnpin for PlaceSpreadOrderRequest
impl UnwindSafe for PlaceSpreadOrderRequest
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