charton API / @chart-on/core / index / SymbolInfo
Interface: SymbolInfo
Defined in: packages/core/src/data/types.ts:44
A symbol as a data source describes it: its key and names, price format, data delay, timezone and supported intervals.
Properties
delay?
optionaldelay?:number|"eod"
Defined in: packages/core/src/data/types.ts:59
Minutes the data lags realtime, or 'eod' for end-of-day data; 0 or unset is realtime.
description?
optionaldescription?:string
Defined in: packages/core/src/data/types.ts:48
exchange?
optionalexchange?:string
Defined in: packages/core/src/data/types.ts:51
expired?
optionalexpired?:boolean
Defined in: packages/core/src/data/types.ts:61
A contract that no longer trades, e.g. an expired future.
intervals?
optionalintervals?:string[]
Defined in: packages/core/src/data/types.ts:73
Intervals this symbol supports; any when omitted or empty. Entries the chart cannot parse are ignored. setSymbol with another interval shows the nearest supported one and emits interval:change.
name
name:
string
Defined in: packages/core/src/data/types.ts:47
precision?
optionalprecision?:number
Defined in: packages/core/src/data/types.ts:53
Price decimals; the chart auto-detects them when omitted.
priceFormat?
optionalpriceFormat?:PriceFormat
Defined in: packages/core/src/data/types.ts:57
Full price format (fractions, tick bands, a unit...); wins over precision and tickSize.
symbol
symbol:
string
Defined in: packages/core/src/data/types.ts:46
Key passed back to the data source and used for caching.
tickSize?
optionaltickSize?:number
Defined in: packages/core/src/data/types.ts:55
Smallest price increment; sets the decimals unless precision is given.
timezone?
optionaltimezone?:string
Defined in: packages/core/src/data/types.ts:67
IANA timezone of the exchange, e.g. 'America/New_York'. Calendar bars (months, quarters, years) start in it, UTC when unset; with the chart option applySymbolTimezone the chart also displays it.
type?
optionaltype?:string
Defined in: packages/core/src/data/types.ts:50
Free-form kind, e.g. 'crypto', 'stock', 'index'.