Skip to content

charton API


charton API / @chart-on/core / index / SessionSchedule

Interface: SessionSchedule ​

Defined in: packages/core/src/util/session.ts:31

When a market trades, in the chart's timezone.

Days are trading days: an overnight range listed under mon starts on Sunday evening, and its bars belong to Monday.

Properties ​

holidays? ​

optional holidays?: string[]

Defined in: packages/core/src/util/session.ts:35

ISO dates ('2024-12-25') of trading days with no session.


overrides? ​

optional overrides?: Record<string, SessionRange[]>

Defined in: packages/core/src/util/session.ts:40

One-day replacements for weekly, keyed by the ISO date of the trading day. They win over holidays; an empty list closes the day.


weekly ​

weekly: Partial<Record<Weekday, SessionRange[]>>

Defined in: packages/core/src/util/session.ts:33

Ranges per weekday of the trading day. A missing or empty day is closed.