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>Unique WebSocket request ID.
This field is **optional.
order_id: Option<i64>orderIdororigClientOrderIdmustbesent
This field is **optional.
orig_client_order_id: Option<String>orderIdororigClientOrderIdmustbesent
This field is **optional.
new_client_order_id: Option<String>The new client order ID for the order after being amended.
If not sent, one will be randomly generated.
It is possible to reuse the current clientOrderId by sending it as the newClientOrderId.
This field is **optional.
cancel_restrictions: Option<OrderCancelCancelRestrictionsEnum>The cancel_restrictions parameter.
This field is **optional.
recv_window: Option<Decimal>The value cannot be greater than 60000.
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