Multi-Exchange Keys
This commit is contained in:
1 parent
1b9da5763b
commit
b6b87282b0
3 files changed
+6
-3
No files matched your search
+1
-1
@@ -29,7 +29,7 @@
|
||||
|
||||
if (global.LOG_CONTROL[MODULE_NAME].logInfo === true) { logger.write(MODULE_NAME, "[INFO] initialize -> Entering function."); }
|
||||
|
||||
poloniexApiClient = POLONIEX_CLIENT_MODULE.newPoloniexAPIClient(global.EXCHANGE_KEYS[global.EXCHANGE_NAME].Key, global.EXCHANGE_KEYS[global.EXCHANGE_NAME].Secret);
|
||||
poloniexApiClient = POLONIEX_CLIENT_MODULE.newPoloniexAPIClient(global.EXCHANGE_KEYS[global.EXCHANGE_NAME][bot.instanceIndex].Key, global.EXCHANGE_KEYS[global.EXCHANGE_NAME][bot.instanceIndex].Secret);
|
||||
|
||||
callBackFunction(global.DEFAULT_OK_RESPONSE);
|
||||
|
||||
|
||||
@@ -836,6 +836,8 @@ exports.newRoot = function newRoot() {
|
||||
botConfig.filePathRoot = botConfig.devTeam + "/" + botConfig.codeName + "-" + clonName + "/" + global.PLATFORM_CONFIG.codeName + "." + global.PLATFORM_CONFIG.version.major + "." + global.PLATFORM_CONFIG.version.minor + "/" + global.EXCHANGE_NAME + "/" + botConfig.dataSetVersion;
|
||||
|
||||
botConfig.instance = "Clon" + clonKey;
|
||||
botConfig.instanceIndex = i;
|
||||
|
||||
setTimeout(execute, i * Math.random() * 10 * 1000);
|
||||
|
||||
function execute() {
|
||||
@@ -850,6 +852,7 @@ exports.newRoot = function newRoot() {
|
||||
|
||||
let genes = {};
|
||||
pBotConfig.instance = "Master";
|
||||
pBotConfig.instanceIndex = 0;
|
||||
|
||||
createBotInstance(genes, 1, pBotConfig);
|
||||
|
||||
|
||||
Reference in new issue
Block a user