Add rpc_whitelist call

This commit is contained in:
Matthias
2018-11-10 20:07:09 +01:00
parent 2e4e5c86da
commit 02527eeea4
2 changed files with 32 additions and 0 deletions

View File

@@ -443,3 +443,10 @@ class RPC(object):
raise RPCException('trader is not running')
return Trade.query.filter(Trade.is_open.is_(True)).all()
def _rpc_whitelist(self) -> Dict:
""" Returns the currently active whitelist"""
res = {'method': self._freqtrade.config.get('dynamic_whitelist', 0) or 'static',
'whitelist': self._freqtrade.active_pair_whitelist
}
return res