Developer Portal

Cancel OrderDELETE

Cancel a trading order for the authenticated user's account

View as Markdown
DELETE
/accounts/{account_id}/orders/{order_id}

Authorization

AuthorizationRequiredBearer <token>

JWT token obtained from the login endpoint

In: header

Path Parameters

account_idRequiredstring

The account ID where order to cancel belongs

order_idRequiredstring

Order ID to cancel

curl -X DELETE "http://localhost:8081/api/v1/accounts/<string>/orders/order_123456" \
  -H "Authorization: Bearer <token>"

Order cancelled successfully

{
  "message": "order was cancelled successfully",
  "operation_id": "orderCancelled"
}