hedgequantx 2.6.47 → 2.6.49

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.6.47",
3
+ "version": "2.6.49",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -102,7 +102,11 @@ class AlgoUI {
102
102
  this.config = config;
103
103
  this.W = 96; // Fixed width
104
104
  this.logs = [];
105
- this.maxLogs = 45; // Max visible logs
105
+ // Calculate maxLogs based on terminal height
106
+ // Header (logo + titles): ~12 lines, Stats: ~12 lines, Log header: 2 lines, Bottom: 1 line = 27 fixed
107
+ const terminalHeight = process.stdout.rows || 50;
108
+ const fixedLines = 27;
109
+ this.maxLogs = Math.max(10, terminalHeight - fixedLines); // Min 10 logs
106
110
  this.spinnerFrame = 0;
107
111
  this.firstDraw = true;
108
112
  this.isDrawing = false;
@@ -17,6 +17,10 @@ const { proto } = require('./protobuf');
17
17
  const { LatencyTracker } = require('./handlers');
18
18
  const { performance } = require('perf_hooks');
19
19
 
20
+ // Debug mode - use no-op function when disabled for zero overhead
21
+ const DEBUG = process.env.HQX_DEBUG === '1';
22
+ const debug = DEBUG ? (...args) => console.log('[Rithmic:Orders]', ...args) : () => {};
23
+
20
24
  // ==================== FAST ORDER TAG ====================
21
25
  // Pre-generate prefix once at module load (not per-order)
22
26
  const ORDER_TAG_PREFIX = `HQX${process.pid}-`;