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

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

# Plugin.MarketSessions

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

## MarketSessions

Returns current market sessions.

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

- CLI: Plugins cannot run in the CLI: ctrader-cli runs cBots only.
- Cloud: Plugins cannot run in the cloud: it runs cBots only.

C#:

```csharp
public MarketSession MarketSessions {get;}
```

Python:

```python
api.MarketSessions: MarketSession
```

### Returns

`MarketSession` — 

### Examples

C#:

```csharp
Print("Current market sessions: {0}", MarketSessions);
```

Python:

```python
api.Print(f"Current market sessions: {api.MarketSessions}")
```

