hedgequantx 2.9.192 → 2.9.193

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.192",
3
+ "version": "2.9.193",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -466,9 +466,10 @@ const executeAlgo = async ({ service, account, contract, config, strategy: strat
466
466
  process.stdin.setRawMode(true);
467
467
  process.stdin.resume();
468
468
  const onKey = (str, key) => {
469
- // Handle 'x', 'X', or Ctrl+C to stop
469
+ // Handle 'x', 'X', '$', '£', or Ctrl+C to stop
470
470
  const keyName = key?.name?.toLowerCase();
471
- if (keyName === 'x' || (key?.ctrl && keyName === 'c')) {
471
+ const char = str || '';
472
+ if (keyName === 'x' || char === '$' || char === '£' || (key?.ctrl && keyName === 'c')) {
472
473
  running = false;
473
474
  stopReason = 'manual';
474
475
  }
@@ -301,7 +301,7 @@ class AlgoUI {
301
301
  const dateStr = now.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });
302
302
 
303
303
  const leftText = ` EXECUTION LOG ${spinner}`;
304
- const rightText = `[X] STOP `;
304
+ const rightText = `[X/$] STOP `;
305
305
 
306
306
  const totalFixed = leftText.length + rightText.length;
307
307
  const centerSpace = W - totalFixed;
@@ -310,7 +310,7 @@ class AlgoUI {
310
310
 
311
311
  const left = ` EXECUTION LOG ${chalk.yellow(spinner)}`;
312
312
  const center = ' '.repeat(Math.max(0, centerPadLeft)) + chalk.white(dateStr) + ' '.repeat(Math.max(0, centerPadRight));
313
- const right = chalk.yellow('[X] STOP') + ' ';
313
+ const right = chalk.yellow('[X/$] STOP') + ' ';
314
314
 
315
315
  this._line(chalk.cyan(BOX.V) + chalk.white.bold(left) + center + right + chalk.cyan(BOX.V));
316
316
  this._line(chalk.cyan(BOX.ML + BOX.H.repeat(W) + BOX.MR));