hedgequantx 2.6.155 → 2.6.157

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": "2.6.155",
3
+ "version": "2.6.157",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -19,7 +19,7 @@ const readline = require('readline');
19
19
 
20
20
  const { connections } = require('../../services');
21
21
  const { AlgoUI, renderSessionSummary, renderMultiSymbolSummary } = require('./ui');
22
- const { displayBanner, drawBoxHeaderContinue, drawBoxFooter, drawBoxRow, getLogoWidth, centerText } = require('../../ui');
22
+ const { displayBanner, drawBoxHeader, drawBoxHeaderContinue, drawBoxFooter, drawBoxRow, getLogoWidth, centerText } = require('../../ui');
23
23
  const { prompts } = require('../../utils');
24
24
  const { checkMarketHours } = require('../../services/projectx/market');
25
25
  const { FAST_SCALPING } = require('../../config/settings');
@@ -368,10 +368,11 @@ const customStrategyMenu = async (service) => {
368
368
 
369
369
  // Step 4: Show strategy summary and confirm
370
370
  console.log('');
371
- drawBoxHeaderContinue('STRATEGY READY', boxWidth);
372
- drawBoxRow(`Name: ${genResult.name}`, boxWidth);
373
- drawBoxRow(`File: ${filename}`, boxWidth);
371
+ drawBoxHeader('STRATEGY READY', boxWidth);
372
+ drawBoxRow(` Name: ${genResult.name}`, boxWidth);
373
+ drawBoxRow(` File: ${filename}`, boxWidth);
374
374
  drawBoxFooter(boxWidth);
375
+ console.log('');
375
376
 
376
377
  const confirm = await prompts.textInput(chalk.cyan(' Continue with this strategy? (Y/n): '));
377
378
  if (confirm.toLowerCase() === 'n') {
@@ -408,7 +409,9 @@ async function executeWithCustomStrategy(service, StrategyClass, strategyName) {
408
409
  console.log(chalk.cyan('\n SELECT ACCOUNT:\n'));
409
410
  accountsResult.accounts.forEach((acc, i) => {
410
411
  const balance = acc.balance !== null ? `$${acc.balance.toLocaleString()}` : 'N/A';
411
- console.log(chalk.cyan(` [${i + 1}]`) + chalk.white(` ${acc.name || acc.accountId}`) + chalk.gray(` - ${balance}`));
412
+ const propfirm = acc.propfirm || 'Unknown';
413
+ const accId = acc.rithmicAccountId || acc.accountId;
414
+ console.log(chalk.cyan(` [${i + 1}]`) + chalk.yellow(` ${propfirm}`) + chalk.gray(` (${accId})`) + chalk.green(` ${balance}`));
412
415
  });
413
416
 
414
417
  const accChoice = await prompts.numberInput('\n ACCOUNT #:', 1, 1, accountsResult.accounts.length);