binance_client/http_api_v3/data/order/delete/
response.rs

1//!
2//! The order DELETE response.
3//!
4
5use rust_decimal::Decimal;
6use serde::Deserialize;
7
8use crate::http_api_v3::data::order_side::OrderSide;
9use crate::http_api_v3::data::order_status::OrderStatus;
10use crate::http_api_v3::data::order_time_in_force::OrderTimeInForce;
11use crate::http_api_v3::data::order_type::OrderType;
12
13///
14/// The `https://www.binance.com/api/v3/order` POST response.
15///
16#[derive(Debug, Deserialize, Clone)]
17#[serde(rename_all = "camelCase")]
18pub struct Response {
19    /// The symbol name.
20    pub symbol: String,
21    /// Either `orderId` or `origClientOrderId` must be sent.
22    pub orig_client_order_id: String,
23    /// The cancelled order ID.
24    pub order_id: i64,
25    /// The client-side order ID.
26    pub client_order_id: String,
27    /// The order price.
28    pub price: Decimal,
29    /// The initial order quantity.
30    pub orig_qty: Decimal,
31    /// The order quantity executed before cancellation.
32    pub executed_qty: Decimal,
33    /// Usually the same as `executed_qty`.
34    pub cummulative_quote_qty: Decimal,
35    /// The order status, which must be `CANCELED`.
36    pub status: OrderStatus,
37    /// The order time-in-force.
38    pub time_in_force: OrderTimeInForce,
39    /// The order type.
40    pub r#type: OrderType,
41    /// The order side.
42    pub side: OrderSide,
43}