---
id: "T:cAlgo.API.TradingHoliday"
kind: "interface"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/MarketData/Symbols/TradingHoliday/"
---

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

# TradingHoliday (interface)

Represents a symbol trading holiday.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public interface TradingHoliday
```

Available since cAlgo.API 5.2.

## Examples

C#:

```csharp
foreach (var holiday in Symbol.MarketHours.Holidays)
    Print("{0} from {1} to {2}, recurring: {3}", holiday.Name, holiday.StartTime, holiday.EndTime, holiday.IsRecurring);
```

Python:

```python
for holiday in api.Symbol.MarketHours.Holidays:
    api.Print(f"{holiday.Name} from {holiday.StartTime} to {holiday.EndTime}, recurring: {holiday.IsRecurring}")
```

## Properties

- `DateTime EndTime {get;}` — Gets the end date and time of the trading holiday. [details](https://help.ctrader.com/ctrader-algo/references/MarketData/Symbols/TradingHoliday/EndTime/index.md)
- `bool IsRecurring {get;}` — Gets a value indicating whether the trading holiday is recurring. [details](https://help.ctrader.com/ctrader-algo/references/MarketData/Symbols/TradingHoliday/IsRecurring/index.md)
- `string Name {get;}` — Gets the name of the trading holiday. [details](https://help.ctrader.com/ctrader-algo/references/MarketData/Symbols/TradingHoliday/Name/index.md)
- `DateTime StartTime {get;}` — Gets the start date and time of the trading holiday. [details](https://help.ctrader.com/ctrader-algo/references/MarketData/Symbols/TradingHoliday/StartTime/index.md)

