Skip to content

charton API


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

Function: tradingDay() ​

tradingDay(session, wall): number

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

Day number (days since 1970-01-01) of the trading day a wall-clock time belongs to.

Parameters ​

session ​

CompiledSession | null

wall ​

number

Returns ​

number