---
id: "T:cAlgo.API.EnvironmentType"
kind: "enum"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Application/EnvironmentType/"
---

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

# EnvironmentType (enum)

Represents the different environments where an algo can run.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum EnvironmentType
```

Available since cAlgo.API 5.2.

## Examples

C#:

```csharp
Print("Current EnvironmentType is: {0}", Application.EnvironmentType);

if (Application.EnvironmentType == EnvironmentType.Desktop)
    Chart.DrawStaticText("environment", "Running on cTrader Desktop", VerticalAlignment.Top, HorizontalAlignment.Right, Color.Gray);
```

Python:

```python
api.Print(f"Current EnvironmentType is: {api.Application.EnvironmentType}")

if api.Application.EnvironmentType == EnvironmentType.Desktop:
    api.Chart.DrawStaticText("environment", "Running on cTrader Desktop", VerticalAlignment.Top, HorizontalAlignment.Right, Color.Gray)
```

## Values

- `EnvironmentType.Desktop` — Represents the Desktop environment.
- `EnvironmentType.Cloud` — Represents the Cloud environment where algos can run.
- `EnvironmentType.CLI` — Represents the Command Line Interface (CLI) environment.

