hedgequantx 1.8.1 → 1.8.3

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.1",
3
+ "version": "1.8.3",
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/app.js CHANGED
@@ -188,7 +188,7 @@ const mainMenu = async () => {
188
188
  const run = async () => {
189
189
  try {
190
190
  log.info('Starting HQX CLI');
191
- await banner();
191
+ await bannerClosed();
192
192
 
193
193
  const spinner = ora({ text: 'Restoring session...', color: 'yellow' }).start();
194
194
  const restored = await connections.restoreFromStorage();
@@ -91,10 +91,17 @@ const numberInput = async (message, defaultVal = 1, min = 1, max = 1000) => {
91
91
  };
92
92
 
93
93
  /**
94
- * Select - just text input, map to value
94
+ * Select - display options and text input, map to value
95
95
  */
96
96
  const selectOption = async (message, options) => {
97
97
  prepareStdin();
98
+
99
+ // Display options
100
+ options.forEach((opt, i) => {
101
+ console.log(` [${i + 1}] ${opt.label}`);
102
+ });
103
+ console.log();
104
+
98
105
  const { value } = await inquirer.prompt([{
99
106
  type: 'input',
100
107
  name: 'value',