Skip to content

charton API


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

Interface: BarsResult ​

Defined in: packages/core/src/data/types.ts:109

A data source's answer to a BarsRequest: bars in ascending time, and whether older history exists.

Properties ​

atStart? ​

optional atStart?: boolean

Defined in: packages/core/src/data/types.ts:117

The bars reach the start of the symbol's history: nothing older exists, so the chart stops asking for older pages. Named for that fact rather than for an empty answer, since a page can hold bars and still be the last.


bars ​

bars: Bar[]

Defined in: packages/core/src/data/types.ts:111

Ascending by time, unix seconds.