hedgequantx 2.9.139 → 2.9.140

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": "2.9.139",
3
+ "version": "2.9.140",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -3,7 +3,7 @@
3
3
  * Single TICKER_PLANT connection, multiple strategy instances
4
4
  */
5
5
  const readline = require('readline');
6
- const { AlgoUI } = require('./ui');
6
+ const { AlgoUI, renderSessionSummary } = require('./ui');
7
7
  const { loadStrategy } = require('../../lib/m');
8
8
  const { MarketDataFeed } = require('../../lib/data');
9
9
  const smartLogs = require('../../lib/smart-logs');
@@ -357,20 +357,16 @@ const executeMultiSymbol = async ({ service, account, contracts, config, strateg
357
357
  const s = Math.floor((durationMs % 60000) / 1000);
358
358
  globalStats.duration = h > 0 ? `${h}h ${m}m ${s}s` : m > 0 ? `${m}m ${s}s` : `${s}s`;
359
359
 
360
- sessionLogger.end(globalStats, stopReason?.toUpperCase() || 'MANUAL');
360
+ const sessionLogPath = sessionLogger.end(globalStats, stopReason?.toUpperCase() || 'MANUAL');
361
361
 
362
- console.log('\n');
363
- console.log(' Multi-Symbol Session Summary');
364
- console.log(' ────────────────────────────');
365
- console.log(` Symbols: ${globalStats.symbols}`);
366
- console.log(` Duration: ${globalStats.duration}`);
367
- console.log(` Trades: ${globalStats.trades} | P&L: $${globalStats.pnl.toFixed(2)}`);
368
- console.log(` Stop: ${stopReason || 'manual'}`);
369
- console.log();
362
+ renderSessionSummary(globalStats, stopReason);
363
+ if (sessionLogPath) {
364
+ console.log(`\n Session log: ${sessionLogPath}`);
365
+ }
370
366
 
371
367
  const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
372
368
  await new Promise(resolve => {
373
- rl.question(' Press Enter to return to menu...', () => { rl.close(); resolve(); });
369
+ rl.question('\n Press Enter to return to menu...', () => { rl.close(); resolve(); });
374
370
  });
375
371
  };
376
372