Bug fixed with undefined options

This commit is contained in:
Luis Fernando Molina committed 2020-01-28 17:13:35 +01:00
1 parent 6d0dbb5149
commit a9be882138
1 file changed
+3 -2
+3 -2
View File
@@ -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) }