Fix subtle bug in trades download

This commit is contained in:
Matthias 2022-04-30 17:44:57 +02:00
parent e49b3ef051
commit 8b5d454b50

View File

@ -323,8 +323,9 @@ def _download_trades_history(exchange: Exchange,
try:
until = None
if (timerange and timerange.starttype == 'date'):
since = timerange.startts * 1000
if timerange:
if timerange.starttype == 'date':
since = timerange.startts * 1000
if timerange.stoptype == 'date':
until = timerange.stopts * 1000
else: