if condition refactored
This commit is contained in:
parent
20d794e265
commit
663e33d2ef
@ -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.')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user