---
id: "P:cAlgo.API.CustomSymbolTradingSession.EndDay"
kind: "property"
type: "T:cAlgo.API.CustomSymbolTradingSession"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolTradingSession/EndDay/"
---

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

# CustomSymbolTradingSession.EndDay

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

## EndDay

Day of week when trading session ends

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
public DayOfWeek EndDay {get;}
```

Python:

```python
customSymbolTradingSession.EndDay: DayOfWeek
```

### Returns

`DayOfWeek` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
var session = new CustomSymbolTradingSession(DayOfWeek.Monday, DayOfWeek.Friday, TimeSpan.FromHours(8), TimeSpan.FromHours(17));
Print("Session ends on {0}", session.EndDay);
```

Python:

```python
from System import DayOfWeek, TimeSpan
session = CustomSymbolTradingSession(DayOfWeek.Monday, DayOfWeek.Friday, TimeSpan.FromHours(8), TimeSpan.FromHours(17))
api.Print(f"Session ends on {session.EndDay}")
```

