Improve api response

This commit is contained in:
Matthias
2020-08-04 19:43:05 +02:00
parent b954af33cf
commit 9163c7f3d3
2 changed files with 18 additions and 3 deletions

View File

@@ -431,6 +431,10 @@ class ApiServer(RPC):
def _trades_delete(self, tradeid):
"""
Handler for DELETE /trades/<tradeid> endpoint.
Removes the trade from the database (tries to cancel open orders first!)
get:
param:
tradeid: Numeric trade-id assigned to the trade.
"""
result = self._rpc_delete(tradeid)
return self.rest_dump(result)