Interface InstrumentCalendar

interface InstrumentCalendar {
    exceptions?: Readonly<Record<string, readonly string[]>>;
    extendedHours?: readonly string[];
    postMarketMinutes?: number;
    preMarketMinutes?: number;
    sessions: readonly string[];
}

Hierarchy (View Summary)

Properties

exceptions?: Readonly<Record<string, readonly string[]>>

Local opening dates replace weekly sessions. An empty list closes that date.

extendedHours?: readonly string[]

Extended hours of their own, such as an overnight session, written like sessions. They open on their own days, except on a date the exceptions close.

postMarketMinutes?: number

Whole minutes of post-close trading after each trading date's last regular close, 0 to 1439.

preMarketMinutes?: number

Whole minutes of pre-open trading before each trading date's first regular opening, 0 to 1439. Counted from the opening, so a shortened day, a special session and a closed date move it with them.

sessions: readonly string[]

HHMM-HHMM[:days], with opening weekdays 1 (Sunday) through 7.