Guides
Guides

Cancel order by id

Cancel a specific order using its unique ID.

The order's currency is inherited from its UUID.

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

Status: 200 OK

{
    "success": true,
    "data": {
        "message": "",
        "order_id": "",
        "status": ""
    }
}

Response fields

FieldDescription
messageStatus message.
order_idID of the cancelled order.
statusStatus of the order.

In testing, a successful INR cancellation returned 200 OK with these data fields present but empty.

Errors

Common errors

Order already deleted400 Bad Request. Occurs when the order has already been cancelled or deleted.

Invalid order ID500 Internal Server Error. Occurs when the provided order ID is invalid or malformed.