pub struct OrderCancelParams {
pub symbol: String,
pub id: Option<String>,
pub order_id: Option<i64>,
pub orig_client_order_id: Option<String>,
pub new_client_order_id: Option<String>,
pub cancel_restrictions: Option<OrderCancelCancelRestrictionsEnum>,
pub recv_window: Option<Decimal>,
}Expand description
Request parameters for the [order_cancel] operation.
This struct holds all of the inputs you can pass when calling
order_cancel.
Fields§
§symbol: StringThe symbol parameter.
This field is **required.
id: Option<String>Client-generated request identifier.
This field is **optional.
order_id: Option<i64>The order_id parameter.
This field is **optional.
orig_client_order_id: Option<String>The orig_client_order_id parameter.
This field is **optional.
new_client_order_id: Option<String>Used to uniquely identify this cancel. Automatically generated by default.
This field is **optional.
cancel_restrictions: Option<OrderCancelCancelRestrictionsEnum>Supported values: ONLY_NEW - Cancel will succeed if the order status is NEW.
ONLY_PARTIALLY_FILLED - Cancel will succeed if order status is PARTIALLY_FILLED.
This field is **optional.
recv_window: Option<Decimal>Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified.
This field is **optional.
Implementations§
Source§impl OrderCancelParams
impl OrderCancelParams
Sourcepub fn builder(symbol: String) -> OrderCancelParamsBuilder
pub fn builder(symbol: String) -> OrderCancelParamsBuilder
Create a builder for [order_cancel].
Required parameters:
symbol— String
Trait Implementations§
Source§impl Clone for OrderCancelParams
impl Clone for OrderCancelParams
Source§fn clone(&self) -> OrderCancelParams
fn clone(&self) -> OrderCancelParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more