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

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

# CustomSymbolTradingHoliday.EndTime

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

## EndTime

Gets the end date and time of the trading holiday.

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 DateTime EndTime {get;}
```

Python:

```python
customSymbolTradingHoliday.EndTime: DateTime
```

### Returns

`DateTime` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
var holiday = new CustomSymbolTradingHoliday("Christmas", new DateTime(2025, 12, 25), new DateTime(2025, 12, 26), true);
Print("Holiday ends at {0}, duration {1} hours", holiday.EndTime, (holiday.EndTime - holiday.StartTime).TotalHours);
```

Python:

```python
from System import DateTime
holiday = CustomSymbolTradingHoliday("Christmas", DateTime(2025, 12, 25), DateTime(2025, 12, 26), True)
api.Print(f"Holiday ends at {holiday.EndTime}, duration {(holiday.EndTime - holiday.StartTime).TotalHours} hours")
```

