if condition refactored

This commit is contained in:
misagh 2018-12-09 16:06:00 +01:00
parent 20d794e265
commit 663e33d2ef

View File

@ -240,7 +240,7 @@ class Exchange(object):
Checks if order time in force configured in strategy/config are supported Checks if order time in force configured in strategy/config are supported
""" """
if any(v != 'gtc' for k, v in order_time_in_force.items()): if any(v != 'gtc' for k, v in order_time_in_force.items()):
if not self.name == 'Binance': if self.name is not 'Binance':
raise OperationalException( raise OperationalException(
f'Time in force policies are not supporetd for {self.name} yet.') f'Time in force policies are not supporetd for {self.name} yet.')