hedgequantx 2.3.8 → 2.3.9

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 CHANGED
Binary file
package/dist/lib/api2.jsc CHANGED
Binary file
package/dist/lib/core.jsc CHANGED
Binary file
Binary file
package/dist/lib/data.jsc CHANGED
Binary file
Binary file
Binary file
Binary file
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
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.3.8",
3
+ "version": "2.3.9",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -88,8 +88,8 @@ const showAccounts = async (service) => {
88
88
  const acc1 = allAccounts[i];
89
89
  const acc2 = allAccounts[i + 1];
90
90
 
91
- const name1 = String(acc1.accountId || acc1.accountName || `Account #${i + 1}`);
92
- const name2 = acc2 ? String(acc2.accountId || acc2.accountName || `Account #${i + 2}`) : '';
91
+ const name1 = String(acc1.accountName || acc1.rithmicAccountId || acc1.accountId || `Account #${i + 1}`);
92
+ const name2 = acc2 ? String(acc2.accountName || acc2.rithmicAccountId || acc2.accountId || `Account #${i + 2}`) : '';
93
93
 
94
94
  draw2ColHeader(name1.substring(0, col1 - 4), name2 ? name2.substring(0, col2 - 4) : '', boxWidth);
95
95
 
@@ -168,7 +168,7 @@ const selectAccount = async (message, accounts, excludeIdx) => {
168
168
  const acc = x.a.account;
169
169
  const balance = acc.balance !== null ? ` ($${acc.balance.toLocaleString()})` : '';
170
170
  return {
171
- label: `${x.a.propfirm} - ${acc.rithmicAccountId || acc.name || acc.accountId}${balance}`,
171
+ label: `${x.a.propfirm} - ${acc.accountName || acc.rithmicAccountId || acc.name || acc.accountId}${balance}`,
172
172
  value: x.i,
173
173
  };
174
174
  });
@@ -48,8 +48,9 @@ const oneAccountMenu = async (service) => {
48
48
  spinner.succeed(`Found ${activeAccounts.length} active account(s)`);
49
49
 
50
50
  // Select account
51
+ // Display name priority: accountName (ProjectX) > rithmicAccountId (Rithmic) > name > accountId
51
52
  const options = activeAccounts.map(acc => ({
52
- label: `${acc.rithmicAccountId || acc.name || acc.accountId} (${acc.propfirm || 'Unknown'})${acc.balance !== null ? ` - $${acc.balance.toLocaleString()}` : ''}`,
53
+ label: `${acc.accountName || acc.rithmicAccountId || acc.name || acc.accountId} (${acc.propfirm || 'Unknown'})${acc.balance !== null ? ` - $${acc.balance.toLocaleString()}` : ''}`,
53
54
  value: acc
54
55
  }));
55
56
  options.push({ label: '< Back', value: 'back' });
@@ -68,7 +68,7 @@ const showOrders = async (service) => {
68
68
  let allOrders = [];
69
69
 
70
70
  for (const account of allAccounts) {
71
- const accName = String(account.accountId || account.accountName || 'Unknown').substring(0, 20);
71
+ const accName = String(account.accountName || account.rithmicAccountId || account.accountId || 'Unknown').substring(0, 20);
72
72
  spinner = ora({ text: `Fetching orders for ${accName}...`, color: 'yellow' }).start();
73
73
 
74
74
  try {
@@ -77,7 +77,7 @@ const showOrders = async (service) => {
77
77
  result.orders.forEach(order => {
78
78
  allOrders.push({
79
79
  ...order,
80
- accountName: account.accountId,
80
+ accountName: account.accountName || account.rithmicAccountId || account.accountId,
81
81
  propfirm: account.propfirm
82
82
  });
83
83
  });
@@ -68,7 +68,7 @@ const showPositions = async (service) => {
68
68
  let allPositions = [];
69
69
 
70
70
  for (const account of allAccounts) {
71
- const accName = String(account.accountId || account.accountName || 'Unknown').substring(0, 20);
71
+ const accName = String(account.accountName || account.rithmicAccountId || account.accountId || 'Unknown').substring(0, 20);
72
72
  spinner = ora({ text: `Fetching positions for ${accName}...`, color: 'yellow' }).start();
73
73
 
74
74
  try {
@@ -77,7 +77,7 @@ const showPositions = async (service) => {
77
77
  result.positions.forEach(pos => {
78
78
  allPositions.push({
79
79
  ...pos,
80
- accountName: account.accountId,
80
+ accountName: account.accountName || account.rithmicAccountId || account.accountId,
81
81
  propfirm: account.propfirm
82
82
  });
83
83
  });