---
id: "P:cAlgo.API.ChartContainer.Id"
kind: "property"
type: "T:cAlgo.API.ChartContainer"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Chart/ChartContainer/Id/"
---

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

# ChartContainer.Id

Member of [ChartContainer](https://help.ctrader.com/ctrader-algo/references/Plugin/Chart/ChartContainer/index.md).

## Id

Returns container Id.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
string Id {get;}
```

Python:

```python
chartContainer.Id: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
var mainContainer = ChartManager.ChartContainers.MainChartContainer;
Print("Main chart container ID: {0}", mainContainer.Id);
```

Python:

```python
mainContainer = api.ChartManager.ChartContainers.MainChartContainer
api.Print(f"Main chart container ID: {mainContainer.Id}")
```

