hedgequantx 1.2.130 → 1.2.131

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": "1.2.130",
3
+ "version": "1.2.131",
4
4
  "description": "Prop Futures Algo Trading CLI - Connect to Topstep, Alpha Futures, and other prop firms",
5
5
  "main": "src/app.js",
6
6
  "bin": {
package/src/pages/algo.js CHANGED
@@ -1507,6 +1507,11 @@ const launchCopyTrading = async (config) => {
1507
1507
  let spinnerFrame = 0;
1508
1508
  const spinnerChars = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
1509
1509
 
1510
+ // HQX Server connection state (declared here so displayUI can access it)
1511
+ const hqxServer = new HQXServerService();
1512
+ let hqxConnected = false;
1513
+ let latency = 0;
1514
+
1510
1515
  const bufferLine = (text) => {
1511
1516
  screenBuffer += text + '\x1B[K\n';
1512
1517
  };
@@ -1710,15 +1715,10 @@ const launchCopyTrading = async (config) => {
1710
1715
  }, 250);
1711
1716
 
1712
1717
  addLog('info', 'Copy trading initialized');
1718
+ addLog('info', 'Connecting to HQX Server...');
1713
1719
  displayUI();
1714
1720
 
1715
- // Connect to HQX Server for Ultra-Scalping signals
1716
- const hqxServer = new HQXServerService();
1717
- let hqxConnected = false;
1718
- let latency = 0;
1719
-
1720
1721
  // Authenticate with HQX Server
1721
- addLog('info', 'Connecting to HQX Server...');
1722
1722
  displayUI();
1723
1723
 
1724
1724
  try {