hedgequantx 1.7.5 → 1.7.6

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.7.5",
3
+ "version": "1.7.6",
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": {
@@ -98,35 +98,27 @@ const dashboardMenu = async (service) => {
98
98
  console.log(chalk.cyan('║') + leftPadded + rightPadded + chalk.cyan('║'));
99
99
  };
100
100
 
101
- // Display menu items in 2 columns inside the box
102
- menuRow(chalk.cyan('[1] View Accounts'), chalk.cyan('[2] View Stats'));
103
- menuRow(chalk.cyan('[+] Add Prop-Account'), chalk.magenta('[A] Algo-Trading'));
104
- menuRow(chalk.yellow('[U] Update HQX'), chalk.red('[X] Disconnect'));
105
-
106
101
  console.log(chalk.cyan('╚' + '═'.repeat(W) + '╝'));
107
102
 
108
- // Input prompt
109
- const { choice } = await inquirer.prompt([
103
+ // Use list type for stable input handling
104
+ const { action } = await inquirer.prompt([
110
105
  {
111
- type: 'input',
112
- name: 'choice',
106
+ type: 'list',
107
+ name: 'action',
113
108
  message: chalk.cyan('Select:'),
114
- prefix: ''
109
+ choices: [
110
+ { name: chalk.cyan('[1] View Accounts'), value: 'accounts' },
111
+ { name: chalk.cyan('[2] View Stats'), value: 'stats' },
112
+ { name: chalk.cyan('[+] Add Prop-Account'), value: 'add_prop_account' },
113
+ { name: chalk.magenta('[A] Algo-Trading'), value: 'algotrading' },
114
+ { name: chalk.yellow('[U] Update HQX'), value: 'update' },
115
+ { name: chalk.red('[X] Disconnect'), value: 'disconnect' }
116
+ ],
117
+ loop: false
115
118
  }
116
119
  ]);
117
120
 
118
- // Map input to action
119
- const input = (choice || '').toString().toLowerCase().trim();
120
- const actionMap = {
121
- '1': 'accounts',
122
- '2': 'stats',
123
- '+': 'add_prop_account',
124
- 'a': 'algotrading',
125
- 'u': 'update',
126
- 'x': 'disconnect'
127
- };
128
-
129
- return actionMap[input] || null;
121
+ return action;
130
122
  };
131
123
 
132
124
  /**