diff --git a/.vs/AAOlivia/v15/.suo b/.vs/AAOlivia/v15/.suo index 1c704d142..eb80a98c8 100644 Binary files a/.vs/AAOlivia/v15/.suo and b/.vs/AAOlivia/v15/.suo differ diff --git a/Index-Files/Interval.js b/Index-Files/Interval.js index ed3064654..31995c44e 100644 --- a/Index-Files/Interval.js +++ b/Index-Files/Interval.js @@ -454,8 +454,6 @@ Read the candles and volumes from Bruce and produce a single Index File for each previousVolumes = volumesFile; - lastCandleFile = new Date(lastCandleFile.valueOf() - ONE_DAY_IN_MILISECONDS); // We know that after the next call a new day will be added. - buildCandles(previousCandles, previousVolumes); } catch (err) { @@ -529,11 +527,15 @@ Read the candles and volumes from Bruce and produce a single Index File for each lastCandleFile = new Date(lastCandleFile.valueOf() + ONE_DAY_IN_MILISECONDS); + const logText = "[INFO] New processing time @ " + lastCandleFile.getUTCFullYear() + "/" + (lastCandleFile.getUTCMonth() + 1) + "/" + lastCandleFile.getUTCDate() + "."; + console.log(logText); + logger.write(logText); + /* Validation that we are not going past the head of the market. */ if (lastCandleFile.valueOf() > maxCandleFile.valueOf()) { - const logText = "[INFO] 'buildCandles' - Head of the market found at " + filePath + " for market " + market.assetA + '_' + market.assetB + ". "; + const logText = "[INFO] 'buildCandles' - Head of the market found @ " + lastCandleFile.getUTCFullYear() + "/" + (lastCandleFile.getUTCMonth() + 1) + "/" + lastCandleFile.getUTCDate() + "."; logger.write(logText); closeAndOpenMarket(); @@ -630,10 +632,9 @@ Read the candles and volumes from Bruce and produce a single Index File for each indexCandles.push(indexCandle); + nextVolumeFile(); + } - - nextVolumeFile(); - } function nextVolumeFile() { @@ -701,12 +702,9 @@ Read the candles and volumes from Bruce and produce a single Index File for each indexVolumes.push(indexVolume); + writeFiles(lastCandleFile, indexCandles, indexVolumes, advanceTime); } - - writeFiles(lastCandleFile, indexCandles, indexVolumes, advanceTime); - } - } catch (err) { @@ -841,7 +839,7 @@ Read the candles and volumes from Bruce and produce a single Index File for each try { - let reportFilePath = EXCHANGE_NAME + "/Processes/" + bot.process + "/" + year + "/" + month; + let reportFilePath = EXCHANGE_NAME + "/Processes/" + bot.process; utilities.createFolderIfNeeded(reportFilePath, oliviaAzureFileStorage, onFolderCreated); diff --git a/obj/Debug/AAOlivia.njsproj.FileListAbsolute.txt b/obj/Debug/AAOlivia.njsproj.FileListAbsolute.txt new file mode 100644 index 000000000..161df654f --- /dev/null +++ b/obj/Debug/AAOlivia.njsproj.FileListAbsolute.txt @@ -0,0 +1,3 @@ +c:\users\luis\source\repos\AAOlivia\obj\Debug\AAOlivia.njsprojResolveAssemblyReference.cache +c:\users\luis\source\repos\AAOlivia\obj\Debug\AAOlivia.njsproj.CoreCompileInputs.cache +c:\users\luis\source\repos\AAOlivia\bin\Microsoft.NodejsTools.WebRole.dll