using items()

This commit is contained in:
Misagh 2019-03-25 09:48:41 +01:00
parent a8be277ca0
commit fd7278517d

View File

@ -468,10 +468,10 @@ class RPC(object):
return [
{
'Pair': pair,
'Winrate': self._freqtrade.edge._cached_pairs[pair].winrate,
'Expectancy': self._freqtrade.edge._cached_pairs[pair].expectancy,
'Stoploss': self._freqtrade.edge._cached_pairs[pair].stoploss,
'Pair': k,
'Winrate': v.winrate,
'Expectancy': v.expectancy,
'Stoploss': v.stoploss,
}
for pair in self._freqtrade.edge._cached_pairs
for k, v in self._freqtrade.edge._cached_pairs.items()
]