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')
|
exchange_name = self.config.get('exchange', {}).get('name', 'bittrex')
|
||||||
try:
|
try:
|
||||||
self.exchange = ExchangeResolver(exchange_name, self, self.config).exchange
|
self.exchange = ExchangeResolver(exchange_name, self.config).exchange
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.info(
|
logger.info(
|
||||||
f"No {exchange_name} specific subclass found. Using the generic class instead.")
|
f"No {exchange_name} specific subclass found. Using the generic class instead.")
|
||||||
|
@ -17,13 +17,12 @@ class ExchangeResolver(IResolver):
|
|||||||
|
|
||||||
__slots__ = ['exchange']
|
__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
|
Load the custom class from config parameter
|
||||||
:param config: configuration dictionary or None
|
:param config: configuration dictionary or None
|
||||||
"""
|
"""
|
||||||
self.exchange = self._load_exchange(exchange_name, kwargs={'freqtrade': freqtrade,
|
self.exchange = self._load_exchange(exchange_name, kwargs={'config': config})
|
||||||
'config': config})
|
|
||||||
|
|
||||||
def _load_exchange(
|
def _load_exchange(
|
||||||
self, exchange_name: str, kwargs: dict) -> Exchange:
|
self, exchange_name: str, kwargs: dict) -> Exchange:
|
||||||
|
Loading…
Reference in New Issue
Block a user