Use available config object

Co-authored-by: hroff-1902 <47309513+hroff-1902@users.noreply.github.com>
This commit is contained in:
Matthias 2020-05-12 13:39:24 +02:00 committed by GitHub
parent aa25461e88
commit 77c9334c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ class RPC:
'ticker_interval': config['ticker_interval'], 'ticker_interval': config['ticker_interval'],
'exchange': config['exchange']['name'], 'exchange': config['exchange']['name'],
'strategy': config['strategy'], 'strategy': config['strategy'],
'forcebuy_enabled': self._freqtrade.config.get('forcebuy_enable', False), 'forcebuy_enabled': config.get('forcebuy_enable', False),
'state': str(self._freqtrade.state) 'state': str(self._freqtrade.state)
} }
return val return val