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

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

# TradeOperation.TradeResult

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

## TradeResult

The result of a trade operation

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public TradeResult TradeResult {get;}
```

Python:

```python
tradeOperation.TradeResult: TradeResult
```

### Returns

`TradeResult` — 

### Examples

C#:

```csharp
var operation = ExecuteMarketOrderAsync(TradeType.Buy, SymbolName, 20000, "myLabel", result => Print("Callback: {0}", result.IsSuccessful));
if (!operation.IsExecuting && operation.TradeResult.IsSuccessful)
    Print("Trade {0} executed", operation.TradeResult.Position.Label);
```

Python:

```python
operation = api.ExecuteMarketOrderAsync(TradeType.Buy, api.SymbolName, 20000, "myLabel", lambda result: api.Print(f"Callback: {result.IsSuccessful}"))
if not operation.IsExecuting and operation.TradeResult.IsSuccessful:
    api.Print(f"Trade {operation.TradeResult.Position.Label} executed")
```

