ibkr_cp_api_client/models/
order_ticket.rs1use std::collections::HashMap;
2
3use serde::{Deserialize, Serialize};
4use serde_json::Value;
5
6#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
7#[serde(rename_all = "camelCase")]
8pub struct OrderTicket {
9 pub acct_id: String,
10 pub conid: i64,
11 pub conidex: String,
12 pub sec_type: String,
13 #[serde(rename = "cOID")]
14 pub c_oid: String,
15 pub parent_id: String,
16 pub order_type: String,
17 pub listing_exchange: String,
18 pub is_single_group: bool,
19 #[serde(rename = "outsideRTH")]
20 pub outside_rth: bool,
21 pub price: i64,
22 pub aux_price: String,
23 pub side: String,
24 pub ticker: String,
25 pub tif: String,
26 pub trailing_amt: i64,
27 pub trailing_type: String,
28 pub referrer: String,
29 pub quantity: i64,
30 pub cash_qty: i64,
31 pub fx_qty: i64,
32 pub use_adaptive: bool,
33 pub is_ccy_conv: bool,
34 pub allocation_method: String,
35 pub strategy: String,
36 pub strategy_parameters: HashMap<String, Value>,
37}