hedgequantx 1.2.109 → 1.2.110

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.2.109",
3
+ "version": "1.2.110",
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
@@ -988,21 +988,22 @@ const launchAlgo = async (service, account, contract, numContracts, dailyTarget,
988
988
  // Small delay to ensure all cleanup is done
989
989
  await new Promise(r => setTimeout(r, 500));
990
990
 
991
- // Clear screen, show cursor, and show final result
992
- console.clear();
993
- process.stdout.write('\x1B[?25h'); // Make sure cursor is visible
991
+ // Show cursor again (don't clear screen - show summary below logs)
992
+ process.stdout.write('\x1B[?25h');
994
993
 
994
+ // Print stop reason message
995
+ console.log();
995
996
  console.log();
996
997
  if (stopReason === 'target') {
997
- console.log(chalk.green.bold(' [OK] Daily target reached! Algo stopped.'));
998
+ console.log(chalk.green.bold(' [OK] Daily target reached! Algo stopped.'));
998
999
  } else if (stopReason === 'risk') {
999
- console.log(chalk.red.bold(' [X] Max risk reached! Algo stopped.'));
1000
+ console.log(chalk.red.bold(' [X] Max risk reached! Algo stopped.'));
1000
1001
  } else if (stopReason === 'disconnected' || stopReason === 'connection_error') {
1001
- console.log(chalk.red.bold(' [X] Connection lost! Algo stopped.'));
1002
+ console.log(chalk.red.bold(' [X] Connection lost! Algo stopped.'));
1002
1003
  } else if (stopReason === 'user') {
1003
- console.log(chalk.yellow(' [OK] Algo stopped by user'));
1004
+ console.log(chalk.yellow(' [OK] Algo stopped by user'));
1004
1005
  } else {
1005
- console.log(chalk.yellow(' [OK] Algo stopped by user'));
1006
+ console.log(chalk.yellow(' [OK] Algo stopped by user'));
1006
1007
  }
1007
1008
  console.log();
1008
1009