Add forcebuy jsonification
This commit is contained in:
parent
6e4b159611
commit
0ac434da78
@ -335,8 +335,7 @@ class ApiServer(RPC):
|
|||||||
asset = request.json.get("pair")
|
asset = request.json.get("pair")
|
||||||
price = request.json.get("price", None)
|
price = request.json.get("price", None)
|
||||||
trade = self._rpc_forcebuy(asset, price)
|
trade = self._rpc_forcebuy(asset, price)
|
||||||
# TODO: Returns a trade, we need to jsonify that.
|
return self.rest_dump(trade.to_json())
|
||||||
return self.rest_dump(trade)
|
|
||||||
|
|
||||||
@safe_rpc
|
@safe_rpc
|
||||||
def _forcesell(self):
|
def _forcesell(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user