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

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

# Position.TradeType

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

## TradeType

Trade type (Buy/Sell) of the position.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
TradeType TradeType {get;}
```

Python:

```python
position.TradeType: TradeType
```

### Returns

`TradeType` — 

### Examples

C#:

```csharp
var position = Positions.Find("myLabel");
if (position != null)
    Print("Trade type: {0}", position.TradeType);
```

Python:

```python
position = api.Positions.Find("myLabel")
if position is not None:
    api.Print(f"Trade type: {position.TradeType}")
```

