From 30f80afd82237e5d4ee1e4851fc525d55c689a8c Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 6 Jun 2019 17:23:44 +0200 Subject: [PATCH] Receiving Parameters --- Commons.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Commons.js b/Commons.js index 10fc39b22..a3abcabc7 100644 --- a/Commons.js +++ b/Commons.js @@ -71,7 +71,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] runSimulation -> Entering function."); } - tradingSystem.strategies = await getStrategies(); + tradingSystem = await getTradingSystem(); /* Initial Values */ @@ -1586,7 +1586,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { } } - async function getStrategies() { + async function getTradingSystem() { try { @@ -1622,7 +1622,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { if (strategizerResponse.data.errors) throw new Error(strategizerResponse.data.errors[0].message) - return strategizerResponse.data.data.strategizer_TradingSystemByFb.data.strategies; + return strategizerResponse.data.data.strategizer_TradingSystemByFb.data; } catch (error) { throw new Error('There has been an error getting the strategy to run on the simulator. Error: ' + error)