Make /stats working

This commit is contained in:
Matthias
2020-12-05 14:06:46 +01:00
parent 8f61b68b2a
commit c556d1b37e
2 changed files with 15 additions and 10 deletions

View File

@@ -275,6 +275,10 @@ class RPC:
"trades_count": len(output)
}
def _rpc_stats(self):
trades = trades = Trade.get_trades([Trade.is_open.is_(False)])
return trades
def _rpc_trade_statistics(
self, stake_currency: str, fiat_display_currency: str) -> Dict[str, Any]:
""" Returns cumulative profit statistics """