mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
don't initialize with None where it's not necessary
This commit is contained in:
parent
d9e951447f
commit
32300f6d5f
|
@ -51,9 +51,9 @@ class FreqtradeBot(object):
|
||||||
|
|
||||||
# Init objects
|
# Init objects
|
||||||
self.config = config
|
self.config = config
|
||||||
self.analyze = None
|
self.analyze = Analyze(self.config)
|
||||||
self.fiat_converter = None
|
self.fiat_converter = CryptoToFiatConverter()
|
||||||
self.rpc = None
|
self.rpc: RPCManager = RPCManager(self)
|
||||||
self.persistence = None
|
self.persistence = None
|
||||||
self.exchange = None
|
self.exchange = None
|
||||||
|
|
||||||
|
@ -66,9 +66,6 @@ class FreqtradeBot(object):
|
||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
# Initialize all modules
|
# Initialize all modules
|
||||||
self.analyze = Analyze(self.config)
|
|
||||||
self.fiat_converter = CryptoToFiatConverter()
|
|
||||||
self.rpc = RPCManager(self)
|
|
||||||
|
|
||||||
persistence.init(self.config, db_url)
|
persistence.init(self.config, db_url)
|
||||||
exchange.init(self.config)
|
exchange.init(self.config)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user