Skip to content
EliteChart

SymbolInfo

Documentation


Documentation / @elitechart/elitechart / SymbolInfo

Defined in: core/dist/index.d.ts:233

Minimal symbol metadata needed to render a chart. Derived priceScale (decimals) is precomputed from tickSize so the renderer doesn't pay Math.log10 per paint.

Example

code
import { asTickSize, type SymbolInfo } from '@elitechart/core';
const sym: SymbolInfo = {
  id: 'BINANCE:BTCUSDT',
  ticker: 'BTC/USDT',
  description: 'Bitcoin / USDT',
  exchange: 'BINANCE',
  type: 'crypto',
  currency: 'USDT',
  tickSize: asTickSize(0.01),
  priceScale: 2,
};

Properties

currency?

code
readonly optional currency?: string;

Defined in: core/dist/index.d.ts:239


description

code
readonly description: string;

Defined in: core/dist/index.d.ts:236


exchange?

code
readonly optional exchange?: string;

Defined in: core/dist/index.d.ts:237


id

code
readonly id: string;

Defined in: core/dist/index.d.ts:234


priceScale

code
readonly priceScale: number;

Defined in: core/dist/index.d.ts:242

Digits after the decimal point for display, derived from tickSize.


ticker

code
readonly ticker: string;

Defined in: core/dist/index.d.ts:235


tickSize

code
readonly tickSize: TickSize;

Defined in: core/dist/index.d.ts:240


type

code
readonly type: InstrumentType;

Defined in: core/dist/index.d.ts:238