Add dp / wallets to strategy interface

This commit is contained in:
Matthias
2018-12-26 14:32:17 +01:00
parent d3a37db79a
commit 58f1abf287
2 changed files with 14 additions and 1 deletions

View File

@@ -58,8 +58,13 @@ class FreqtradeBot(object):
self.persistence = None
self.exchange = Exchange(self.config)
self.wallets = Wallets(self.exchange)
self.dataprovider = DataProvider(self.config, self.exchange)
# Attach Dataprovider to Strategy baseclass
IStrategy.dp = self.dataprovider
# Attach Wallets to Strategy baseclass
IStrategy.wallets = self.wallets
pairlistname = self.config.get('pairlist', {}).get('method', 'StaticPairList')
self.pairlists = PairListResolver(pairlistname, self, self.config).pairlist