diff --git a/Hole-Fixing/User.Bot.js b/Hole-Fixing/User.Bot.js index 9644dbc9a..f0352b276 100644 --- a/Hole-Fixing/User.Bot.js +++ b/Hole-Fixing/User.Bot.js @@ -139,7 +139,7 @@ let currentDate; // This will hold the current datetime of each execution. - let market = global.MARKET; + let market = bot.market; let dateForPath; let filePath; diff --git a/Live-Trades/User.Bot.js b/Live-Trades/User.Bot.js index cac0872a6..17f9b5988 100644 --- a/Live-Trades/User.Bot.js +++ b/Live-Trades/User.Bot.js @@ -71,7 +71,7 @@ if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] start -> Entering function."); } - let market = global.MARKET; + let market = bot.market; let currentDate; // This will hold the current datetime of each execution. let previousMinute; // This hold the current time minus 60 seconds.