Interface SessionCalendarSource

Trading hours the time axis follows past the last bar. Instrument and SessionCalendar both satisfy it.

interface SessionCalendarSource {
    phaseSpans(
        fromUtcSeconds: number,
        toUtcSeconds: number,
    ): readonly SessionPhaseSpan[];
    sessionFrom(utcSeconds: number): null | InstrumentSession;
}

Methods

  • Optional: the phases of the trading day over a range, which session shading and marketStatusAt read from the chart's calendar. The axis never calls it. Instrument and SessionCalendar provide it.

    Parameters

    • fromUtcSeconds: number
    • toUtcSeconds: number

    Returns readonly SessionPhaseSpan[]