---
id: "P:cAlgo.API.TradeOperation.IsExecuting"
kind: "property"
type: "T:cAlgo.API.TradeOperation"
url: "https://help.ctrader.com/ctrader-algo/references/Trading/TradeOperation/IsExecuting/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# TradeOperation.IsExecuting

Member of [TradeOperation](https://help.ctrader.com/ctrader-algo/references/Trading/TradeOperation/index.md).

## IsExecuting

True if a trade operation is being executed, false if it completed

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public bool IsExecuting {get;}
```

Python:

```python
tradeOperation.IsExecuting: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
var operation = ExecuteMarketOrderAsync(TradeType.Buy, SymbolName, 20000, "myLabel", result => Print("Completed: {0}", result.IsSuccessful));
if (operation.IsExecuting)
    Print("Trade is executing");
```

Python:

```python
operation = api.ExecuteMarketOrderAsync(TradeType.Buy, api.SymbolName, 20000, "myLabel", lambda result: api.Print(f"Completed: {result.IsSuccessful}"))
if operation.IsExecuting:
    api.Print("Trade is executing")
```

