Update interface.py

Simplified return value, thereby including the situation where the time simply hasn't expired yet
This commit is contained in:
Erwin Hoeckx 2021-01-05 07:33:34 +01:00 committed by GitHub
parent 9a93a0876a
commit 67306d943a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -497,7 +497,7 @@ class IStrategy(ABC):
ignore_buying_expired_candle_after of %s seconds''', ignore_buying_expired_candle_after of %s seconds''',
self.ignore_buying_expired_candle_after) self.ignore_buying_expired_candle_after)
return True return True
else:
return False return False
def should_sell(self, trade: Trade, rate: float, date: datetime, buy: bool, def should_sell(self, trade: Trade, rate: float, date: datetime, buy: bool,