hedgequantx 1.8.49 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/bin/cli.js +13 -7
- package/dist/algo/copy-engine.js +3 -0
- package/dist/algo/copy-engine.jsc +0 -0
- package/dist/algo/engine.js +3 -0
- package/dist/algo/engine.jsc +0 -0
- package/dist/algo/market-data-rithmic.js +3 -0
- package/dist/algo/market-data-rithmic.jsc +0 -0
- package/dist/algo/market-data.js +3 -0
- package/dist/algo/market-data.jsc +0 -0
- package/dist/algo/rithmic/connection.js +3 -0
- package/dist/algo/rithmic/connection.jsc +0 -0
- package/dist/algo/rithmic/constants.js +3 -0
- package/dist/algo/rithmic/constants.jsc +0 -0
- package/dist/algo/rithmic/index.js +3 -0
- package/dist/algo/rithmic/index.jsc +0 -0
- package/dist/algo/rithmic/market-data.js +3 -0
- package/dist/algo/rithmic/market-data.jsc +0 -0
- package/dist/algo/rithmic/pnl.js +3 -0
- package/dist/algo/rithmic/pnl.jsc +0 -0
- package/dist/algo/rithmic/pool.js +3 -0
- package/dist/algo/rithmic/pool.jsc +0 -0
- package/dist/algo/rithmic/trading.js +3 -0
- package/dist/algo/rithmic/trading.jsc +0 -0
- package/dist/algo/rithmic-decoder.js +3 -0
- package/dist/algo/rithmic-decoder.jsc +0 -0
- package/dist/algo/strategies/ultra-scalping-v2.js +3 -0
- package/dist/algo/strategies/ultra-scalping-v2.jsc +0 -0
- package/dist/algo/strategies/ultra-scalping.js +3 -0
- package/dist/algo/strategies/ultra-scalping.jsc +0 -0
- package/dist/algo/trading-api-rithmic.js +3 -0
- package/dist/algo/trading-api-rithmic.jsc +0 -0
- package/dist/algo/trading-api.js +3 -0
- package/dist/algo/trading-api.jsc +0 -0
- package/dist/algo/utils/smart-logger.js +3 -0
- package/dist/algo/utils/smart-logger.jsc +0 -0
- package/dist/algo/utils/smart-logs.js +3 -0
- package/dist/algo/utils/smart-logs.jsc +0 -0
- package/package.json +33 -10
- package/protos/rithmic/account_pnl_position_update.proto +59 -0
- package/protos/rithmic/base.proto +7 -0
- package/protos/rithmic/best_bid_offer.proto +39 -0
- package/protos/rithmic/exchange_order_notification.proto +140 -0
- package/protos/rithmic/instrument_pnl_position_update.proto +50 -0
- package/protos/rithmic/last_trade.proto +53 -0
- package/protos/rithmic/request_account_list.proto +20 -0
- package/protos/rithmic/request_cancel_all_orders.proto +15 -0
- package/protos/rithmic/request_front_month_contract.proto +10 -0
- package/protos/rithmic/request_heartbeat.proto +13 -0
- package/protos/rithmic/request_login.proto +28 -0
- package/protos/rithmic/request_login_info.proto +10 -0
- package/protos/rithmic/request_logout.proto +10 -0
- package/protos/rithmic/request_market_data_update.proto +42 -0
- package/protos/rithmic/request_new_order.proto +84 -0
- package/protos/rithmic/request_pnl_position_snapshot.proto +14 -0
- package/protos/rithmic/request_pnl_position_updates.proto +20 -0
- package/protos/rithmic/request_product_codes.proto +9 -0
- package/protos/rithmic/request_rithmic_system_info.proto +8 -0
- package/protos/rithmic/request_show_order_history.proto +16 -0
- package/protos/rithmic/request_show_order_history_dates.proto +10 -0
- package/protos/rithmic/request_show_order_history_summary.proto +14 -0
- package/protos/rithmic/request_show_orders.proto +14 -0
- package/protos/rithmic/request_subscribe_for_order_updates.proto +14 -0
- package/protos/rithmic/request_tick_bar_replay.proto +48 -0
- package/protos/rithmic/request_trade_routes.proto +11 -0
- package/protos/rithmic/response_account_list.proto +18 -0
- package/protos/rithmic/response_front_month_contract.proto +13 -0
- package/protos/rithmic/response_heartbeat.proto +14 -0
- package/protos/rithmic/response_login.proto +18 -0
- package/protos/rithmic/response_login_info.proto +24 -0
- package/protos/rithmic/response_logout.proto +11 -0
- package/protos/rithmic/response_market_data_update.proto +9 -0
- package/protos/rithmic/response_new_order.proto +18 -0
- package/protos/rithmic/response_pnl_position_snapshot.proto +11 -0
- package/protos/rithmic/response_pnl_position_updates.proto +11 -0
- package/protos/rithmic/response_product_codes.proto +12 -0
- package/protos/rithmic/response_rithmic_system_info.proto +12 -0
- package/protos/rithmic/response_show_order_history.proto +11 -0
- package/protos/rithmic/response_show_order_history_dates.proto +13 -0
- package/protos/rithmic/response_show_order_history_summary.proto +11 -0
- package/protos/rithmic/response_show_orders.proto +11 -0
- package/protos/rithmic/response_subscribe_for_order_updates.proto +11 -0
- package/protos/rithmic/response_tick_bar_replay.proto +40 -0
- package/protos/rithmic/response_trade_routes.proto +19 -0
- package/protos/rithmic/rithmic_order_notification.proto +124 -0
- package/src/app.js +136 -89
- package/src/config/index.js +27 -8
- package/src/config/settings.js +155 -0
- package/src/pages/algo/copy-trading.js +293 -200
- package/src/pages/algo/one-account.js +1 -1
- package/src/security/encryption.js +81 -46
- package/src/security/index.js +12 -8
- package/src/security/rateLimit.js +68 -65
- package/src/security/validation.js +93 -79
- package/src/services/hqx-server.js +538 -206
- package/src/services/projectx/index.js +327 -204
- package/src/services/rithmic/index.js +288 -285
- package/src/services/session.js +184 -114
- package/src/services/tradovate/index.js +286 -297
- package/src/utils/http.js +236 -0
- package/src/utils/index.js +11 -2
- package/src/utils/logger.js +64 -33
- package/src/utils/prompts.js +79 -71
package/README.md
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
*Connect to 37+ prop firms and automate your futures trading*
|
|
17
17
|
|
|
18
|
-
[](https://www.npmjs.com/package/@hedgequantx/cli)
|
|
19
|
+
[](https://www.npmjs.com/package/@hedgequantx/cli)
|
|
20
20
|
[](https://github.com/HedgeQuantX/HQX-CLI)
|
|
21
21
|
[](LICENSE)
|
|
22
22
|
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
| **Algo Trading** | One Account & Copy Trading modes |
|
|
42
42
|
| **Ultra-Scalping** | VWAP Mean Reversion + Order Flow |
|
|
43
43
|
| **Market Hours** | Auto-blocks when market closed |
|
|
44
|
-
| **
|
|
44
|
+
| **Local Execution** | Direct API trading, no server needed |
|
|
45
|
+
| **Protected Strategy** | Bytecode compiled for protection |
|
|
45
46
|
| **Secure Storage** | AES-256-GCM encrypted sessions |
|
|
46
47
|
| **Auto-Update** | Built-in version checker |
|
|
47
48
|
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
### NPM (Recommended)
|
|
53
54
|
|
|
54
55
|
```bash
|
|
55
|
-
npm
|
|
56
|
+
npm i -g hedgequantx
|
|
56
57
|
```
|
|
57
58
|
|
|
58
59
|
### From Source
|
|
@@ -116,7 +117,7 @@ Trade on a single account with HQX Ultra-Scalping strategy.
|
|
|
116
117
|
|
|
117
118
|
```
|
|
118
119
|
╠════════════════════════════════════════════════╤═══════════════════════════════════════════════╣
|
|
119
|
-
║ Account:
|
|
120
|
+
║ Account: HQX ***** │ Symbol: ES Mar26 ║
|
|
120
121
|
╠════════════════════════════════════════════════╪═══════════════════════════════════════════════╣
|
|
121
122
|
║ Qty: 1 │ P&L: +$0.00 ║
|
|
122
123
|
╠════════════════════════════════════════════════╪═══════════════════════════════════════════════╣
|
|
@@ -281,7 +282,7 @@ Mirror trades from Lead to Follower accounts.
|
|
|
281
282
|
|
|
282
283
|
## License
|
|
283
284
|
|
|
284
|
-
|
|
285
|
+
Proprietary - HedgeQuantX
|
|
285
286
|
|
|
286
287
|
---
|
|
287
288
|
|
package/bin/cli.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* @
|
|
7
|
-
* @version 1.2.0
|
|
4
|
+
* HedgeQuantX CLI - Entry Point
|
|
5
|
+
* Prop Futures Algo Trading with Protected Strategy
|
|
6
|
+
* @version 2.1.0
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
9
|
'use strict';
|
|
@@ -23,10 +22,17 @@ process.on('unhandledRejection', (err) => {
|
|
|
23
22
|
process.exit(1);
|
|
24
23
|
});
|
|
25
24
|
|
|
25
|
+
// Load bytenode for protected strategy
|
|
26
|
+
try {
|
|
27
|
+
require('bytenode');
|
|
28
|
+
} catch (e) {
|
|
29
|
+
// Bytenode not available, will use source files
|
|
30
|
+
}
|
|
31
|
+
|
|
26
32
|
// CLI configuration
|
|
27
33
|
program
|
|
28
|
-
.name('
|
|
29
|
-
.description('Prop Futures Algo Trading CLI')
|
|
34
|
+
.name('hqx')
|
|
35
|
+
.description('HedgeQuantX - Prop Futures Algo Trading CLI')
|
|
30
36
|
.version(pkg.version)
|
|
31
37
|
.option('-u, --update', 'Update HQX to latest version');
|
|
32
38
|
|
|
@@ -50,7 +56,7 @@ if (process.argv.includes('-u') || process.argv.includes('--update')) {
|
|
|
50
56
|
const { execSync } = require('child_process');
|
|
51
57
|
console.log('Updating HedgeQuantX...');
|
|
52
58
|
try {
|
|
53
|
-
execSync('npm install -g hedgequantx@latest', { stdio: 'inherit' });
|
|
59
|
+
execSync('npm install -g @hedgequantx/cli@latest', { stdio: 'inherit' });
|
|
54
60
|
console.log('Update complete! Run "hqx" to start.');
|
|
55
61
|
} catch (e) {
|
|
56
62
|
console.error('Update failed:', e.message);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hedgequantx",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Prop Futures Algo Trading CLI -
|
|
3
|
+
"version": "2.3.0",
|
|
4
|
+
"description": "HedgeQuantX - Prop Futures Algo Trading CLI with Ultra-Scalping Strategy",
|
|
5
5
|
"main": "src/app.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"hedgequantx": "./bin/cli.js",
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"start": "node bin/cli.js",
|
|
12
|
-
"dev": "node bin/cli.js"
|
|
12
|
+
"dev": "node bin/cli.js",
|
|
13
|
+
"build": "node scripts/build.js",
|
|
14
|
+
"prepublishOnly": "npm run build"
|
|
13
15
|
},
|
|
14
16
|
"keywords": [
|
|
15
17
|
"trading",
|
|
@@ -19,12 +21,16 @@
|
|
|
19
21
|
"cli",
|
|
20
22
|
"topstep",
|
|
21
23
|
"projectx",
|
|
24
|
+
"rithmic",
|
|
25
|
+
"apex",
|
|
22
26
|
"prop-trading",
|
|
23
27
|
"algo-trading",
|
|
24
|
-
"futures-trading"
|
|
28
|
+
"futures-trading",
|
|
29
|
+
"scalping",
|
|
30
|
+
"hedgequantx"
|
|
25
31
|
],
|
|
26
|
-
"author": "HedgeQuantX",
|
|
27
|
-
"license": "
|
|
32
|
+
"author": "HedgeQuantX <support@hedgequantx.com>",
|
|
33
|
+
"license": "PROPRIETARY",
|
|
28
34
|
"repository": {
|
|
29
35
|
"type": "git",
|
|
30
36
|
"url": "git+https://github.com/HedgeQuantX/HQX-CLI.git"
|
|
@@ -32,22 +38,39 @@
|
|
|
32
38
|
"bugs": {
|
|
33
39
|
"url": "https://github.com/HedgeQuantX/HQX-CLI/issues"
|
|
34
40
|
},
|
|
35
|
-
"homepage": "https://
|
|
41
|
+
"homepage": "https://hedgequantx.com",
|
|
36
42
|
"engines": {
|
|
37
|
-
"node": ">=
|
|
43
|
+
"node": ">=18.0.0"
|
|
38
44
|
},
|
|
39
45
|
"files": [
|
|
40
46
|
"bin/",
|
|
41
|
-
"
|
|
47
|
+
"dist/",
|
|
48
|
+
"protos/",
|
|
49
|
+
"src/app.js",
|
|
50
|
+
"src/api/",
|
|
51
|
+
"src/config/",
|
|
52
|
+
"src/menus/",
|
|
53
|
+
"src/pages/",
|
|
54
|
+
"src/security/",
|
|
55
|
+
"src/services/",
|
|
56
|
+
"src/ui/",
|
|
57
|
+
"src/utils/"
|
|
42
58
|
],
|
|
43
59
|
"dependencies": {
|
|
60
|
+
"@microsoft/signalr": "^10.0.0",
|
|
44
61
|
"asciichart": "^1.5.25",
|
|
62
|
+
"bytenode": "^1.5.7",
|
|
45
63
|
"chalk": "^4.1.2",
|
|
46
64
|
"commander": "^11.1.0",
|
|
65
|
+
"conf": "^10.2.0",
|
|
47
66
|
"figlet": "^1.7.0",
|
|
48
|
-
"inquirer": "^8.2.
|
|
67
|
+
"inquirer": "^8.2.6",
|
|
49
68
|
"ora": "^5.4.1",
|
|
50
69
|
"protobufjs": "^8.0.0",
|
|
70
|
+
"uuid": "^9.0.1",
|
|
51
71
|
"ws": "^8.18.3"
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"nodemon": "^3.0.2"
|
|
52
75
|
}
|
|
53
76
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
|
|
2
|
+
package rti;
|
|
3
|
+
|
|
4
|
+
message AccountPnLPositionUpdate
|
|
5
|
+
{
|
|
6
|
+
required int32 template_id = 154467;
|
|
7
|
+
optional bool is_snapshot = 110121;
|
|
8
|
+
|
|
9
|
+
optional string fcm_id = 154013;
|
|
10
|
+
optional string ib_id = 154014;
|
|
11
|
+
optional string account_id = 154008;
|
|
12
|
+
|
|
13
|
+
optional int32 fill_buy_qty = 154041;
|
|
14
|
+
optional int32 fill_sell_qty = 154042;
|
|
15
|
+
|
|
16
|
+
optional int32 order_buy_qty = 154037;
|
|
17
|
+
optional int32 order_sell_qty = 154038;
|
|
18
|
+
|
|
19
|
+
optional int32 buy_qty = 154260;
|
|
20
|
+
optional int32 sell_qty = 154261;
|
|
21
|
+
|
|
22
|
+
optional string open_long_options_value = 157105;
|
|
23
|
+
optional string open_short_options_value = 157106;
|
|
24
|
+
optional string closed_options_value = 157107;
|
|
25
|
+
optional string option_cash_reserved = 157111;
|
|
26
|
+
optional string rms_account_commission = 157113;
|
|
27
|
+
|
|
28
|
+
optional string open_position_pnl = 156961;
|
|
29
|
+
optional int32 open_position_quantity = 156962;
|
|
30
|
+
optional string closed_position_pnl = 156963;
|
|
31
|
+
|
|
32
|
+
optional int32 closed_position_quantity = 156964;
|
|
33
|
+
optional int32 net_quantity = 156967;
|
|
34
|
+
|
|
35
|
+
optional string excess_buy_margin = 156991;
|
|
36
|
+
optional string margin_balance = 156977;
|
|
37
|
+
optional string min_margin_balance = 156976;
|
|
38
|
+
optional string min_account_balance = 156968;
|
|
39
|
+
optional string account_balance = 156970;
|
|
40
|
+
|
|
41
|
+
optional string cash_on_hand = 156971;
|
|
42
|
+
optional string option_closed_pnl = 157118;
|
|
43
|
+
optional string percent_maximum_allowable_loss = 156965;
|
|
44
|
+
optional string option_open_pnl = 157117;
|
|
45
|
+
optional string mtm_account = 154262;
|
|
46
|
+
optional string available_buying_power = 157015;
|
|
47
|
+
optional string used_buying_power = 157014;
|
|
48
|
+
optional string reserved_buying_power = 157013;
|
|
49
|
+
optional string excess_sell_margin = 156992;
|
|
50
|
+
|
|
51
|
+
optional string day_open_pnl = 157954;
|
|
52
|
+
optional string day_closed_pnl = 157955;
|
|
53
|
+
optional string day_pnl = 157956;
|
|
54
|
+
optional string day_open_pnl_offset = 157957;
|
|
55
|
+
optional string day_closed_pnl_offset = 157958;
|
|
56
|
+
|
|
57
|
+
optional int32 ssboe = 150100;
|
|
58
|
+
optional int32 usecs = 150101;
|
|
59
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
package rti;
|
|
3
|
+
|
|
4
|
+
message BestBidOffer
|
|
5
|
+
{
|
|
6
|
+
// PB_OFFSET = 100000, is the offset added for each MNM field id
|
|
7
|
+
|
|
8
|
+
// below enum is just for reference only, not used in this message
|
|
9
|
+
enum PresenceBits {
|
|
10
|
+
BID = 1;
|
|
11
|
+
ASK = 2;
|
|
12
|
+
LEAN_PRICE = 4;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
required int32 template_id = 154467; // PB_OFFSET + MNM_TEMPLATE_ID
|
|
16
|
+
optional string symbol = 110100; // PB_OFFSET + MNM_SYMBOL
|
|
17
|
+
optional string exchange = 110101; // PB_OFFSET + MNM_EXCHANGE
|
|
18
|
+
|
|
19
|
+
optional uint32 presence_bits = 149138; // PB_OFFSET + MNM_PRICING_INDICATOR
|
|
20
|
+
optional uint32 clear_bits = 154571; // PB_OFFSET + MNM_DISPLAY_INDICATOR
|
|
21
|
+
optional bool is_snapshot = 110121; // PB_OFFSET + MNM_UPDATE_TYPE
|
|
22
|
+
|
|
23
|
+
optional double bid_price = 100022; // PB_OFFSET + MNM_BID_PRICE
|
|
24
|
+
optional int32 bid_size = 100030; // PB_OFFSET + MNM_BID_SIZE
|
|
25
|
+
optional int32 bid_orders = 154403; // PB_OFFSET + MNM_BID_NO_OF_ORDERS
|
|
26
|
+
optional int32 bid_implicit_size = 154867; // PB_OFFSET + MNM_BID_IMPLICIT_SIZE
|
|
27
|
+
optional string bid_time = 100266;
|
|
28
|
+
|
|
29
|
+
optional double ask_price = 100025; // PB_OFFSET + MNM_ASK_PRICE
|
|
30
|
+
optional int32 ask_size = 100031; // PB_OFFSET + MNM_ASK_SIZE
|
|
31
|
+
optional int32 ask_orders = 154404; // PB_OFFSET + MNM_ASK_NO_OF_ORDERS
|
|
32
|
+
optional int32 ask_implicit_size = 154868; // PB_OFFSET + MNM_ASK_IMPLICIT_SIZE
|
|
33
|
+
optional string ask_time = 100267;
|
|
34
|
+
|
|
35
|
+
optional double lean_price = 154909; // PB_OFFSET + MNM_LEAN_PRICE
|
|
36
|
+
|
|
37
|
+
optional int32 ssboe = 150100; // PB_OFFSET + MNM_SECONDS_SINCE_BOE
|
|
38
|
+
optional int32 usecs = 150101; // PB_OFFSET + MNM_USECS
|
|
39
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
|
|
2
|
+
package rti;
|
|
3
|
+
|
|
4
|
+
message ExchangeOrderNotification
|
|
5
|
+
{
|
|
6
|
+
enum NotifyType {
|
|
7
|
+
STATUS = 1;
|
|
8
|
+
MODIFY = 2;
|
|
9
|
+
CANCEL = 3;
|
|
10
|
+
TRIGGER = 4;
|
|
11
|
+
FILL = 5;
|
|
12
|
+
REJECT = 6;
|
|
13
|
+
NOT_MODIFIED = 7;
|
|
14
|
+
NOT_CANCELLED = 8;
|
|
15
|
+
GENERIC = 9;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
enum TransactionType {
|
|
19
|
+
BUY = 1;
|
|
20
|
+
SELL = 2;
|
|
21
|
+
SS = 3;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
enum Duration {
|
|
25
|
+
DAY = 1;
|
|
26
|
+
GTC = 2;
|
|
27
|
+
IOC = 3;
|
|
28
|
+
FOK = 4;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
enum PriceType {
|
|
32
|
+
LIMIT = 1;
|
|
33
|
+
MARKET = 2;
|
|
34
|
+
STOP_LIMIT = 3;
|
|
35
|
+
STOP_MARKET = 4;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
enum BracketType {
|
|
39
|
+
STOP_ONLY = 1;
|
|
40
|
+
TARGET_ONLY = 2;
|
|
41
|
+
TARGET_AND_STOP = 3;
|
|
42
|
+
STOP_ONLY_STATIC = 4;
|
|
43
|
+
TARGET_ONLY_STATIC = 5;
|
|
44
|
+
TARGET_AND_STOP_STATIC = 6;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
enum OrderPlacement {
|
|
48
|
+
MANUAL = 1;
|
|
49
|
+
AUTO = 2;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
required int32 template_id = 154467;
|
|
53
|
+
optional string user_tag = 154119;
|
|
54
|
+
|
|
55
|
+
optional NotifyType notify_type = 153625;
|
|
56
|
+
optional bool is_snapshot = 110121;
|
|
57
|
+
optional bool is_rithmic_internal_msg = 149373;
|
|
58
|
+
|
|
59
|
+
optional string report_type = 120001;
|
|
60
|
+
optional string status = 110303;
|
|
61
|
+
optional string basket_id = 110300;
|
|
62
|
+
optional string original_basket_id = 154497;
|
|
63
|
+
optional string linked_basket_ids = 110358;
|
|
64
|
+
|
|
65
|
+
optional string fcm_id = 154013;
|
|
66
|
+
optional string ib_id = 154014;
|
|
67
|
+
optional string user_id = 131003;
|
|
68
|
+
optional string account_id = 154008;
|
|
69
|
+
|
|
70
|
+
optional string symbol = 110100;
|
|
71
|
+
optional string exchange = 110101;
|
|
72
|
+
optional string trade_exchange = 112021;
|
|
73
|
+
optional string trade_route = 112016;
|
|
74
|
+
optional string exchange_order_id = 149238;
|
|
75
|
+
optional string tp_exchange_order_id = 153647;
|
|
76
|
+
optional string instrument_type = 110116;
|
|
77
|
+
|
|
78
|
+
optional int32 quantity = 112004;
|
|
79
|
+
optional double price = 110306;
|
|
80
|
+
optional double trigger_price = 149247;
|
|
81
|
+
|
|
82
|
+
optional TransactionType transaction_type = 112003;
|
|
83
|
+
optional Duration duration = 112005;
|
|
84
|
+
optional PriceType price_type = 112008;
|
|
85
|
+
optional PriceType orig_price_type = 154770;
|
|
86
|
+
optional OrderPlacement manual_or_auto = 154710;
|
|
87
|
+
optional BracketType bracket_type = 157087;
|
|
88
|
+
|
|
89
|
+
optional int32 confirmed_size = 110329;
|
|
90
|
+
optional string confirmed_time = 110326;
|
|
91
|
+
optional string confirmed_date = 110327;
|
|
92
|
+
optional string confirmed_id = 110330;
|
|
93
|
+
|
|
94
|
+
optional int32 modified_size = 149267;
|
|
95
|
+
optional string modified_time = 149268;
|
|
96
|
+
optional string modified_date = 149269;
|
|
97
|
+
optional string modify_id = 149244;
|
|
98
|
+
|
|
99
|
+
optional int32 cancelled_size = 110318;
|
|
100
|
+
optional string cancelled_time = 110319;
|
|
101
|
+
optional string cancelled_date = 110320;
|
|
102
|
+
optional string cancelled_id = 110321;
|
|
103
|
+
|
|
104
|
+
optional double fill_price = 110307;
|
|
105
|
+
optional int32 fill_size = 110308;
|
|
106
|
+
optional string fill_time = 110309;
|
|
107
|
+
optional string fill_date = 110310;
|
|
108
|
+
optional string fill_id = 110311;
|
|
109
|
+
|
|
110
|
+
optional double avg_fill_price = 110322;
|
|
111
|
+
|
|
112
|
+
optional int32 total_fill_size = 154111;
|
|
113
|
+
optional int32 total_unfilled_size = 154112;
|
|
114
|
+
|
|
115
|
+
optional string trigger_id = 149266;
|
|
116
|
+
|
|
117
|
+
optional string sequence_number = 112002;
|
|
118
|
+
optional string orig_sequence_number = 149263;
|
|
119
|
+
optional string cor_sequence_number = 149264;
|
|
120
|
+
|
|
121
|
+
optional string currency = 154382;
|
|
122
|
+
optional string country_code = 154172;
|
|
123
|
+
|
|
124
|
+
optional string text = 120008;
|
|
125
|
+
optional string report_text = 120028;
|
|
126
|
+
optional string remarks = 154806;
|
|
127
|
+
|
|
128
|
+
optional string window_name = 154629;
|
|
129
|
+
optional string originator_window_name = 154671;
|
|
130
|
+
|
|
131
|
+
optional int32 cancel_at_ssboe = 157085;
|
|
132
|
+
optional int32 cancel_at_usecs = 157086;
|
|
133
|
+
optional int32 cancel_after_secs = 154488;
|
|
134
|
+
|
|
135
|
+
optional int32 ssboe = 150100;
|
|
136
|
+
optional int32 usecs = 150101;
|
|
137
|
+
|
|
138
|
+
optional int32 exch_receipt_ssboe = 150405;
|
|
139
|
+
optional int32 exch_receipt_nsecs = 150406;
|
|
140
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
package rti;
|
|
3
|
+
|
|
4
|
+
message InstrumentPnLPositionUpdate
|
|
5
|
+
{
|
|
6
|
+
required int32 template_id = 154467;
|
|
7
|
+
optional bool is_snapshot = 110121;
|
|
8
|
+
|
|
9
|
+
optional string fcm_id = 154013;
|
|
10
|
+
optional string ib_id = 154014;
|
|
11
|
+
optional string account_id = 154008;
|
|
12
|
+
|
|
13
|
+
optional string symbol = 110100;
|
|
14
|
+
optional string exchange = 110101;
|
|
15
|
+
optional string product_code = 100749;
|
|
16
|
+
optional string instrument_type = 110116;
|
|
17
|
+
|
|
18
|
+
optional int32 fill_buy_qty = 154041;
|
|
19
|
+
optional int32 fill_sell_qty = 154042;
|
|
20
|
+
|
|
21
|
+
optional int32 order_buy_qty = 154037;
|
|
22
|
+
optional int32 order_sell_qty = 154038;
|
|
23
|
+
|
|
24
|
+
optional int32 buy_qty = 154260;
|
|
25
|
+
optional int32 sell_qty = 154261;
|
|
26
|
+
|
|
27
|
+
optional double avg_open_fill_price = 154434;
|
|
28
|
+
|
|
29
|
+
optional double day_open_pnl = 157954;
|
|
30
|
+
optional double day_closed_pnl = 157955;
|
|
31
|
+
optional double day_pnl = 157956;
|
|
32
|
+
optional double day_open_pnl_offset = 157957;
|
|
33
|
+
optional double day_closed_pnl_offset = 157958;
|
|
34
|
+
|
|
35
|
+
optional string mtm_security = 154263;
|
|
36
|
+
optional string open_long_options_value = 157105;
|
|
37
|
+
optional string open_short_options_value = 157106;
|
|
38
|
+
optional string closed_options_value = 157107;
|
|
39
|
+
optional string option_cash_reserved = 157111;
|
|
40
|
+
|
|
41
|
+
optional string open_position_pnl = 156961;
|
|
42
|
+
optional int32 open_position_quantity = 156962;
|
|
43
|
+
optional string closed_position_pnl = 156963;
|
|
44
|
+
|
|
45
|
+
optional int32 closed_position_quantity = 156964;
|
|
46
|
+
optional int32 net_quantity = 156967;
|
|
47
|
+
|
|
48
|
+
optional int32 ssboe = 150100;
|
|
49
|
+
optional int32 usecs = 150101;
|
|
50
|
+
}
|