Cancel Order
DELETE/portfolio/orders/:order_id
Endpoint for canceling orders. The value for the orderId should match the id field of the order you want to decrease. Commonly, DELETE-type endpoints return 204 status with no body content on success. But we can't completely delete the order, as it may be partially filled already. Instead, the DeleteOrder endpoint reduce the order completely, essentially zeroing the remaining resting contracts on it. The zeroed order is returned on the response payload as a form of validation for the client.
Request
Responses
- 200
- 401
- 404
- 500
Order cancelled successfully
Unauthorized - authentication required
Resource not found
Internal server error