Add limit parameter to fetch_ohlcv

This commit is contained in:
Matthias
2020-12-20 11:44:50 +01:00
parent b9f3410d8b
commit 7d2395ddb7
3 changed files with 4 additions and 1 deletions

View File

@@ -807,7 +807,8 @@ class Exchange:
)
data = await self._api_async.fetch_ohlcv(pair, timeframe=timeframe,
since=since_ms)
since=since_ms,
limit=self._ohlcv_candle_limit)
# Some exchanges sort OHLCV in ASC order and others in DESC.
# Ex: Bittrex returns the list of OHLCV in ASC order (oldest first, newest last)