diff --git a/Projects/Foundations/TS/Bot-Modules/Sensor-Bot/Exchange-Raw-Data/HistoricOHLCVs.js b/Projects/Foundations/TS/Bot-Modules/Sensor-Bot/Exchange-Raw-Data/HistoricOHLCVs.js index 08525fa48..0e8fb55fc 100644 --- a/Projects/Foundations/TS/Bot-Modules/Sensor-Bot/Exchange-Raw-Data/HistoricOHLCVs.js +++ b/Projects/Foundations/TS/Bot-Modules/Sensor-Bot/Exchange-Raw-Data/HistoricOHLCVs.js @@ -494,8 +494,7 @@ while (foundDate !== true) { - /* If we are in the future then return the current (blank) array */ - if (new Date(since) <= new Date) { + if (new Date(since).valueOf() >= (new Date).setSeconds(0,0)) { return OHLCVs }