genericize the options hash more
This commit is contained in:
1 parent
f99a1d2f5d
commit
6260efcff6
1 file changed
+3
-5
+3
-5
@@ -29,7 +29,6 @@
|
||||
let secret
|
||||
let uid
|
||||
let password
|
||||
let brokerId
|
||||
let sandBox = TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.parentNode.parentNode.config.sandbox || false;
|
||||
|
||||
if (TS.projects.foundations.globals.taskConstants.TASK_NODE.keyReference !== undefined) {
|
||||
@@ -38,7 +37,7 @@
|
||||
secret = TS.projects.foundations.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.secret
|
||||
uid = TS.projects.foundations.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.uid
|
||||
password = TS.projects.foundations.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.password
|
||||
brokerId = TS.projects.foundations.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.brokerId
|
||||
options = TS.projects.foundations.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.options
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,12 +45,11 @@
|
||||
case 'okex':
|
||||
case 'okex3':
|
||||
case 'okex5':
|
||||
if (brokerId === undefined) {
|
||||
brokerId = 'c77ccd60ec7b4cBC'
|
||||
if (options.brokerId === undefined) {
|
||||
options.brokerId = 'c77ccd60ec7b4cBC'
|
||||
}
|
||||
break;
|
||||
}
|
||||
options.brokerId = brokerId
|
||||
|
||||
const exchangeClass = ccxt[exchangeId]
|
||||
const exchangeConstructorParams = {
|
||||
|
||||
Reference in new issue
Block a user