hedgequantx 2.3.9 → 2.3.10
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/dist/lib/api.jsc +0 -0
- package/dist/lib/api2.jsc +0 -0
- package/dist/lib/core.jsc +0 -0
- package/dist/lib/core2.jsc +0 -0
- package/dist/lib/data.jsc +0 -0
- package/dist/lib/data2.jsc +0 -0
- package/dist/lib/decoder.jsc +0 -0
- package/dist/lib/m/mod1.jsc +0 -0
- package/dist/lib/m/mod2.jsc +0 -0
- package/dist/lib/n/r1.jsc +0 -0
- package/dist/lib/n/r2.jsc +0 -0
- package/dist/lib/n/r3.jsc +0 -0
- package/dist/lib/n/r4.jsc +0 -0
- package/dist/lib/n/r5.jsc +0 -0
- package/dist/lib/n/r6.jsc +0 -0
- package/dist/lib/n/r7.jsc +0 -0
- package/dist/lib/o/util1.jsc +0 -0
- package/dist/lib/o/util2.jsc +0 -0
- package/package.json +1 -1
- package/src/pages/algo/one-account.js +18 -31
package/dist/lib/api.jsc
CHANGED
|
Binary file
|
package/dist/lib/api2.jsc
CHANGED
|
Binary file
|
package/dist/lib/core.jsc
CHANGED
|
Binary file
|
package/dist/lib/core2.jsc
CHANGED
|
Binary file
|
package/dist/lib/data.jsc
CHANGED
|
Binary file
|
package/dist/lib/data2.jsc
CHANGED
|
Binary file
|
package/dist/lib/decoder.jsc
CHANGED
|
Binary file
|
package/dist/lib/m/mod1.jsc
CHANGED
|
Binary file
|
package/dist/lib/m/mod2.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r1.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r2.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r3.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r4.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r5.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r6.jsc
CHANGED
|
Binary file
|
package/dist/lib/n/r7.jsc
CHANGED
|
Binary file
|
package/dist/lib/o/util1.jsc
CHANGED
|
Binary file
|
package/dist/lib/o/util2.jsc
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -47,12 +47,18 @@ const oneAccountMenu = async (service) => {
|
|
|
47
47
|
|
|
48
48
|
spinner.succeed(`Found ${activeAccounts.length} active account(s)`);
|
|
49
49
|
|
|
50
|
-
// Select account
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
// Select account - display RAW API fields
|
|
51
|
+
const options = activeAccounts.map(acc => {
|
|
52
|
+
// Use what API returns: accountName for ProjectX, rithmicAccountId for Rithmic
|
|
53
|
+
const name = acc.accountName || acc.rithmicAccountId || acc.accountId;
|
|
54
|
+
const balance = acc.balance !== null && acc.balance !== undefined
|
|
55
|
+
? ` - $${acc.balance.toLocaleString()}`
|
|
56
|
+
: '';
|
|
57
|
+
return {
|
|
58
|
+
label: `${name} (${acc.propfirm || acc.platform || 'Unknown'})${balance}`,
|
|
59
|
+
value: acc
|
|
60
|
+
};
|
|
61
|
+
});
|
|
56
62
|
options.push({ label: '< Back', value: 'back' });
|
|
57
63
|
|
|
58
64
|
const selectedAccount = await prompts.selectOption('Select Account:', options);
|
|
@@ -73,7 +79,7 @@ const oneAccountMenu = async (service) => {
|
|
|
73
79
|
};
|
|
74
80
|
|
|
75
81
|
/**
|
|
76
|
-
* Symbol selection -
|
|
82
|
+
* Symbol selection - RAW API data only
|
|
77
83
|
*/
|
|
78
84
|
const selectSymbol = async (service, account) => {
|
|
79
85
|
const spinner = ora({ text: 'Loading symbols...', color: 'yellow' }).start();
|
|
@@ -84,34 +90,15 @@ const selectSymbol = async (service, account) => {
|
|
|
84
90
|
return null;
|
|
85
91
|
}
|
|
86
92
|
|
|
87
|
-
// Contracts are already sorted by category from getContracts()
|
|
88
93
|
const contracts = contractsResult.contracts;
|
|
89
|
-
|
|
90
94
|
spinner.succeed(`Found ${contracts.length} contracts`);
|
|
91
95
|
|
|
92
|
-
//
|
|
93
|
-
const options =
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
// Category header from API field contractGroup
|
|
98
|
-
if (c.contractGroup !== currentGroup) {
|
|
99
|
-
currentGroup = c.contractGroup;
|
|
100
|
-
if (currentGroup) {
|
|
101
|
-
options.push({
|
|
102
|
-
label: chalk.cyan.bold(`── ${currentGroup} ──`),
|
|
103
|
-
value: null,
|
|
104
|
-
disabled: true
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// Display using RAW API fields only
|
|
110
|
-
const label = ` ${c.name} - ${c.description} (${c.exchange})`;
|
|
111
|
-
options.push({ label, value: c });
|
|
112
|
-
}
|
|
96
|
+
// Display EXACTLY what API returns - no modifications
|
|
97
|
+
const options = contracts.map(c => ({
|
|
98
|
+
label: `${c.name} - ${c.description}`,
|
|
99
|
+
value: c
|
|
100
|
+
}));
|
|
113
101
|
|
|
114
|
-
options.push({ label: '', value: null, disabled: true }); // Spacer
|
|
115
102
|
options.push({ label: chalk.gray('< Back'), value: 'back' });
|
|
116
103
|
|
|
117
104
|
const contract = await prompts.selectOption(chalk.yellow('Select Symbol:'), options);
|