Test 5s offset on since

This commit is contained in:
Matthias
2020-04-01 20:04:36 +02:00
parent ff9caf790b
commit ba03d96961
2 changed files with 13 additions and 1 deletions

View File

@@ -270,7 +270,8 @@ def _download_trades_history(exchange: Exchange,
from_id = trades[-1][1] if trades else None
if trades and since < trades[-1][0]:
# Reset since to the last available point
since = trades[-1][0]
# - 5 seconds (to ensure we're getting all trades)
since = trades[-1][0] - (5 * 1000)
logger.debug("Current Start: %s", trades[0][0] if trades else 'None')
logger.debug("Current End: %s", trades[-1][0] if trades else 'None')