Merge pull request #1733 from Smidy13/develop

Bug Fix: Fast Forward into the Future
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-09-12 05:32:50 -04:00
commit 7e0a6c7197
1 file changed
+4
@@ -494,6 +494,10 @@
while (foundDate !== true) {
if (new Date(since).valueOf() >= (new Date).setSeconds(0,0)) {
return OHLCVs
}
await new Promise(resolve => setTimeout(resolve, rateLimit)) // rate limit
const nextValidOHLCVs = useFetchTradesForFetchOHLCVs ?
await fetchTradesForOHLCV(symbol, '1m', since, limit, params) :