pub struct MarginCancelOrder { /* private fields */ }
Expand description
DELETE /sapi/v1/margin/order
Cancel an active order for margin account.
Either orderId
or origClientOrderId
must be sent.
Weight(IP): 10
Example
use binance_spot_connector_rust::margin;
let request = margin::margin_cancel_order("BNBUSDT").order_id(10);
Implementations§
source§impl MarginCancelOrder
impl MarginCancelOrder
pub fn new(symbol: &str) -> Self
pub fn is_isolated(self, is_isolated: bool) -> Self
pub fn order_id(self, order_id: u64) -> Self
pub fn orig_client_order_id(self, orig_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<MarginCancelOrder> for Request
impl From<MarginCancelOrder> for Request
source§fn from(request: MarginCancelOrder) -> Request
fn from(request: MarginCancelOrder) -> Request
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MarginCancelOrder
impl Send for MarginCancelOrder
impl Sync for MarginCancelOrder
impl Unpin for MarginCancelOrder
impl UnwindSafe for MarginCancelOrder
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