pub struct OcoOrderParams<'a> {
pub symbol: &'a str,
pub side: &'a str,
pub quantity: &'a str,
pub above_type: &'a str,
pub below_type: &'a str,
pub above_price: Option<&'a str>,
pub above_stop_price: Option<&'a str>,
pub below_price: Option<&'a str>,
pub below_stop_price: Option<&'a str>,
pub list_client_order_id: Option<&'a str>,
}Expand description
Parameters for OCO (One-Cancels-Other) orders
Fields§
§symbol: &'a strTrading symbol (e.g., “BTCUSDT”)
side: &'a strOrder side - “BUY” or “SELL”
quantity: &'a strOrder quantity as a string
above_type: &'a strOrder type for above price - “STOP_LOSS_LIMIT”, “LIMIT_MAKER”, etc.
below_type: &'a strOrder type for below price - “STOP_LOSS”, “STOP_LOSS_LIMIT”, etc.
above_price: Option<&'a str>Price for above order
above_stop_price: Option<&'a str>Stop price for above order
below_price: Option<&'a str>Price for below order
below_stop_price: Option<&'a str>Stop price for below order
list_client_order_id: Option<&'a str>Client-generated list order ID for tracking
Auto Trait Implementations§
impl<'a> Freeze for OcoOrderParams<'a>
impl<'a> RefUnwindSafe for OcoOrderParams<'a>
impl<'a> Send for OcoOrderParams<'a>
impl<'a> Sync for OcoOrderParams<'a>
impl<'a> Unpin for OcoOrderParams<'a>
impl<'a> UnwindSafe for OcoOrderParams<'a>
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