mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Add forcebuy jsonification
This commit is contained in:
parent
6e4b159611
commit
0ac434da78
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user