delete unnecessary arguments

This commit is contained in:
iuvbio 2019-02-18 01:03:09 +01:00
parent 4241caef95
commit eed1c2344d
2 changed files with 3 additions and 4 deletions

View File

@ -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.")

View File

@ -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: