Skip to main content

truefix_twsapi_client/
server_versions.rs

1/// First server version using enhanced handshake and frame length prefixes.
2pub const MIN_CLIENT_VER: i32 = 100;
3
4/// Portfolio allocation order support.
5pub const MIN_SERVER_VER_PTA_ORDERS: i32 = 39;
6/// Delta-neutral contract support.
7pub const MIN_SERVER_VER_DELTA_NEUTRAL: i32 = 40;
8/// Chained contract data support.
9pub const MIN_SERVER_VER_CONTRACT_DATA_CHAIN: i32 = 40;
10/// Scale order v2 support.
11pub const MIN_SERVER_VER_SCALE_ORDERS2: i32 = 40;
12/// Algo order support.
13pub const MIN_SERVER_VER_ALGO_ORDERS: i32 = 41;
14/// Chained execution data support.
15pub const MIN_SERVER_VER_EXECUTION_DATA_CHAIN: i32 = 42;
16/// Not-held order support.
17pub const MIN_SERVER_VER_NOT_HELD: i32 = 44;
18/// Security-id type support.
19pub const MIN_SERVER_VER_SEC_ID_TYPE: i32 = 45;
20/// Place order by conId support.
21pub const MIN_SERVER_VER_PLACE_ORDER_CONID: i32 = 46;
22/// Market data by conId support.
23pub const MIN_SERVER_VER_REQ_MKT_DATA_CONID: i32 = 47;
24/// Calculate implied volatility request support.
25pub const MIN_SERVER_VER_REQ_CALC_IMPLIED_VOLAT: i32 = 49;
26/// Calculate option price request support.
27pub const MIN_SERVER_VER_REQ_CALC_OPTION_PRICE: i32 = 50;
28/// Old short sale slot support.
29pub const MIN_SERVER_VER_SSHORTX_OLD: i32 = 51;
30/// Short sale slot support.
31pub const MIN_SERVER_VER_SSHORTX: i32 = 52;
32/// Global cancel request support.
33pub const MIN_SERVER_VER_REQ_GLOBAL_CANCEL: i32 = 53;
34/// Hedge order support.
35pub const MIN_SERVER_VER_HEDGE_ORDERS: i32 = 54;
36/// Market data type request support.
37pub const MIN_SERVER_VER_REQ_MARKET_DATA_TYPE: i32 = 55;
38/// Smart routing opt-out support.
39pub const MIN_SERVER_VER_OPT_OUT_SMART_ROUTING: i32 = 56;
40/// Smart combo routing parameter support.
41pub const MIN_SERVER_VER_SMART_COMBO_ROUTING_PARAMS: i32 = 57;
42/// Delta-neutral conId support.
43pub const MIN_SERVER_VER_DELTA_NEUTRAL_CONID: i32 = 58;
44/// Scale order v3 support.
45pub const MIN_SERVER_VER_SCALE_ORDERS3: i32 = 60;
46/// Combo leg price support.
47pub const MIN_SERVER_VER_ORDER_COMBO_LEGS_PRICE: i32 = 61;
48/// Trailing percent support.
49pub const MIN_SERVER_VER_TRAILING_PERCENT: i32 = 62;
50/// Delta-neutral open/close support.
51pub const MIN_SERVER_VER_DELTA_NEUTRAL_OPEN_CLOSE: i32 = 66;
52/// Position request support.
53pub const MIN_SERVER_VER_POSITIONS: i32 = 67;
54/// Account summary support.
55pub const MIN_SERVER_VER_ACCOUNT_SUMMARY: i32 = 67;
56/// Trading class support.
57pub const MIN_SERVER_VER_TRADING_CLASS: i32 = 68;
58/// Scale table support.
59pub const MIN_SERVER_VER_SCALE_TABLE: i32 = 69;
60/// Account linking support.
61pub const MIN_SERVER_VER_LINKING: i32 = 70;
62/// Algo id support.
63pub const MIN_SERVER_VER_ALGO_ID: i32 = 71;
64/// Optional capabilities support.
65pub const MIN_SERVER_VER_OPTIONAL_CAPABILITIES: i32 = 72;
66/// Solicited order support.
67pub const MIN_SERVER_VER_ORDER_SOLICITED: i32 = 73;
68/// Linking authentication support.
69pub const MIN_SERVER_VER_LINKING_AUTH: i32 = 74;
70/// Primary exchange support.
71pub const MIN_SERVER_VER_PRIMARYEXCH: i32 = 75;
72/// Randomized order size/price support.
73pub const MIN_SERVER_VER_RANDOMIZE_SIZE_AND_PRICE: i32 = 76;
74/// Fractional position support.
75pub const MIN_SERVER_VER_FRACTIONAL_POSITIONS: i32 = 101;
76/// Pegged-to-benchmark support.
77pub const MIN_SERVER_VER_PEGGED_TO_BENCHMARK: i32 = 102;
78/// Model support.
79pub const MIN_SERVER_VER_MODELS_SUPPORT: i32 = 103;
80/// Security definition option parameter request support.
81pub const MIN_SERVER_VER_SEC_DEF_OPT_PARAMS_REQ: i32 = 104;
82/// Extended operator support.
83pub const MIN_SERVER_VER_EXT_OPERATOR: i32 = 105;
84/// Soft dollar tier support.
85pub const MIN_SERVER_VER_SOFT_DOLLAR_TIER: i32 = 106;
86/// Family codes request support.
87pub const MIN_SERVER_VER_REQ_FAMILY_CODES: i32 = 107;
88/// Matching symbols request support.
89pub const MIN_SERVER_VER_REQ_MATCHING_SYMBOLS: i32 = 108;
90/// Past limit support.
91pub const MIN_SERVER_VER_PAST_LIMIT: i32 = 109;
92/// Market data size multiplier support.
93pub const MIN_SERVER_VER_MD_SIZE_MULTIPLIER: i32 = 110;
94/// Cash quantity support.
95pub const MIN_SERVER_VER_CASH_QTY: i32 = 111;
96/// Market depth exchanges request support.
97pub const MIN_SERVER_VER_REQ_MKT_DEPTH_EXCHANGES: i32 = 112;
98/// News tick support.
99pub const MIN_SERVER_VER_TICK_NEWS: i32 = 113;
100/// Smart components request support.
101pub const MIN_SERVER_VER_REQ_SMART_COMPONENTS: i32 = 114;
102/// News providers request support.
103pub const MIN_SERVER_VER_REQ_NEWS_PROVIDERS: i32 = 115;
104/// News article request support.
105pub const MIN_SERVER_VER_REQ_NEWS_ARTICLE: i32 = 116;
106/// Historical news request support.
107pub const MIN_SERVER_VER_REQ_HISTORICAL_NEWS: i32 = 117;
108/// Head timestamp request support.
109pub const MIN_SERVER_VER_REQ_HEAD_TIMESTAMP: i32 = 118;
110/// Histogram request support.
111pub const MIN_SERVER_VER_REQ_HISTOGRAM: i32 = 119;
112/// Service data type support.
113pub const MIN_SERVER_VER_SERVICE_DATA_TYPE: i32 = 120;
114/// Aggregate group support.
115pub const MIN_SERVER_VER_AGG_GROUP: i32 = 121;
116/// Underlying information support.
117pub const MIN_SERVER_VER_UNDERLYING_INFO: i32 = 122;
118/// Cancel head timestamp support.
119pub const MIN_SERVER_VER_CANCEL_HEADTIMESTAMP: i32 = 123;
120/// Synthetic real-time bar support.
121pub const MIN_SERVER_VER_SYNT_REALTIME_BARS: i32 = 124;
122/// CFD reroute support.
123pub const MIN_SERVER_VER_CFD_REROUTE: i32 = 125;
124/// Market rule support.
125pub const MIN_SERVER_VER_MARKET_RULES: i32 = 126;
126/// PnL support.
127pub const MIN_SERVER_VER_PNL: i32 = 127;
128/// News query origin support.
129pub const MIN_SERVER_VER_NEWS_QUERY_ORIGINS: i32 = 128;
130/// Unrealized PnL support.
131pub const MIN_SERVER_VER_UNREALIZED_PNL: i32 = 129;
132/// Historical ticks support.
133pub const MIN_SERVER_VER_HISTORICAL_TICKS: i32 = 130;
134/// Market cap price support.
135pub const MIN_SERVER_VER_MARKET_CAP_PRICE: i32 = 131;
136/// Pre-open bid/ask support.
137pub const MIN_SERVER_VER_PRE_OPEN_BID_ASK: i32 = 132;
138/// Real expiration date support.
139pub const MIN_SERVER_VER_REAL_EXPIRATION_DATE: i32 = 134;
140/// Realized PnL support.
141pub const MIN_SERVER_VER_REALIZED_PNL: i32 = 135;
142/// Last liquidity support.
143pub const MIN_SERVER_VER_LAST_LIQUIDITY: i32 = 136;
144/// Tick-by-tick data support.
145pub const MIN_SERVER_VER_TICK_BY_TICK: i32 = 137;
146/// Decision maker support.
147pub const MIN_SERVER_VER_DECISION_MAKER: i32 = 138;
148/// MiFID execution support.
149pub const MIN_SERVER_VER_MIFID_EXECUTION: i32 = 139;
150/// Tick-by-tick ignore-size support.
151pub const MIN_SERVER_VER_TICK_BY_TICK_IGNORE_SIZE: i32 = 140;
152/// Auto price for hedge support.
153pub const MIN_SERVER_VER_AUTO_PRICE_FOR_HEDGE: i32 = 141;
154/// What-if extension field support.
155pub const MIN_SERVER_VER_WHAT_IF_EXT_FIELDS: i32 = 142;
156/// Scanner generic option support.
157pub const MIN_SERVER_VER_SCANNER_GENERIC_OPTS: i32 = 143;
158/// API bind order support.
159pub const MIN_SERVER_VER_API_BIND_ORDER: i32 = 144;
160/// Order container support.
161pub const MIN_SERVER_VER_ORDER_CONTAINER: i32 = 145;
162/// Smart depth support.
163pub const MIN_SERVER_VER_SMART_DEPTH: i32 = 146;
164/// Remove-null-all-casting support.
165pub const MIN_SERVER_VER_REMOVE_NULL_ALL_CASTING: i32 = 147;
166/// D-PEG order support.
167pub const MIN_SERVER_VER_D_PEG_ORDERS: i32 = 148;
168/// Market depth primary exchange support.
169pub const MIN_SERVER_VER_MKT_DEPTH_PRIM_EXCHANGE: i32 = 149;
170/// Completed orders support.
171pub const MIN_SERVER_VER_COMPLETED_ORDERS: i32 = 150;
172/// Price management algo support.
173pub const MIN_SERVER_VER_PRICE_MGMT_ALGO: i32 = 151;
174/// Stock type support.
175pub const MIN_SERVER_VER_STOCK_TYPE: i32 = 152;
176/// ASCII7 message encoding support.
177pub const MIN_SERVER_VER_ENCODE_MSG_ASCII7: i32 = 153;
178/// Send all family codes support.
179pub const MIN_SERVER_VER_SEND_ALL_FAMILY_CODES: i32 = 154;
180/// No default open/close support.
181pub const MIN_SERVER_VER_NO_DEFAULT_OPEN_CLOSE: i32 = 155;
182/// Price-based volatility support.
183pub const MIN_SERVER_VER_PRICE_BASED_VOLATILITY: i32 = 156;
184/// Replace FA end support.
185pub const MIN_SERVER_VER_REPLACE_FA_END: i32 = 157;
186/// Duration support.
187pub const MIN_SERVER_VER_DURATION: i32 = 158;
188/// Market-data-in-shares support.
189pub const MIN_SERVER_VER_MARKET_DATA_IN_SHARES: i32 = 159;
190/// Post-to-ATS support.
191pub const MIN_SERVER_VER_POST_TO_ATS: i32 = 160;
192/// WSH event calendar support.
193pub const MIN_SERVER_VER_WSHE_CALENDAR: i32 = 161;
194/// Parent auto-cancel support.
195pub const MIN_SERVER_VER_AUTO_CANCEL_PARENT: i32 = 162;
196/// Fractional size support.
197pub const MIN_SERVER_VER_FRACTIONAL_SIZE_SUPPORT: i32 = 163;
198/// Size rules support.
199pub const MIN_SERVER_VER_SIZE_RULES: i32 = 164;
200/// Historical schedule support.
201pub const MIN_SERVER_VER_HISTORICAL_SCHEDULE: i32 = 165;
202/// Advanced order reject support.
203pub const MIN_SERVER_VER_ADVANCED_ORDER_REJECT: i32 = 166;
204/// User info support.
205pub const MIN_SERVER_VER_USER_INFO: i32 = 167;
206/// Crypto aggregated trade support.
207pub const MIN_SERVER_VER_CRYPTO_AGGREGATED_TRADES: i32 = 168;
208/// Manual order time support.
209pub const MIN_SERVER_VER_MANUAL_ORDER_TIME: i32 = 169;
210/// PegBest/PegMid offset support.
211pub const MIN_SERVER_VER_PEGBEST_PEGMID_OFFSETS: i32 = 170;
212/// WSH event data filters support.
213pub const MIN_SERVER_VER_WSH_EVENT_DATA_FILTERS: i32 = 171;
214/// IPO price support.
215pub const MIN_SERVER_VER_IPO_PRICES: i32 = 172;
216/// WSH event data filter date support.
217pub const MIN_SERVER_VER_WSH_EVENT_DATA_FILTERS_DATE: i32 = 173;
218/// Instrument timezone support.
219pub const MIN_SERVER_VER_INSTRUMENT_TIMEZONE: i32 = 174;
220/// HMDS market-data-in-shares support.
221pub const MIN_SERVER_VER_HMDS_MARKET_DATA_IN_SHARES: i32 = 175;
222/// Bond issuer id support.
223pub const MIN_SERVER_VER_BOND_ISSUERID: i32 = 176;
224/// FA profile de-support marker.
225pub const MIN_SERVER_VER_FA_PROFILE_DESUPPORT: i32 = 177;
226/// Pending price revision support.
227pub const MIN_SERVER_VER_PENDING_PRICE_REVISION: i32 = 178;
228/// Fund data fields support.
229pub const MIN_SERVER_VER_FUND_DATA_FIELDS: i32 = 179;
230/// Manual exercise option order time support.
231pub const MIN_SERVER_VER_MANUAL_ORDER_TIME_EXERCISE_OPTIONS: i32 = 180;
232/// Open order AD strategy support.
233pub const MIN_SERVER_VER_OPEN_ORDER_AD_STRATEGY: i32 = 181;
234/// Last trade date support.
235pub const MIN_SERVER_VER_LAST_TRADE_DATE: i32 = 182;
236/// Customer account support.
237pub const MIN_SERVER_VER_CUSTOMER_ACCOUNT: i32 = 183;
238/// Professional customer support.
239pub const MIN_SERVER_VER_PROFESSIONAL_CUSTOMER: i32 = 184;
240/// Bond accrued interest support.
241pub const MIN_SERVER_VER_BOND_ACCRUED_INTEREST: i32 = 185;
242/// Ineligibility reason support.
243pub const MIN_SERVER_VER_INELIGIBILITY_REASONS: i32 = 186;
244/// RFQ fields support.
245pub const MIN_SERVER_VER_RFQ_FIELDS: i32 = 187;
246/// Bond trading hours support.
247pub const MIN_SERVER_VER_BOND_TRADING_HOURS: i32 = 188;
248/// Overnight inclusion support.
249pub const MIN_SERVER_VER_INCLUDE_OVERNIGHT: i32 = 189;
250/// Undo RFQ fields support.
251pub const MIN_SERVER_VER_UNDO_RFQ_FIELDS: i32 = 190;
252/// Long permanent id support.
253pub const MIN_SERVER_VER_PERM_ID_AS_LONG: i32 = 191;
254/// CME tagging field support.
255pub const MIN_SERVER_VER_CME_TAGGING_FIELDS: i32 = 192;
256/// CME tagging field support in open-order callbacks.
257pub const MIN_SERVER_VER_CME_TAGGING_FIELDS_IN_OPEN_ORDER: i32 = 193;
258/// Error time support.
259pub const MIN_SERVER_VER_ERROR_TIME: i32 = 194;
260/// Full order preview field support.
261pub const MIN_SERVER_VER_FULL_ORDER_PREVIEW_FIELDS: i32 = 195;
262/// Historical data end message support.
263pub const MIN_SERVER_VER_HISTORICAL_DATA_END: i32 = 196;
264/// Current time in millis support.
265pub const MIN_SERVER_VER_CURRENT_TIME_IN_MILLIS: i32 = 197;
266/// Submitter support.
267pub const MIN_SERVER_VER_SUBMITTER: i32 = 198;
268/// Imbalance-only support.
269pub const MIN_SERVER_VER_IMBALANCE_ONLY: i32 = 199;
270/// Parametrized days of executions support.
271pub const MIN_SERVER_VER_PARAMETRIZED_DAYS_OF_EXECUTIONS: i32 = 200;
272/// Protobuf message framing support.
273pub const MIN_SERVER_VER_PROTOBUF: i32 = 201;
274/// Zero-strike support.
275pub const MIN_SERVER_VER_ZERO_STRIKE: i32 = 202;
276/// Protobuf place order support.
277pub const MIN_SERVER_VER_PROTOBUF_PLACE_ORDER: i32 = 203;
278/// Protobuf completed order support.
279pub const MIN_SERVER_VER_PROTOBUF_COMPLETED_ORDER: i32 = 204;
280/// Protobuf contract data support.
281pub const MIN_SERVER_VER_PROTOBUF_CONTRACT_DATA: i32 = 205;
282/// Protobuf market data support.
283pub const MIN_SERVER_VER_PROTOBUF_MARKET_DATA: i32 = 206;
284/// Protobuf account and position support.
285pub const MIN_SERVER_VER_PROTOBUF_ACCOUNTS_POSITIONS: i32 = 207;
286/// Protobuf historical data support.
287pub const MIN_SERVER_VER_PROTOBUF_HISTORICAL_DATA: i32 = 208;
288/// Protobuf news data support.
289pub const MIN_SERVER_VER_PROTOBUF_NEWS_DATA: i32 = 209;
290/// Protobuf scan data support.
291pub const MIN_SERVER_VER_PROTOBUF_SCAN_DATA: i32 = 210;
292/// Protobuf REST message group 1 support.
293pub const MIN_SERVER_VER_PROTOBUF_REST_MESSAGES_1: i32 = 211;
294/// Protobuf REST message group 2 support.
295pub const MIN_SERVER_VER_PROTOBUF_REST_MESSAGES_2: i32 = 212;
296/// Protobuf REST message group 3 support.
297pub const MIN_SERVER_VER_PROTOBUF_REST_MESSAGES_3: i32 = 213;
298/// UTC date-time Z suffix support.
299pub const MIN_SERVER_VER_ADD_Z_SUFFIX_TO_UTC_DATE_TIME: i32 = 214;
300/// Cancel contract data support.
301pub const MIN_SERVER_VER_CANCEL_CONTRACT_DATA: i32 = 215;
302/// Additional order params group 1 support.
303pub const MIN_SERVER_VER_ADDITIONAL_ORDER_PARAMS_1: i32 = 216;
304/// Additional order params group 2 support.
305pub const MIN_SERVER_VER_ADDITIONAL_ORDER_PARAMS_2: i32 = 217;
306/// Attached order support.
307pub const MIN_SERVER_VER_ATTACHED_ORDERS: i32 = 218;
308/// Config request support.
309pub const MIN_SERVER_VER_CONFIG: i32 = 219;
310/// Market data volume share units support.
311pub const MIN_SERVER_VER_MARKET_DATA_VOLUMES_IN_SHARES: i32 = 220;
312/// Config update support.
313pub const MIN_SERVER_VER_UPDATE_CONFIG: i32 = 221;
314/// Fractional last size support.
315pub const MIN_SERVER_VER_FRACTIONAL_LAST_SIZE: i32 = 222;
316/// Hedge max size support.
317pub const MIN_SERVER_VER_HEDGE_MAX_SIZE: i32 = 223;
318/// Security definition precision support.
319pub const MIN_SERVER_VER_USE_PRECISION_FROM_SEC_DEF: i32 = 224;
320/// Odd-lot bid/ask quote support.
321pub const MIN_SERVER_VER_ODD_LOT_BID_ASK_QUOTES: i32 = 225;
322
323/// Latest client protocol version supported by this port.
324pub const MAX_CLIENT_VER: i32 = MIN_SERVER_VER_ODD_LOT_BID_ASK_QUOTES;