---
id: "P:cAlgo.API.Internals.Algo.InstanceId"
kind: "property"
type: "T:cAlgo.API.Internals.Algo"
url: "https://help.ctrader.com/ctrader-algo/references/General/Algo/InstanceId/"
---

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

# Algo.InstanceId

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

## InstanceId

Returns unique ID of current running instance.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public string InstanceId {get;}
```

Python:

```python
api.InstanceId: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
Print("Instance id: {0}", InstanceId);
```

Python:

```python
api.Print(f"Instance id: {api.InstanceId}")
```

