@livefolio/sdk / SpecialOpen
Type Alias: SpecialOpen
SpecialOpen =
object
Defined in: calendars/holiday-rules.ts:55
A year-derived late-open rule consumed by ExchangeCalendar. Follows the same validity bounds and resolve contract as HolidayRule, but overrides the session open time to openAt for the matched date.
Properties
name
name:
string
Defined in: calendars/holiday-rules.ts:57
Human-readable name, used for debugging and logging.
openAt
openAt:
TimeOfDay
Defined in: calendars/holiday-rules.ts:61
The overridden open time in local exchange time.
resolve
resolve: (
year) =>Date|null
Defined in: calendars/holiday-rules.ts:59
Returns the UTC midnight Date for this late-open day in year, or null to skip.
Parameters
| Parameter | Type |
|---|---|
year | number |
Returns
Date | null
validFrom?
optionalvalidFrom?:number
Defined in: calendars/holiday-rules.ts:63
First year (inclusive) this rule applies. Defaults to −∞.
validUntil?
optionalvalidUntil?:number
Defined in: calendars/holiday-rules.ts:65
Last year (inclusive) this rule applies. Defaults to +∞.