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 +1 -1
- package/src/pages/algo.js +7 -2
package/package.json
CHANGED
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:
|
|
803
|
-
propfirmToken:
|
|
807
|
+
propfirm: propfirmId,
|
|
808
|
+
propfirmToken: propfirmToken
|
|
804
809
|
});
|
|
805
810
|
algoRunning = true;
|
|
806
811
|
} else {
|