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

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

# Position.Label

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

## Label

Label can be used to represent the order.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
string Label {get;}
```

Python:

```python
position.Label: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
var result = ExecuteMarketOrder(TradeType.Sell, SymbolName, 10000, "myLabel");
if (result.IsSuccessful)
    Print("Position {0} is open", result.Position.Label);
```

Python:

```python
result = api.ExecuteMarketOrder(TradeType.Sell, api.SymbolName, 10000, "myLabel")
if result.IsSuccessful:
    api.Print(f"Position {result.Position.Label} is open")
```

