CustomSymbolTradingHoliday.EndTime
property · CustomSymbolTradingHoliday · cAlgo.API Since 5.3
DesktopCLICloud
Gets the end date and time of the trading holiday.
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
public DateTime EndTime {get;}
customSymbolTradingHoliday.EndTime: DateTime
Returns DateTime
Examples
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);
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")