Receiving Parameters

This commit is contained in:
Luis Fernando Molina committed 2019-06-06 17:23:44 +02:00
1 parent 843f0ce046
commit 30f80afd82
1 file changed
+3 -3
+3 -3
View File
@@ -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)