add password to api key config
This commit is contained in:
1 parent
45254f3f10
commit
b7ac28b5c7
1 file changed
+4
+4
@@ -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)
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user