filtering edge pairs for RPC

This commit is contained in:
Misagh
2019-04-03 14:03:28 +02:00
parent 478c149bbb
commit 53eaf85969
3 changed files with 19 additions and 11 deletions

View File

@@ -484,13 +484,4 @@ class RPC(object):
""" Returns information related to Edge """
if not self._freqtrade.edge:
raise RPCException(f'Edge is not enabled.')
return [
{
'Pair': k,
'Winrate': v.winrate,
'Expectancy': v.expectancy,
'Stoploss': v.stoploss,
}
for k, v in self._freqtrade.edge._cached_pairs.items()
]
return self._freqtrade.edge.accepted_pairs()