Skip to content

TradingHoliday

interface cAlgo.API Since 5.2

DesktopCLICloud

Represents a symbol trading holiday.

Definition

public interface TradingHoliday

Namespace: cAlgo.API · Group: Symbols

Examples

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

Properties

Name Description
EndTimeDesktopCLICloudDateTime Gets the end date and time of the trading holiday.
IsRecurringDesktopCLICloudbool Gets a value indicating whether the trading holiday is recurring.
NameDesktopCLICloudstring Gets the name of the trading holiday.
StartTimeDesktopCLICloudDateTime Gets the start date and time of the trading holiday.

See also