diff --git a/Projects/Algorithmic-Trading/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js b/Projects/Algorithmic-Trading/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js index 5f7a3f76b..0d6638582 100644 --- a/Projects/Algorithmic-Trading/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js +++ b/Projects/Algorithmic-Trading/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js @@ -24,6 +24,7 @@ tradingSystem = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).SIMULATION_STATE.tradingSystem exchangeId = TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.parentNode.parentNode.config.codeName + options = TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.parentNode.parentNode.config.options let key let secret @@ -39,6 +40,17 @@ password = TS.projects.foundations.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.password } } + + switch (exchangeId) { + case 'okex': + case 'okex3': + case 'okex5': + if (options.brokerId === undefined) { + options.brokerId = 'c77ccd60ec7b4cBC' + } + break; + } + const exchangeClass = ccxt[exchangeId] const exchangeConstructorParams = { 'apiKey': key,