hedgequantx 2.9.34 → 2.9.35
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/package.json
CHANGED
|
@@ -39,7 +39,10 @@ const copyTradingMenu = async () => {
|
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
// Filter active accounts: status === 0 (ProjectX) OR status === 'active' (Rithmic) OR no status
|
|
43
|
+
const activeAccounts = allAccounts.filter(acc =>
|
|
44
|
+
acc.status === 0 || acc.status === 'active' || acc.status === undefined || acc.status === null
|
|
45
|
+
);
|
|
43
46
|
|
|
44
47
|
if (activeAccounts.length < 2) {
|
|
45
48
|
spinner.fail(`Need at least 2 active accounts (found: ${activeAccounts.length})`);
|
|
@@ -46,7 +46,10 @@ const customStrategyMenu = async (service) => {
|
|
|
46
46
|
|
|
47
47
|
if (!allAccounts?.length) { spinner.fail('No accounts found'); await prompts.waitForEnter(); return; }
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
// Filter active accounts: status === 0 (ProjectX) OR status === 'active' (Rithmic) OR no status
|
|
50
|
+
const activeAccounts = allAccounts.filter(acc =>
|
|
51
|
+
acc.status === 0 || acc.status === 'active' || acc.status === undefined || acc.status === null
|
|
52
|
+
);
|
|
50
53
|
if (!activeAccounts.length) { spinner.fail('No active accounts'); await prompts.waitForEnter(); return; }
|
|
51
54
|
|
|
52
55
|
spinner.succeed(`Found ${activeAccounts.length} active account(s)`);
|
|
@@ -40,7 +40,10 @@ const oneAccountMenu = async (service) => {
|
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
// Filter active accounts: status === 0 (ProjectX) OR status === 'active' (Rithmic) OR no status
|
|
44
|
+
const activeAccounts = allAccounts.filter(acc =>
|
|
45
|
+
acc.status === 0 || acc.status === 'active' || acc.status === undefined || acc.status === null
|
|
46
|
+
);
|
|
44
47
|
|
|
45
48
|
if (!activeAccounts.length) {
|
|
46
49
|
spinner.fail('No active accounts');
|