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

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

# Position.Channel

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

## Channel

Gets the channel via which the position was placed in a `string` format.

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: Trades the cBot sends carry channel 'cBot Console' instead of the desktop 'cBot cTrader'.
- Cloud: Trades the cBot sends carry channel 'cBot Cloud' instead of the desktop 'cBot cTrader'.

C#:

```csharp
string Channel {get;}
```

Python:

```python
position.Channel: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
foreach (var position in Positions)
    Print("Position {0} channel: {1}", position.Id, position.Channel);
```

Python:

```python
for position in api.Positions:
    api.Print(f"Position {position.Id} channel: {position.Channel}")
```

