fix method return value

This commit is contained in:
Ork Blutt 2020-04-06 16:07:43 +02:00
parent 2444fb9cd6
commit 200111fef6

View File

@ -227,7 +227,7 @@ class RPC:
] ]
def _rpc_trade_history( def _rpc_trade_history(
self, limit: int) -> Dict[str, List[Dict[str, Any]]]: self, limit: int) -> Dict:
""" Returns the X last trades """ """ Returns the X last trades """
if limit > 0: if limit > 0:
trades = Trade.get_trades().order_by(Trade.id.desc()).limit(limit) trades = Trade.get_trades().order_by(Trade.id.desc()).limit(limit)