fix return value

This commit is contained in:
Ork Blutt 2020-04-05 17:03:51 +02:00
parent 15c45b984d
commit 8555c5b211

View File

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