Skip to content

@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

ParameterType
yearnumber

Returns

Date | null


validFrom?

optional validFrom?: number

Defined in: calendars/holiday-rules.ts:63

First year (inclusive) this rule applies. Defaults to −∞.


validUntil?

optional validUntil?: number

Defined in: calendars/holiday-rules.ts:65

Last year (inclusive) this rule applies. Defaults to +∞.

Released under the MIT License.