pub const MIN_SERVER_VER_FRACTIONAL_POSITIONS: i32 = 101;
pub const MIN_SERVER_VER_PEGGED_TO_BENCHMARK: i32 = 102;
pub const MIN_SERVER_VER_MODELS_SUPPORT: i32 = 103;
pub const MIN_SERVER_VER_SEC_DEF_OPT_PARAMS_REQ: i32 = 104;
pub const MIN_SERVER_VER_EXT_OPERATOR: i32 = 105;
pub const MIN_SERVER_VER_SOFT_DOLLAR_TIER: i32 = 106;
pub const MIN_SERVER_VER_REQ_FAMILY_CODES: i32 = 107;
pub const MIN_SERVER_VER_REQ_MATCHING_SYMBOLS: i32 = 108;
pub const MIN_SERVER_VER_PAST_LIMIT: i32 = 109;
pub const MIN_SERVER_VER_MD_SIZE_MULTIPLIER: i32 = 110;
pub const MIN_SERVER_VER_CASH_QTY: i32 = 111;
pub const MIN_SERVER_VER_REQ_MKT_DEPTH_EXCHANGES: i32 = 112;
pub const MIN_SERVER_VER_TICK_NEWS: i32 = 113;
pub const MIN_SERVER_VER_REQ_SMART_COMPONENTS: i32 = 114;
pub const MIN_SERVER_VER_REQ_NEWS_PROVIDERS: i32 = 115;
pub const MIN_SERVER_VER_REQ_NEWS_ARTICLE: i32 = 116;
pub const MIN_SERVER_VER_REQ_HISTORICAL_NEWS: i32 = 117;
pub const MIN_SERVER_VER_REQ_HEAD_TIMESTAMP: i32 = 118;
pub const MIN_SERVER_VER_REQ_HISTOGRAM: i32 = 119;
pub const MIN_SERVER_VER_SERVICE_DATA_TYPE: i32 = 120;
pub const MIN_SERVER_VER_AGG_GROUP: i32 = 121;
pub const MIN_SERVER_VER_UNDERLYING_INFO: i32 = 122;
pub const MIN_SERVER_VER_CANCEL_HEADTIMESTAMP: i32 = 123;
pub const MIN_SERVER_VER_SYNT_REALTIME_BARS: i32 = 124;
pub const MIN_SERVER_VER_CFD_REROUTE: i32 = 125;
pub const MIN_SERVER_VER_MARKET_RULES: i32 = 126;
pub const MIN_SERVER_VER_PNL: i32 = 127;
pub const MIN_SERVER_VER_NEWS_QUERY_ORIGINS: i32 = 128;
pub const MIN_SERVER_VER_UNREALIZED_PNL: i32 = 129;
pub const MIN_SERVER_VER_HISTORICAL_TICKS: i32 = 130;
pub const MIN_SERVER_VER_MARKET_CAP_PRICE: i32 = 131;
pub const MIN_SERVER_VER_PRE_OPEN_BID_ASK: i32 = 132;
pub const MIN_SERVER_VER_REAL_EXPIRATION_DATE: i32 = 134;
pub const MIN_SERVER_VER_REALIZED_PNL: i32 = 135;
pub const MIN_SERVER_VER_LAST_LIQUIDITY: i32 = 136;
pub const MIN_SERVER_VER_TICK_BY_TICK: i32 = 137;
pub const MIN_SERVER_VER_DECISION_MAKER: i32 = 138;
pub const MIN_SERVER_VER_MIFID_EXECUTION: i32 = 139;
pub const MIN_SERVER_VER_TICK_BY_TICK_IGNORE_SIZE: i32 = 140;
pub const MIN_SERVER_VER_AUTO_PRICE_FOR_HEDGE: i32 = 141;
pub const MIN_SERVER_VER_WHAT_IF_EXT_FIELDS: i32 = 142;
pub const MIN_SERVER_VER_SCANNER_GENERIC_OPTS: i32 = 143;
pub const MIN_SERVER_VER_API_BIND_ORDER: i32 = 144;
pub const MIN_SERVER_VER_ORDER_CONTAINER: i32 = 145;
pub const MIN_SERVER_VER_SMART_DEPTH: i32 = 146;
pub const MIN_SERVER_VER_REMOVE_NULL_ALL_CASTING: i32 = 147;
pub const MIN_SERVER_VER_D_PEG_ORDERS: i32 = 148;
pub const MIN_SERVER_VER_MKT_DEPTH_PRIM_EXCHANGE: i32 = 149;
pub const MIN_SERVER_VER_REQ_COMPLETED_ORDERS: i32 = 150;
pub const MIN_SERVER_VER_PRICE_MGMT_ALGO: i32 = 151;
pub const MIN_SERVER_VER_STOCK_TYPE: i32 = 152;
pub const MIN_SERVER_VER_ENCODE_MSG_ASCII7: i32 = 153;
pub const MIN_SERVER_VER_SEND_ALL_FAMILY_CODES: i32 = 154;
pub const MIN_SERVER_VER_NO_DEFAULT_OPEN_CLOSE: i32 = 155;
pub const MIN_SERVER_VER_PRICE_BASED_VOLATILITY: i32 = 156;
pub const MIN_SERVER_VER_REPLACE_FA_END: i32 = 157;
pub const MIN_SERVER_VER_DURATION: i32 = 158;
pub const MIN_SERVER_VER_MARKET_DATA_IN_SHARES: i32 = 159;
pub const MIN_SERVER_VER_POST_TO_ATS: i32 = 160;
pub const MIN_SERVER_VER_WSHE_CALENDAR: i32 = 161;
pub const MIN_SERVER_VER_AUTO_CANCEL_PARENT: i32 = 162;
pub const MIN_SERVER_VER_FRACTIONAL_SIZE_SUPPORT: i32 = 163;
pub const MIN_SERVER_VER_SIZE_RULES: i32 = 164;
pub const MIN_SERVER_VER_HISTORICAL_SCHEDULE: i32 = 165;
pub const MIN_SERVER_VER_ADVANCED_ORDER_REJECT: i32 = 166;
pub const MIN_SERVER_VER_USER_INFO: i32 = 167;
pub const MIN_SERVER_VER_CRYPTO_AGGREGATED_TRADES: i32 = 168;
pub const MIN_SERVER_VER_MANUAL_ORDER_TIME: i32 = 169;
pub const MIN_SERVER_VER_PEGBEST_PEGMID_OFFSETS: i32 = 170;
pub const MIN_SERVER_VER_WSH_EVENT_DATA_FILTERS: i32 = 171;
pub const MIN_SERVER_VER_IPO_PRICES: i32 = 172;
pub const MIN_SERVER_VER_WSH_EVENT_DATA_FILTERS_DATE: i32 = 173;
pub const MIN_SERVER_VER_INSTRUMENT_TIMEZONE: i32 = 174;
pub const MIN_SERVER_VER_HMDS_MARKET_DATA_IN_SHARES: i32 = 175;
pub const MIN_SERVER_VER_BOND_ISSUERID: i32 = 176;
pub const MIN_VERSION: i32 = MIN_SERVER_VER_MKT_DEPTH_PRIM_EXCHANGE;
pub const MAX_VERSION: i32 = MIN_SERVER_VER_FRACTIONAL_SIZE_SUPPORT;
pub const REQ_MKT_DATA: i32 = 1;
pub const CANCEL_MKT_DATA: i32 = 2;
pub const PLACE_ORDER: i32 = 3;
pub const CANCEL_ORDER: i32 = 4;
pub const REQ_OPEN_ORDERS: i32 = 5;
pub const REQ_ACCOUNT_DATA: i32 = 6;
pub const REQ_EXECUTIONS: i32 = 7;
pub const REQ_IDS: i32 = 8;
pub const REQ_CONTRACT_DATA: i32 = 9;
pub const REQ_MKT_DEPTH: i32 = 10;
pub const CANCEL_MKT_DEPTH: i32 = 11;
pub const REQ_NEWS_BULLETINS: i32 = 12;
pub const CANCEL_NEWS_BULLETINS: i32 = 13;
pub const SET_SERVER_LOGLEVEL: i32 = 14;
pub const REQ_AUTO_OPEN_ORDERS: i32 = 15;
pub const REQ_ALL_OPEN_ORDERS: i32 = 16;
pub const REQ_MANAGED_ACCTS: i32 = 17;
pub const REQ_FA: i32 = 18;
pub const REPLACE_FA: i32 = 19;
pub const REQ_HISTORICAL_DATA: i32 = 20;
pub const EXERCISE_OPTIONS: i32 = 21;
pub const REQ_SCANNER_SUBSCRIPTION: i32 = 22;
pub const CANCEL_SCANNER_SUBSCRIPTION: i32 = 23;
pub const REQ_SCANNER_PARAMETERS: i32 = 24;
pub const CANCEL_HISTORICAL_DATA: i32 = 25;
pub const REQ_CURRENT_TIME: i32 = 49;
pub const REQ_REAL_TIME_BARS: i32 = 50;
pub const CANCEL_REAL_TIME_BARS: i32 = 51;
pub const REQ_FUNDAMENTAL_DATA: i32 = 52;
pub const CANCEL_FUNDAMENTAL_DATA: i32 = 53;
pub const REQ_CALC_IMPLIED_VOLAT: i32 = 54;
pub const REQ_CALC_OPTION_PRICE: i32 = 55;
pub const CANCEL_CALC_IMPLIED_VOLAT: i32 = 56;
pub const CANCEL_CALC_OPTION_PRICE: i32 = 57;
pub const REQ_GLOBAL_CANCEL: i32 = 58;
pub const REQ_MARKET_DATA_TYPE: i32 = 59;
pub const REQ_POSITIONS: i32 = 61;
pub const REQ_ACCOUNT_SUMMARY: i32 = 62;
pub const CANCEL_ACCOUNT_SUMMARY: i32 = 63;
pub const CANCEL_POSITIONS: i32 = 64;
pub const VERIFY_REQUEST: i32 = 65;
pub const VERIFY_MESSAGE: i32 = 66;
pub const QUERY_DISPLAY_GROUPS: i32 = 67;
pub const SUBSCRIBE_TO_GROUP_EVENTS: i32 = 68;
pub const UPDATE_DISPLAY_GROUP: i32 = 69;
pub const UNSUBSCRIBE_FROM_GROUP_EVENTS: i32 = 70;
pub const START_API: i32 = 71;
pub const VERIFY_AND_AUTH_REQUEST: i32 = 72;
pub const VERIFY_AND_AUTH_MESSAGE: i32 = 73;
pub const REQ_POSITIONS_MULTI: i32 = 74;
pub const CANCEL_POSITIONS_MULTI: i32 = 75;
pub const REQ_ACCOUNT_UPDATES_MULTI: i32 = 76;
pub const CANCEL_ACCOUNT_UPDATES_MULTI: i32 = 77;
pub const REQ_SEC_DEF_OPT_PARAMS: i32 = 78;
pub const REQ_SOFT_DOLLAR_TIERS: i32 = 79;
pub const REQ_FAMILY_CODES: i32 = 80;
pub const REQ_MATCHING_SYMBOLS: i32 = 81;
pub const REQ_MKT_DEPTH_EXCHANGES: i32 = 82;
pub const REQ_SMART_COMPONENTS: i32 = 83;
pub const REQ_NEWS_ARTICLE: i32 = 84;
pub const REQ_NEWS_PROVIDERS: i32 = 85;
pub const REQ_HISTORICAL_NEWS: i32 = 86;
pub const REQ_HEAD_TIMESTAMP: i32 = 87;
pub const REQ_HISTOGRAM_DATA: i32 = 88;
pub const CANCEL_HISTOGRAM_DATA: i32 = 89;
pub const CANCEL_HEAD_TIMESTAMP: i32 = 90;
pub const REQ_MARKET_RULE: i32 = 91;
pub const REQ_PNL: i32 = 92;
pub const CANCEL_PNL: i32 = 93;
pub const REQ_PNL_SINGLE: i32 = 94;
pub const CANCEL_PNL_SINGLE: i32 = 95;
pub const REQ_HISTORICAL_TICKS: i32 = 96;
pub const REQ_TICK_BY_TICK_DATA: i32 = 97;
pub const CANCEL_TICK_BY_TICK_DATA: i32 = 98;
pub const API_HEAD: &[u8] = b"API\0";
pub const MIN_SERVER_VERSION: i32 = 100;
pub const MAX_SERVER_VERSION: i32 = 142;
pub const END_CONN: i32 = -1;
pub const TICK_PRICE: i32 = 1;
pub const TICK_SIZE: i32 = 2;
pub const ORDER_STATUS: i32 = 3;
pub const ERR_MSG: i32 = 4;
pub const OPEN_ORDER: i32 = 5;
pub const ACCT_VALUE: i32 = 6;
pub const PORTFOLIO_VALUE: i32 = 7;
pub const ACCT_UPDATE_TIME: i32 = 8;
pub const NEXT_VALID_ID: i32 = 9;
pub const CONTRACT_DATA: i32 = 10;
pub const EXECUTION_DATA: i32 = 11;
pub const MARKET_DEPTH: i32 = 12;
pub const MARKET_DEPTH_L2: i32 = 13;
pub const NEWS_BULLETINS: i32 = 14;
pub const MANAGED_ACCTS: i32 = 15;
pub const RECEIVE_FA: i32 = 16;
pub const HISTORICAL_DATA: i32 = 17;
pub const BOND_CONTRACT_DATA: i32 = 18;
pub const SCANNER_PARAMETERS: i32 = 19;
pub const SCANNER_DATA: i32 = 20;
pub const TICK_OPTION_COMPUTATION: i32 = 21;
pub const TICK_GENERIC: i32 = 45;
pub const TICK_STRING: i32 = 46;
pub const TICK_EFP: i32 = 47;
pub const CURRENT_TIME: i32 = 49;
pub const REAL_TIME_BARS: i32 = 50;
pub const FUNDAMENTAL_DATA: i32 = 51;
pub const CONTRACT_DATA_END: i32 = 52;
pub const OPEN_ORDER_END: i32 = 53;
pub const ACCT_DOWNLOAD_END: i32 = 54;
pub const EXECUTION_DATA_END: i32 = 55;
pub const DELTA_NEUTRAL_VALIDATION: i32 = 56;
pub const TICK_SNAPSHOT_END: i32 = 57;
pub const MARKET_DATA_TYPE: i32 = 58;
pub const COMMISSION_REPORT: i32 = 59;
pub const POSITION: i32 = 61;
pub const POSITION_END: i32 = 62;
pub const ACCOUNT_SUMMARY: i32 = 63;
pub const ACCOUNT_SUMMARY_END: i32 = 64;
pub const VERIFY_MESSAGE_API: i32 = 65;
pub const VERIFY_COMPLETED: i32 = 66;
pub const DISPLAY_GROUP_LIST: i32 = 67;
pub const DISPLAY_GROUP_UPDATED: i32 = 68;
pub const VERIFY_AND_AUTH_MESSAGE_API: i32 = 69;
pub const VERIFY_AND_AUTH_COMPLETED: i32 = 70;
pub const POSITION_MULTI: i32 = 71;
pub const POSITION_MULTI_END: i32 = 72;
pub const ACCOUNT_UPDATE_MULTI: i32 = 73;
pub const ACCOUNT_UPDATE_MULTI_END: i32 = 74;
pub const SECURITY_DEFINITION_OPTION_PARAMETER: i32 = 75;
pub const SECURITY_DEFINITION_OPTION_PARAMETER_END: i32 = 76;
pub const SOFT_DOLLAR_TIERS: i32 = 77;
pub const FAMILY_CODES: i32 = 78;
pub const SYMBOL_SAMPLES: i32 = 79;
pub const MKT_DEPTH_EXCHANGES: i32 = 80;
pub const TICK_REQ_PARAMS: i32 = 81;
pub const SMART_COMPONENTS: i32 = 82;
pub const NEWS_ARTICLE: i32 = 83;
pub const TICK_NEWS: i32 = 84;
pub const NEWS_PROVIDERS: i32 = 85;
pub const HISTORICAL_NEWS: i32 = 86;
pub const HISTORICAL_NEWS_END: i32 = 87;
pub const HEAD_TIMESTAMP: i32 = 88;
pub const HISTOGRAM_DATA: i32 = 89;
pub const HISTORICAL_DATA_UPDATE: i32 = 90;
pub const REROUTE_MKT_DATA_REQ: i32 = 91;
pub const REROUTE_MKT_DEPTH_REQ: i32 = 92;
pub const MARKET_RULE: i32 = 93;
pub const PNL: i32 = 94;
pub const PNL_SINGLE: i32 = 95;
pub const HISTORICAL_TICKS: i32 = 96;
pub const HISTORICAL_TICKS_BID_ASK: i32 = 97;
pub const HISTORICAL_TICKS_LAST: i32 = 98;
pub const TICK_BY_TICK: i32 = 99;
pub const MAX_MSG_LENGTH: usize = 0xff_ffff;
pub const REDIRECT_MSG_ID: i32 = -1;
pub const OPCODE_HANDSHAKE: i32 = 0;
pub const OPCODE_START_API: i32 = 71;
pub const OPCODE_REQ_SCANNER_PARAMETERS: i32 = 24;
pub const OPCODE_REQ_ACCOUNT_UPDATES: i32 = 6;
pub const OPCODE_REQ_OPEN_ORDERS: i32 = 5;
pub const OPCODE_REQ_IDS: i32 = 8;
pub const OPCODE_REQ_NEWS_BULLETINS: i32 = 12;
pub const OPCODE_CANCEL_NEWS_BULLETINS: i32 = 13;
pub const OPCODE_SET_SERVER_LOG_LEVEL: i32 = 14;
pub const OPCODE_REQ_AUTO_OPEN_ORDERS: i32 = 15;
pub const OPCODE_REQ_ALL_OPEN_ORDERS: i32 = 16;
pub const OPCODE_REQ_MANAGED_ACCTS: i32 = 17;
pub const OPCODE_REQUEST_FA: i32 = 18;
pub const OPCODE_REPLACE_FA: i32 = 19;
pub const OPCODE_REQ_CURRENT_TIME: i32 = 49;
pub const OPCODE_REQ_GLOBAL_CANCEL: i32 = 58;
pub const OPCODE_REQ_MARKET_DATA_TYPE: i32 = 59;
pub const OPCODE_REQ_POSITIONS: i32 = 61;
pub const OPCODE_CANCEL_POSITIONS: i32 = 64;
pub const OPCODE_VERIFY_REQUEST: i32 = 65;
pub const OPCODE_VERIFY_MESSAGE: i32 = 66;
pub const OPCODE_VERIFY_AND_AUTH_REQUEST: i32 = 72;
pub const OPCODE_VERIFY_AND_AUTH_MESSAGE: i32 = 73;
pub const OPCODE_REQ_FAMILY_CODES: i32 = 80;
pub const OPCODE_REQ_MKT_DEPTH_EXCHANGES: i32 = 82;
pub const OPCODE_REQ_NEWS_PROVIDERS: i32 = 85;
pub const OPCODE_REQ_MARKET_RULE: i32 = 91;
pub const OPCODE_DISPLAY_GROUP_UPDATED_MSG: i32 = 100;
pub const OPCODE_ERR: i32 = 101;
pub const OPCODE_PORTFOLIO_VALUE: i32 = 102;