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

1//!
2//! The order GET 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` GET response.
15///
16#[derive(Debug, Deserialize, Clone)]
17#[serde(rename_all = "camelCase")]
18pub struct Response {
19    /// The symbol name.
20    pub symbol: String,
21    /// The server-side order ID.
22    pub order_id: i64,
23    /// The client-side order ID.
24    pub client_order_id: String,
25    /// The order price.
26    pub price: Decimal,
27    /// The initial order quantity.
28    pub orig_qty: Decimal,
29    /// The order quantity executed so far.
30    pub executed_qty: Decimal,
31    /// Usually the same as `executed_qty`.
32    pub cummulative_quote_qty: Decimal,
33    /// The order status.
34    pub status: OrderStatus,
35    /// The order time-in-force.
36    pub time_in_force: OrderTimeInForce,
37    /// The order type.
38    pub r#type: OrderType,
39    /// The order side.
40    pub side: OrderSide,
41    /// Used with `STOP_LOSS`, `STOP_LOSS_LIMIT`, `TAKE_PROFIT`, and `TAKE_PROFIT_LIMIT` orders.
42    pub stop_price: Decimal,
43    /// The iceberg order quantity.
44    pub iceberg_qty: Decimal,
45    /// The order time in milliseconds.
46    pub time: i64,
47    /// Usually the same as `time`.
48    pub update_time: i64,
49    /// Unknown value.
50    pub is_working: bool,
51}