Don't use future date for downloading new trade data

closes #8860
This commit is contained in:
Matthias 2023-07-07 11:23:34 +02:00
parent 65550335ee
commit a9e239ca7a

View File

@ -354,7 +354,7 @@ def _download_trades_history(exchange: Exchange,
trades = []
if not since:
since = int((datetime.now() - timedelta(days=-new_pairs_days)).timestamp()) * 1000
since = int((datetime.now() - timedelta(days=new_pairs_days)).timestamp()) * 1000
from_id = trades[-1][1] if trades else None
if trades and since < trades[-1][0]: