diff --git a/.vs/AABruce-Indicator-Bot/v15/.suo b/.vs/AABruce-Indicator-Bot/v15/.suo index d11cabaa1..a68a558fe 100644 Binary files a/.vs/AABruce-Indicator-Bot/v15/.suo and b/.vs/AABruce-Indicator-Bot/v15/.suo differ diff --git a/One-Min-Daily-Candles-Volumes/User.bot.js b/One-Min-Daily-Candles-Volumes/User.bot.js index ee1ec8ef8..2adc59a85 100644 --- a/One-Min-Daily-Candles-Volumes/User.bot.js +++ b/One-Min-Daily-Candles-Volumes/User.bot.js @@ -32,8 +32,8 @@ start: start }; - let charlyFileStorage = AZURE_FILE_STORAGE.newFileStorage(bot); - let bruceFileStorage = AZURE_FILE_STORAGE.newFileStorage(bot); + let charlyFileStorage = FILE_STORAGE.newFileStorage(bot); + let bruceFileStorage = FILE_STORAGE.newFileStorage(bot); let utilities = UTILITIES.newUtilities(bot); @@ -196,7 +196,7 @@ /* Next Status Report */ - reportKey = "AAMasters" + "-" + "AACharly" + "-" + "Poloniex-Hole-Fixing" + "-" + "dataSet.V1" + "-" + year + "-" + month;; + reportKey = "AAMasters" + "-" + "AACharly" + "-" + "Poloniex-Hole-Fixing" + "-" + "dataSet.V1" + "-" + year + "-" + month; if (FULL_LOG === true) { logger.write("[INFO] start -> getContextVariables -> reportKey = " + reportKey); } thisReport = dependencies.statusReports.get(reportKey).file; @@ -213,7 +213,7 @@ return; } - if (statusReport.monthChecked === true) { + if (thisReport.monthChecked === true) { lastFileWithoutHoles = new Date(); // We need this with a valid value. @@ -226,7 +226,7 @@ if (atHeadOfMarket === true) { - lastFileWithoutHoles = new Date(statusReport.lastFile.year + "-" + statusReport.lastFile.month + "-" + statusReport.lastFile.days + " " + statusReport.lastFile.hours + ":" + statusReport.lastFile.minutes + GMT_SECONDS); + lastFileWithoutHoles = new Date(thisReport.lastFile.year + "-" + thisReport.lastFile.month + "-" + thisReport.lastFile.days + " " + thisReport.lastFile.hours + ":" + thisReport.lastFile.minutes + GMT_SECONDS); getOneMinDailyCandlesVolumes(); } else { @@ -243,9 +243,9 @@ /* Final Status Report */ - reportKey = "AAMasters" + "-" + "AACharly" + "-" + "One-Min-Daily-Candles-Volumes" + "-" + "dataSet.V1" + "-" + year + "-" + month; + reportKey = "AAMasters" + "-" + "AABruce" + "-" + "One-Min-Daily-Candles-Volumes" + "-" + "dataSet.V1" + "-" + year + "-" + month; if (FULL_LOG === true) { logger.write("[INFO] start -> getContextVariables -> reportKey = " + reportKey); } - holeFixingStatusReport = dependencies.statusReports.get(reportKey).file; + thisReport = dependencies.statusReports.get(reportKey).file; if (thisReport.lastFile === undefined) { logger.write("[WARN] start -> getContextVariables -> Undefined Last File. -> reportKey = " + reportKey); @@ -256,7 +256,7 @@ return; } - if (statusReport.monthCompleted === true) { + if (thisReport.monthCompleted === true) { logger.write("[WARN] start -> getContextVariables -> The current year / month was already fully processed."); @@ -270,16 +270,16 @@ } else { - lastCandleFile = new Date(statusReport.lastFile.year + "-" + statusReport.lastFile.month + "-" + statusReport.lastFile.days + " " + "00:00" + GMT_SECONDS); - lastCandleClose = statusReport.candleClose; + lastCandleFile = new Date(thisReport.lastFile.year + "-" + thisReport.lastFile.month + "-" + thisReport.lastFile.days + " " + "00:00" + GMT_SECONDS); + lastCandleClose = thisReport.candleClose; - if (statusReport.fileComplete === true) { + if (thisReport.fileComplete === true) { buildCandles(); } else { - lastTradeFile = new Date(statusReport.lastTradeFile.year + "-" + statusReport.lastTradeFile.month + "-" + statusReport.lastTradeFile.days + " " + statusReport.lastTradeFile.hours + ":" + statusReport.lastTradeFile.minutes + GMT_SECONDS); + lastTradeFile = new Date(thisReport.lastTradeFile.year + "-" + thisReport.lastTradeFile.month + "-" + thisReport.lastTradeFile.days + " " + thisReport.lastTradeFile.hours + ":" + thisReport.lastTradeFile.minutes + GMT_SECONDS); findPreviousContent(); } } diff --git a/this.bot.config.json b/this.bot.config.json index 132d337bb..eccb0cd9a 100644 --- a/this.bot.config.json +++ b/this.bot.config.json @@ -15,12 +15,12 @@ "description": "Produces two data-sets with candles and volumes for all markets at Poloniex.", "startMode": { "allMonths": { - "run": "true", + "run": "false", "minYear": "2014", "maxYear": "2018" }, "oneMonth": { - "run": "false", + "run": "true", "year": "2018", "month": "2" }, @@ -51,7 +51,8 @@ "minor": 0 }, "process": "Poloniex-Hole-Fixing", - "dataSetVersion": "dataSet.V1" + "dataSetVersion": "dataSet.V1", + "dataSetSection": "Month" }, { "devTeam": "AAMasters",