hedgequantx 2.6.47 → 2.6.48

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.48",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -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}-`;