delete unnecessary arguments
This commit is contained in:
parent
4241caef95
commit
eed1c2344d
@ -58,7 +58,7 @@ class FreqtradeBot(object):
|
||||
|
||||
exchange_name = self.config.get('exchange', {}).get('name', 'bittrex')
|
||||
try:
|
||||
self.exchange = ExchangeResolver(exchange_name, self, self.config).exchange
|
||||
self.exchange = ExchangeResolver(exchange_name, self.config).exchange
|
||||
except ImportError:
|
||||
logger.info(
|
||||
f"No {exchange_name} specific subclass found. Using the generic class instead.")
|
||||
|
@ -17,13 +17,12 @@ class ExchangeResolver(IResolver):
|
||||
|
||||
__slots__ = ['exchange']
|
||||
|
||||
def __init__(self, exchange_name: str, freqtrade, config: dict) -> None:
|
||||
def __init__(self, exchange_name: str, config: dict) -> None:
|
||||
"""
|
||||
Load the custom class from config parameter
|
||||
:param config: configuration dictionary or None
|
||||
"""
|
||||
self.exchange = self._load_exchange(exchange_name, kwargs={'freqtrade': freqtrade,
|
||||
'config': config})
|
||||
self.exchange = self._load_exchange(exchange_name, kwargs={'config': config})
|
||||
|
||||
def _load_exchange(
|
||||
self, exchange_name: str, kwargs: dict) -> Exchange:
|
||||
|
Loading…
Reference in New Issue
Block a user