From a8e3c399bbc7c43160f671f20f58d68f7d6109e2 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 30 Mar 2021 21:18:16 +0200 Subject: [PATCH] BUG FIX: uid not defined after change for Bitstamp --- .../Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 01766b1da..cdb03a1e7 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 @@ -27,19 +27,20 @@ let key let secret + let uid 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 + uid = TS.projects.superalgos.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.uid } } const exchangeClass = ccxt[exchangeId] const exchangeConstructorParams = { 'apiKey': key, 'secret': secret, - 'uid' : uid, + 'uid': uid, 'timeout': 30000, 'enableRateLimit': true, verbose: false,