Extend tests

This commit is contained in:
Matthias
2019-09-28 13:35:25 +02:00
parent 9f8a2acf46
commit 762ae3a598
2 changed files with 93 additions and 10 deletions

View File

@@ -813,7 +813,8 @@ class Exchange:
if from_id == t[-1]['id'] or t[-1]['timestamp'] > until:
logger.debug(f"Stopping because from_id did not change. "
f"Reached {t[-1]['timestamp']} > {until}")
# Reached the end of the defined-download period
# Reached the end of the defined-download period - add last trade as well.
trades.extend(t[-1:])
break
from_id = t[-1]['id']