---
title: "Cancel An Open Order"
method: DELETE
path: "/iserver/account/{accountId}/order/{orderId}"
tags: ["tradingOrders"]
---

# Cancel An Open Order

`DELETE /iserver/account/{accountId}/order/{orderId}`

Cancel an existing, unfilled order.

## Path parameters

- `accountId` string, required
- `orderId` string, required

## Query parameters

- `extOperator` string
- `manualIndicator` boolean
- `manualCancelTime` string

## Response `200`

Status of submission

- union
  - OrderCancelSuccess — Acknowledges IB's acceptance of the request to cancel the order. Does not report whether the cancellation can or will ultimately be enacted.
    - `msg` 'Request was submitted' — Indicates success with value 'Request was submitted'
    - `order_id` integer — IB order ID of the order ticket requested for cancellation.
    - `conid` string — IB contract ID of the order ticket's instrument.
    - `account` string, nullable — IB account to which the order was originally set to clear.
  - OrderSubmitError — Indicates that the order reply message or submission was not accepted.
    - `error` string — Message indicating that order submission was not successful.

## Other responses

- `400` — Missing, empty, non-numeric, or out-of-range parameter. The `error` field is always prefixed with `Bad Request:`.
- `401` — Missing, invalid, or unparseable Authorization token.
- `500` — internal server error, returned when incoming request cannot be processed. It can sometimes include subset of bad requests. For example, wrong accountId passed and it can only be detected later in handling request. Error contains reason of the problem.
- `503` — service is unavailable. For example if request takes more than 10s due to some internal service unavailability, request aborted and this status returned

---

[API](https://skmtc.net/interactivebrokers/apis/api-reference.md) · [All operations](https://skmtc.net/interactivebrokers/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/interactivebrokers/api-reference/revisions/67f9f562c2c6/schema)
