Bug fixed> when there was a hole and no trades can be get from before the last known good id

This commit is contained in:
Luis Fernando Molina committed 2019-04-01 12:54:24 +02:00
1 parent 7466493d44
commit 46e4685790
1 file changed
+7
+7
View File
@@ -1065,6 +1065,13 @@
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] start -> tradesReadyToBeSaved -> nextRecord -> Entering function."); }
if (filesToSave.length === 0) {
logger.write(MODULE_NAME, "[INFO] start -> tradesReadyToBeSaved -> nextRecord -> No file to save.");
controlLoop();
return
}
let fileName = '' + market.assetA + '_' + market.assetB + '.json';
date = new Date(filesToSave[i].datetime * 60 * 1000);