Guides
Guides

Cancel order by id

Cancel a specific order using its unique ID.

Request

curl -X DELETE "https://trade.mudrex.com/fapi/v1/futures/orders/{order_id}" \
  -H "X-Authentication: your-secret-key"

Parameters

ParameterTypeRequiredDescription
order_idstringYesThe unique identifier of the order (path parameter)

Response

{
    "success": true,
    "data": {
        "message": "Order cancelled successfully",
        "order_id": "0199c7e7-628f-75e0-8212-d02f6e3b1c7a",
        "status": "CANCELLED"
    }
}

Parameters

ParameterDescription
messageStatus message
order_idID of the cancelled order
statusStatus of the order (e.g., CANCELLED)

Common errors

Order already deleted

Status: 400 Bad Request

Occurs when attempting to delete an order that has already been cancelled or deleted.

Invalid order ID

Status: 500 Internal Server Error

Occurs when the provided order ID is invalid or malformed.