charton API / @chart-on/core / index / compileSession
Function: compileSession()
compileSession(
schedule):CompiledSession|null
Defined in: packages/core/src/util/session.ts:75
Validate a schedule and prepare it for tradingDay and inSession. Returns null when the schedule is always open. Throws on malformed times or dates, overlapping ranges, or more than one overnight range in a day.
Parameters
schedule
Returns
CompiledSession | null