> This page is for TWS API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://ibkrcampus.com/docs/llms.txt.

# Cancel Individual Order

#### EClient.cancelOrder (

**orderId:** int. Specify which order should be cancelled by its identifier.

**orderCancel:** orderCancel. An OrderCancel object that can receive the manualOrderCancelTime, manualOrderIndicator, and extOperator fields. See OrderCancel Reference for more insight on the OrderCancel class.\
)

Cancels an active order placed by from the same API client ID.

**Note:** API clients cannot cancel individual orders placed by other clients. Only reqGlobalCancel is available.

#### Python

```python
self.cancelOrder(orderId, OrderCancel())
```

#### Java

```java
client.cancelOrder(cancelID, new OrderCancel());
```

#### C++

```cpp
m_pClient->cancelOrder(m_orderId-1, OrderCancel());
```

#### C\#

```csharp
client.cancelOrder(nextOrderId - 1, OrderCancel());
```

#### VB.NET

```vbnet
client.cancelOrder(nextOrderId - 1, OrderCancel)
```