hedgequantx 1.2.82 → 1.2.84

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/pages/algo.js +10 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "1.2.82",
3
+ "version": "1.2.84",
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": {
package/src/pages/algo.js CHANGED
@@ -153,10 +153,15 @@ const selectSymbolMenu = async (service, account) => {
153
153
  console.log(chalk.gray(getSeparator()));
154
154
  console.log();
155
155
 
156
- const symbolChoices = FUTURES_SYMBOLS.map(symbol => ({
157
- name: chalk.cyan(device.isMobile ? symbol.value : symbol.name),
158
- value: symbol
159
- }));
156
+ // Format symbols with aligned columns: "NQ - E-mini NASDAQ-100"
157
+ const symbolChoices = FUTURES_SYMBOLS.map(symbol => {
158
+ const code = symbol.value.padEnd(4);
159
+ const desc = symbol.name.split(' - ')[1] || '';
160
+ return {
161
+ name: chalk.yellow(code) + chalk.gray(' - ') + chalk.white(desc),
162
+ value: symbol
163
+ };
164
+ });
160
165
 
161
166
  symbolChoices.push(new inquirer.Separator());
162
167
  symbolChoices.push({ name: chalk.yellow('< Back'), value: 'back' });
@@ -502,7 +507,7 @@ const launchAlgo = async (service, account, contract, numContracts, dailyTarget,
502
507
  const midSpace = Math.max(0, W - leftLen - rightLen);
503
508
  const datePad = Math.max(0, Math.floor((midSpace - dateCentered.length) / 2));
504
509
  const remainingPad = Math.max(0, midSpace - datePad - dateCentered.length);
505
- const dateSection = ' '.repeat(datePad) + chalk.gray(dateCentered) + ' '.repeat(remainingPad);
510
+ const dateSection = ' '.repeat(datePad) + chalk.cyan(dateCentered) + ' '.repeat(remainingPad);
506
511
  console.log(chalk.cyan(V) + chalk.white(actLeft) + dateSection + chalk.yellow(actRight) + chalk.cyan(V));
507
512
  console.log(chalk.cyan(BOT));
508
513