pub async fn cancel_order(
            &self,
            symbol: impl Serialize,
            order_id: Option<u64>,
            orig_client_order_id: Option<impl Serialize>,
            new_client_order_id: Option<impl Serialize>,
            time_window: impl Into<TimeWindow>,
        ) -> BinanceResult<CancelledOrder> {
            if order_id.is_none() && orig_client_order_id.is_none() {
                Err(ApiError::mandatory_field_omitted(
                    "order_id or orig_client_order_id",
                ))?
            }
            self.client
                .delete(API_V3_ORDER)?
                .signed(time_window)?
                .query_arg("symbol", &symbol)?
                .try_query_arg("orderId", &order_id)?
                .try_query_arg("origClientOrderId", &orig_client_order_id)?
                .try_query_arg("newClientOrderId", &new_client_order_id)?
                .send()
                .await
        }
/// Cancel Order (TRADE)
///
/// Cancel an active order.
///
/// Weight: 1
///
/// * newClientOrderId Used to uniquely identify this cancel. Automatically generated by default.
///
/// Either orderId or origClientOrderId must be sent.
Cancel Order (TRADE)
Cancel an active order.

1

newClientOrderId Used to uniquely identify this cancel. Automatically generated by default.

Either orderId or origClientOrderId must be sent.
Cancel Order ( TRADE ) Cancel an active order . 1 newClientOrderId Used to uniquely identify this cancel . Automatically generated by default . Either orderId or origClientOrderId must be sent .
pub async fn cancel_order(
            &self,
            symbol: impl Serialize,
            order_id: Option<u64>,
            orig_client_order_id: Option<impl Serialize>,
            new_client_order_id: Option<impl Serialize>,
            time_window: impl Into<TimeWindow>,
        ) -> BinanceResult<CancelledOrder> {
            if order_id.is_none() && orig_client_order_id.is_none() {
                Err(ApiError::mandatory_field_omitted(
                    "order_id or orig_client_order_id",
                ))?
            }
            self.client
                .delete(API_V3_ORDER)?
                .signed(time_window)?
                .query_arg("symbol", &symbol)?
                .try_query_arg("orderId", &order_id)?
                .try_query_arg("origClientOrderId", &orig_client_order_id)?
                .try_query_arg("newClientOrderId", &new_client_order_id)?
                .send()
                .await
        }
pub async fn cancel_order ( & self , symbol : impl Serialize , order_id : Option < u64 > , orig_client_order_id : Option < impl Serialize > , new_client_order_id : Option < impl Serialize > , time_window : impl Into < TimeWindow > , ) -> BinanceResult < CancelledOrder > { if order_id . is_none ( ) && orig_client_order_id . is_none ( ) { Err ( ApiError :: mandatory_field_omitted ( " " , ) ) ? } self . client . delete ( API_V3_ORDER ) ? . signed ( time_window ) ? . query_arg ( " " , & symbol ) ? . try_query_arg ( " " , & order_id ) ? . try_query_arg ( " " , & orig_client_order_id ) ? . try_query_arg ( " " , & new_client_order_id ) ? . send ( ) . await }
Cancel Order (TRADE)
Cancel an active order.
Cancel Order ( TRADE ) Cancel an active order .
&self
symbol
impl Serialize
order_id
Option<u64>
orig_client_order_id
Option<impl Serialize>
new_client_order_id
Option<impl Serialize>
time_window
impl Into<TimeWindow>
&self
symbol
impl Serialize
order_id
Option<u64>
orig_client_order_id
Option<impl Serialize>
new_client_order_id
Option<impl Serialize>
time_window
impl Into<TimeWindow>