pub struct MarginCancelOCOOrder { /* private fields */ }
Expand description
DELETE /sapi/v1/margin/orderList
Cancel an entire Order List for a margin account
- Canceling an individual leg will cancel the entire OCO
- Either
orderListId
orlistClientOrderId
must be provided
Weight(UID): 1
Example
use binance_spot_connector_rust::margin;
let request = margin::margin_cancel_oco_order("BNBUSDT").order_list_id(10000);
Implementations§
source§impl MarginCancelOCOOrder
impl MarginCancelOCOOrder
pub fn new(symbol: &str) -> Self
pub fn is_isolated(self, is_isolated: bool) -> Self
pub fn order_list_id(self, order_list_id: u64) -> Self
pub fn list_client_order_id(self, list_client_order_id: &str) -> Self
pub fn new_client_order_id(self, new_client_order_id: &str) -> Self
pub fn recv_window(self, recv_window: u64) -> Self
pub fn credentials(self, credentials: &Credentials) -> Self
Trait Implementations§
source§impl From<MarginCancelOCOOrder> for Request
impl From<MarginCancelOCOOrder> for Request
source§fn from(request: MarginCancelOCOOrder) -> Request
fn from(request: MarginCancelOCOOrder) -> Request
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MarginCancelOCOOrder
impl Send for MarginCancelOCOOrder
impl Sync for MarginCancelOCOOrder
impl Unpin for MarginCancelOCOOrder
impl UnwindSafe for MarginCancelOCOOrder
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