Allow timeout of 0

This commit is contained in:
Matthias 2019-11-13 19:38:38 +01:00
parent 2eb6513251
commit 68904296e7

View File

@ -761,7 +761,7 @@ class FreqtradeBot:
"""
timeout = self.config.get('unfilledtimeout', {}).get(side)
ordertime = arrow.get(order['datetime']).datetime
if timeout:
if timeout is not None:
timeout_threshold = arrow.utcnow().shift(minutes=-timeout).datetime
return (order['status'] == 'open' and order['side'] == side