Add forcebuy jsonification

This commit is contained in:
Matthias 2019-05-08 07:12:37 +02:00
parent 6e4b159611
commit 0ac434da78

View File

@ -335,8 +335,7 @@ class ApiServer(RPC):
asset = request.json.get("pair")
price = request.json.get("price", None)
trade = self._rpc_forcebuy(asset, price)
# TODO: Returns a trade, we need to jsonify that.
return self.rest_dump(trade)
return self.rest_dump(trade.to_json())
@safe_rpc
def _forcesell(self):