Validated, detached trading hours: the calendar an Instrument carries, without the price and quantity rules. Apply one to a chart so times past the last bar follow the venue's sessions, and read it with the same sessionAt and sessionFrom.

Constructors

Properties

A frozen copy of the windows and exceptions, detached from the input.

timezone: string

The validated IANA zone.

Methods

  • Lay the chart's time axis past the last bar out in these hours, and repaint, so a drawing already placed there moves to the time it now means: chart.setSessionCalendar(this), after checking the chart is alive. chart.dataLayer.setSessionCalendar sets the same without asking for a frame, for a host about to load bars or move the view anyway.

    Parameters

    Returns void

  • The phases from one instant to another, as consecutive spans clipped to the range, which may be at most 400 days long.

    Parameters

    • fromUtcSeconds: number
    • toUtcSeconds: number

    Returns readonly SessionPhaseSpan[]