remove the if condition for binance
This commit is contained in:
parent
85ac99aee0
commit
4005b8d1d2
@ -24,3 +24,9 @@ class Binance(Exchange):
|
|||||||
limit = min(list(filter(lambda x: limit <= x, limit_range)))
|
limit = min(list(filter(lambda x: limit <= x, limit_range)))
|
||||||
|
|
||||||
return super().get_order_book(pair, limit)
|
return super().get_order_book(pair, limit)
|
||||||
|
|
||||||
|
def validate_order_time_in_force(self, order_time_in_force: Dict) -> None:
|
||||||
|
"""
|
||||||
|
Checks if order time in force configured in strategy/config are supported
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
@ -13,7 +13,7 @@ import ccxt
|
|||||||
import ccxt.async_support as ccxt_async
|
import ccxt.async_support as ccxt_async
|
||||||
from pandas import DataFrame
|
from pandas import DataFrame
|
||||||
|
|
||||||
from freqtrade import constants, OperationalException, DependencyException, TemporaryError
|
from freqtrade import constants, DependencyException, OperationalException, TemporaryError
|
||||||
from freqtrade.data.converter import parse_ticker_dataframe
|
from freqtrade.data.converter import parse_ticker_dataframe
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
@ -269,9 +269,8 @@ 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 self.name != '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.')
|
|
||||||
|
|
||||||
def exchange_has(self, endpoint: str) -> bool:
|
def exchange_has(self, endpoint: str) -> bool:
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user