From a9be8821384583598e379be9baa6bee2327da39e Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 28 Jan 2020 17:13:35 +0100 Subject: [PATCH] Bug fixed with undefined options --- Historic-Trades/User.Bot.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Historic-Trades/User.Bot.js b/Historic-Trades/User.Bot.js index 257c52365..3ea44dd0f 100644 --- a/Historic-Trades/User.Bot.js +++ b/Historic-Trades/User.Bot.js @@ -54,7 +54,7 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, fileSt } let exchangeId = bot.exchange.toLowerCase() - let options + let options = {} let fetchType = "by Time" let lastId let firstId @@ -97,7 +97,7 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, fileSt verbose: false, options: options } - //console.log(JSON.stringify(exchangeConstructorParams)) + console.log(JSON.stringify(exchangeConstructorParams)) const exchange = new exchangeClass(exchangeConstructorParams) begin() @@ -210,6 +210,7 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, fileSt } /* Fetching the trades from the exchange.*/ + console.log(JSON.stringify("PARAMS ", params)) const trades = await exchange.fetchTrades(symbol, since, limit, params) if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] start -> getTrades -> Trades Fetched = " + trades.length) }