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:
1 parent
7466493d44
commit
46e4685790
1 file changed
+7
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user