hedgequantx 1.3.11 → 1.3.12

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.3.11",
3
+ "version": "1.3.12",
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": {
@@ -33,6 +33,8 @@ const copyTradingMenu = async () => {
33
33
  console.log();
34
34
 
35
35
  // Get all active accounts from all connections
36
+ const spinner = ora({ text: 'Fetching accounts...', color: 'yellow' }).start();
37
+
36
38
  const allAccounts = [];
37
39
  for (const conn of allConns) {
38
40
  try {
@@ -52,11 +54,13 @@ const copyTradingMenu = async () => {
52
54
  }
53
55
 
54
56
  if (allAccounts.length < 2) {
55
- console.log(chalk.yellow(' Need at least 2 active accounts'));
57
+ spinner.fail('Need at least 2 active accounts');
56
58
  await inquirer.prompt([{ type: 'input', name: 'c', message: 'Press Enter...' }]);
57
59
  return;
58
60
  }
59
61
 
62
+ spinner.succeed(`Found ${allAccounts.length} active accounts`);
63
+
60
64
  // Step 1: Select Lead Account
61
65
  console.log(chalk.cyan(' Step 1: Select LEAD Account (source of trades)'));
62
66
  const leadChoices = allAccounts.map((a, i) => ({