hedgequantx 1.8.39 → 1.8.40

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "1.8.39",
3
+ "version": "1.8.40",
4
4
  "description": "Prop Futures Algo Trading CLI - Connect to Topstep, Alpha Futures, and other prop firms",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -72,7 +72,7 @@ const copyTradingMenu = async () => {
72
72
  // Step 1: Select Lead Account
73
73
  console.log(chalk.cyan(' Step 1: Select LEAD Account'));
74
74
  const leadOptions = allAccounts.map((a, i) => ({
75
- label: `${a.propfirm} - ${a.account.accountId}${a.account.balance !== null ? ` ($${a.account.balance.toLocaleString()})` : ''}`,
75
+ label: `${a.propfirm} - ${a.account.rithmicAccountId || a.account.name || a.account.accountId}${a.account.balance !== null ? ` ($${a.account.balance.toLocaleString()})` : ''}`,
76
76
  value: i
77
77
  }));
78
78
  leadOptions.push({ label: '< Cancel', value: -1 });
@@ -88,7 +88,7 @@ const copyTradingMenu = async () => {
88
88
  .map((a, i) => ({ a, i }))
89
89
  .filter(x => x.i !== leadIdx)
90
90
  .map(x => ({
91
- label: `${x.a.propfirm} - ${x.a.account.accountId}${x.a.account.balance !== null ? ` ($${x.a.account.balance.toLocaleString()})` : ''}`,
91
+ label: `${x.a.propfirm} - ${x.a.account.rithmicAccountId || x.a.account.name || x.a.account.accountId}${x.a.account.balance !== null ? ` ($${x.a.account.balance.toLocaleString()})` : ''}`,
92
92
  value: x.i
93
93
  }));
94
94
  followerOptions.push({ label: '< Cancel', value: -1 });
@@ -49,7 +49,7 @@ const oneAccountMenu = async (service) => {
49
49
 
50
50
  // Select account
51
51
  const options = activeAccounts.map(acc => ({
52
- label: `${acc.accountId} (${acc.propfirm || 'Unknown'})${acc.balance !== null ? ` - $${acc.balance.toLocaleString()}` : ''}`,
52
+ label: `${acc.rithmicAccountId || acc.name || acc.accountId} (${acc.propfirm || 'Unknown'})${acc.balance !== null ? ` - $${acc.balance.toLocaleString()}` : ''}`,
53
53
  value: acc
54
54
  }));
55
55
  options.push({ label: '< Back', value: 'back' });