Skip to content

charton API


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

Interface: StaticDataSourceOptions ​

Defined in: packages/core/src/data/adapters.ts:18

Options for the static data source: the symbols it knows and a lookup of in-memory bars per symbol and interval.

Properties ​

symbols ​

symbols: SymbolInfo[]

Defined in: packages/core/src/data/adapters.ts:19

Methods ​

bars() ​

bars(symbol, interval): readonly Bar[] | undefined

Defined in: packages/core/src/data/adapters.ts:21

Bars for a symbol and interval, or undefined when there are none.

Parameters ​

symbol ​

string

interval ​

Interval

Returns ​

readonly Bar[] | undefined