hedgequantx 2.9.192 → 2.9.194

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.194",
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));
@@ -11,9 +11,9 @@
11
11
 
12
12
  const { REQ } = require('./constants');
13
13
 
14
- // Debug mode
15
- const DEBUG = process.env.HQX_DEBUG === '1';
16
- const debug = (...args) => DEBUG && console.log('[Rithmic]', ...args);
14
+ // Debug mode - DISABLED to avoid polluting interactive UI
15
+ const DEBUG = false;
16
+ const debug = (...args) => {};
17
17
 
18
18
  /**
19
19
  * Hash account ID to numeric (for compatibility)
@@ -6,9 +6,10 @@
6
6
  const { proto, decodeAccountPnL, decodeInstrumentPnL } = require('./protobuf');
7
7
  const { RES, STREAM } = require('./constants');
8
8
 
9
- // Debug mode
10
- const DEBUG = process.env.HQX_DEBUG === '1';
11
- const debug = (...args) => DEBUG && console.log('[Rithmic:Handler]', ...args);
9
+ // Debug mode - DISABLED to avoid polluting interactive UI
10
+ // Use session logs instead for debugging
11
+ const DEBUG = false;
12
+ const debug = (...args) => {};
12
13
 
13
14
  /**
14
15
  * Create ORDER_PLANT message handler
@@ -5,8 +5,8 @@
5
5
 
6
6
  const { REQ } = require('./constants');
7
7
 
8
- // Debug mode
9
- const DEBUG = process.env.HQX_DEBUG === '1';
8
+ // Debug mode - DISABLED to avoid polluting interactive UI
9
+ const DEBUG = false;
10
10
 
11
11
  /**
12
12
  * Place order via ORDER_PLANT and wait for confirmation