From b7ac28b5c72c31d822aa4adaf5f9b6ffa617f659 Mon Sep 17 00:00:00 2001 From: ssplatt Date: Thu, 8 Apr 2021 12:51:10 -0400 Subject: [PATCH] add password to api key config --- .../Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Projects/Superalgos/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js b/Projects/Superalgos/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js index cdb03a1e7..8f959839a 100644 --- a/Projects/Superalgos/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js +++ b/Projects/Superalgos/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js @@ -28,12 +28,14 @@ let key let secret let uid + let password if (TS.projects.superalgos.globals.taskConstants.TASK_NODE.keyReference !== undefined) { if (TS.projects.superalgos.globals.taskConstants.TASK_NODE.keyReference.referenceParent !== undefined) { key = TS.projects.superalgos.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.codeName secret = TS.projects.superalgos.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.secret uid = TS.projects.superalgos.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.uid + password = TS.projects.superalgos.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.password } } const exchangeClass = ccxt[exchangeId] @@ -41,6 +43,7 @@ 'apiKey': key, 'secret': secret, 'uid': uid, + 'password': password, 'timeout': 30000, 'enableRateLimit': true, verbose: false, @@ -263,3 +266,4 @@ TS.projects.superalgos.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME, '[ERROR] ' + message) } }; +