hedgequantx 1.2.120 → 1.2.121

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.120",
3
+ "version": "1.2.121",
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
@@ -792,6 +792,11 @@ const launchAlgo = async (service, account, contract, numContracts, dailyTarget,
792
792
  if (hqxConnected) {
793
793
  printLog('info', 'Starting HQX Ultra-Scalping...');
794
794
  printLog('info', `Target: $${dailyTarget.toFixed(2)} | Risk: $${maxRisk.toFixed(2)}`);
795
+
796
+ // Get propfirm token for real market data
797
+ const propfirmToken = service.getToken ? service.getToken() : null;
798
+ const propfirmId = service.getPropfirm ? service.getPropfirm() : (account.propfirm || 'topstep');
799
+
795
800
  hqxServer.startAlgo({
796
801
  accountId: account.accountId,
797
802
  contractId: contract.id || contract.contractId,
@@ -799,8 +804,8 @@ const launchAlgo = async (service, account, contract, numContracts, dailyTarget,
799
804
  contracts: numContracts,
800
805
  dailyTarget: dailyTarget,
801
806
  maxRisk: maxRisk,
802
- propfirm: account.propfirm || 'projectx',
803
- propfirmToken: service.getToken ? service.getToken() : null
807
+ propfirm: propfirmId,
808
+ propfirmToken: propfirmToken
804
809
  });
805
810
  algoRunning = true;
806
811
  } else {