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

1//!
2//! The open orders 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/openOrders` GET response.
15///
16pub type Response = Vec<OpenOrder>;
17
18///
19/// A single open order element.
20///
21#[derive(Debug, Deserialize, Clone)]
22#[serde(rename_all = "camelCase")]
23pub struct OpenOrder {
24    /// The symbol name.
25    pub symbol: String,
26    /// The original client-side order ID.
27    pub orig_client_order_id: String,
28    /// The server-side order ID.
29    pub order_id: i64,
30    /// The server-side order list ID.
31    pub order_list_id: i64,
32    /// The client-side order ID.
33    pub client_order_id: String,
34    /// The order price.
35    pub price: Decimal,
36    /// The initial order quantity.
37    pub orig_qty: Decimal,
38    /// The order quantity executed so far.
39    pub executed_qty: Decimal,
40    /// Usually the same as `executed_qty`.
41    pub cummulative_quote_qty: Decimal,
42    /// The order status.
43    pub status: OrderStatus,
44    /// The order time-in-force.
45    pub time_in_force: OrderTimeInForce,
46    /// The order type.
47    pub r#type: OrderType,
48    /// The order side.
49    pub side: OrderSide,
50}