Merge pull request #1733 from Smidy13/develop
Bug Fix: Fast Forward into the Future
This commit is contained in:
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) :
|
||||
|
||||
Reference in new issue
Block a user