Fix wrong key usage in trade_history_timebased

This commit is contained in:
Matthias
2021-01-07 20:03:34 +01:00
parent 7a628432a8
commit bf182dc01e
3 changed files with 19 additions and 18 deletions

View File

@@ -936,7 +936,7 @@ class Exchange:
while True:
t = await self._async_fetch_trades(pair, since=since)
if len(t):
since = t[-1][1]
since = t[-1][0]
trades.extend(t)
# Reached the end of the defined-download period
if until and t[-1][0] > until: