hedgequantx 1.2.106 → 1.2.107

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.106",
3
+ "version": "1.2.107",
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
@@ -773,7 +773,12 @@ const launchAlgo = async (service, account, contract, numContracts, dailyTarget,
773
773
  });
774
774
 
775
775
  hqxServer.on('log', (data) => {
776
- printLog(data.type || 'info', data.message);
776
+ let message = data.message;
777
+ // If account name is hidden, filter it from logs too
778
+ if (!showAccountName && realAccountName) {
779
+ message = message.replace(new RegExp(realAccountName, 'gi'), 'HQX *****');
780
+ }
781
+ printLog(data.type || 'info', message);
777
782
  });
778
783
 
779
784
  hqxServer.on('signal', (data) => {