hedgequantx 1.8.22 → 1.8.24

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.22",
3
+ "version": "1.8.24",
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": {
@@ -337,11 +337,15 @@ const launchCopyTrading = async (config) => {
337
337
  // Summary
338
338
  console.clear();
339
339
  console.log();
340
- console.log(chalk.cyan(' === Copy Trading Summary ==='));
341
- console.log();
342
- console.log(chalk.white(` Stop: ${stopReason || 'unknown'}`));
343
- console.log(chalk.white(` Trades: ${stats.trades} (W: ${stats.wins} / L: ${stats.losses})`));
344
- console.log((stats.pnl >= 0 ? chalk.green : chalk.red)(` P&L: ${stats.pnl >= 0 ? '+' : ''}$${stats.pnl.toFixed(2)}`));
340
+ console.log(chalk.cyan('╔════════════════════════════════════════════════════════════════╗'));
341
+ console.log(chalk.cyan('║') + chalk.white(' Copy Trading Summary ') + chalk.cyan('║'));
342
+ console.log(chalk.cyan('╠════════════════════════════════════════════════════════════════╣'));
343
+ console.log(chalk.cyan('║') + chalk.white(` Stop Reason: ${(stopReason || 'unknown').padEnd(47)}`) + chalk.cyan('║'));
344
+ console.log(chalk.cyan('║') + chalk.white(` Trades: ${String(stats.trades).padEnd(10)} Wins: ${String(stats.wins).padEnd(10)} Losses: ${String(stats.losses).padEnd(10)}`) + chalk.cyan('║'));
345
+ const pnlColor = stats.pnl >= 0 ? chalk.green : chalk.red;
346
+ const pnlStr = `${stats.pnl >= 0 ? '+' : ''}$${stats.pnl.toFixed(2)}`;
347
+ console.log(chalk.cyan('║') + chalk.white(' P&L: ') + pnlColor(pnlStr.padEnd(55)) + chalk.cyan('║'));
348
+ console.log(chalk.cyan('╚════════════════════════════════════════════════════════════════╝'));
345
349
  console.log();
346
350
 
347
351
  await prompts.waitForEnter();
@@ -244,11 +244,15 @@ const launchAlgo = async (service, account, contract, config) => {
244
244
  // Summary
245
245
  console.clear();
246
246
  console.log();
247
- console.log(chalk.cyan(' === Session Summary ==='));
248
- console.log();
249
- console.log(chalk.white(` Stop Reason: ${stopReason || 'unknown'}`));
250
- console.log(chalk.white(` Trades: ${stats.trades} (W: ${stats.wins} / L: ${stats.losses})`));
251
- console.log((stats.pnl >= 0 ? chalk.green : chalk.red)(` P&L: ${stats.pnl >= 0 ? '+' : ''}$${stats.pnl.toFixed(2)}`));
247
+ console.log(chalk.cyan('╔════════════════════════════════════════════════════════════════╗'));
248
+ console.log(chalk.cyan('║') + chalk.white(' Session Summary ') + chalk.cyan('║'));
249
+ console.log(chalk.cyan('╠════════════════════════════════════════════════════════════════╣'));
250
+ console.log(chalk.cyan('║') + chalk.white(` Stop Reason: ${(stopReason || 'unknown').padEnd(47)}`) + chalk.cyan('║'));
251
+ console.log(chalk.cyan('║') + chalk.white(` Trades: ${String(stats.trades).padEnd(10)} Wins: ${String(stats.wins).padEnd(10)} Losses: ${String(stats.losses).padEnd(10)}`) + chalk.cyan('║'));
252
+ const pnlColor = stats.pnl >= 0 ? chalk.green : chalk.red;
253
+ const pnlStr = `${stats.pnl >= 0 ? '+' : ''}$${stats.pnl.toFixed(2)}`;
254
+ console.log(chalk.cyan('║') + chalk.white(' P&L: ') + pnlColor(pnlStr.padEnd(55)) + chalk.cyan('║'));
255
+ console.log(chalk.cyan('╚════════════════════════════════════════════════════════════════╝'));
252
256
  console.log();
253
257
 
254
258
  await prompts.waitForEnter();
@@ -85,7 +85,7 @@ class AlgoUI {
85
85
  this.config = config;
86
86
  this.W = 96; // Fixed width
87
87
  this.logs = [];
88
- this.maxLogs = 50; // Max visible logs
88
+ this.maxLogs = 45; // Max visible logs
89
89
  this.spinnerFrame = 0;
90
90
  this.firstDraw = true;
91
91
  this.isDrawing = false;