hedgequantx 1.2.105 → 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 +1 -1
- package/src/pages/algo.js +8 -3
package/package.json
CHANGED
package/src/pages/algo.js
CHANGED
|
@@ -419,7 +419,7 @@ const selectSymbolMenu = async (service, account) => {
|
|
|
419
419
|
}
|
|
420
420
|
]);
|
|
421
421
|
|
|
422
|
-
const displayAccountName = showAccountName ? accountName : '
|
|
422
|
+
const displayAccountName = showAccountName ? accountName : 'HQX *****';
|
|
423
423
|
|
|
424
424
|
// Confirmation
|
|
425
425
|
console.log();
|
|
@@ -459,7 +459,7 @@ const selectSymbolMenu = async (service, account) => {
|
|
|
459
459
|
*/
|
|
460
460
|
const launchAlgo = async (service, account, contract, numContracts, dailyTarget, maxRisk, showAccountName = true) => {
|
|
461
461
|
const realAccountName = account.accountName || account.name || 'Account #' + account.accountId;
|
|
462
|
-
const accountName = showAccountName ? realAccountName : '
|
|
462
|
+
const accountName = showAccountName ? realAccountName : 'HQX *****';
|
|
463
463
|
const symbolName = contract.name || contract.symbol || contract.id;
|
|
464
464
|
const symbol = contract.symbol || contract.id;
|
|
465
465
|
|
|
@@ -773,7 +773,12 @@ const launchAlgo = async (service, account, contract, numContracts, dailyTarget,
|
|
|
773
773
|
});
|
|
774
774
|
|
|
775
775
|
hqxServer.on('log', (data) => {
|
|
776
|
-
|
|
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) => {
|