Multi-Exchange Keys

This commit is contained in:
Luis Fernando Molina committed 2018-07-28 15:28:16 +02:00
1 parent 1b9da5763b
commit b6b87282b0
3 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -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);
+3
View File
@@ -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);
+2 -2
View File
@@ -99,10 +99,10 @@ function readExchangeAPIKey() {
console.log("[HINT] You need to have a file at this path -> " + filePath);
global.EXCHANGE_KEYS = {
Poloniex: {
Poloniex: [{
Key: "",
Secret: ""
}
}]
}
startRoot();