Lumen ChartsLumen Charts
Api

IDatafeedChartApi

Download Markdown

Integration guide · Reference index

Public contract reference. This declaration describes types and callback shapes; availability is constrained by the linked integration guide and the runtime capability. Legacy product-specific fields are not a promise of implementation.

footprint

footprint?: FootprintProvider;

Optional rebuild volume footprint source. Beta. This may change in a later release.

getMarks

getMarks?(
    symbolInfo: LibrarySymbolInfo,
    from: number,
    to: number,
    onDataCallback: GetMarksCallback<Mark>,
    resolution: ResolutionString,
  ): void;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
symbolInfoLibrarySymbolInfoYes
fromnumberYes
tonumberYes
onDataCallbackGetMarksCallback<Mark>Yes
resolutionResolutionStringYes

getTimescaleMarks

getTimescaleMarks?(
    symbolInfo: LibrarySymbolInfo,
    from: number,
    to: number,
    onDataCallback: GetMarksCallback<TimescaleMark>,
    resolution: ResolutionString,
  ): void;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
symbolInfoLibrarySymbolInfoYes
fromnumberYes
tonumberYes
onDataCallbackGetMarksCallback<TimescaleMark>Yes
resolutionResolutionStringYes

getServerTime

getServerTime?(callback: ServerTimeCallback): void;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
callbackServerTimeCallbackYes

searchSymbols

searchSymbols(
    userInput: string,
    exchange: string,
    symbolType: string,
    onResult: SearchSymbolsCallback,
  ): void;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
userInputstringYes
exchangestringYes
symbolTypestringYes
onResultSearchSymbolsCallbackYes

resolveSymbol

resolveSymbol(
    symbolName: string,
    onResolve: ResolveCallback,
    onError: ErrorCallback,
    extension?: SymbolResolveExtension,
  ): void;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
symbolNamestringYes
onResolveResolveCallbackYes
onErrorErrorCallbackYes
extensionSymbolResolveExtensionNo

getBars

getBars(
    symbolInfo: LibrarySymbolInfo,
    resolution: ResolutionString,
    periodParams: PeriodParams,
    onResult: HistoryCallback,
    onError: ErrorCallback,
  ): void;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
symbolInfoLibrarySymbolInfoYes
resolutionResolutionStringYes
periodParamsPeriodParamsYes
onResultHistoryCallbackYes
onErrorErrorCallbackYes

subscribeBars

subscribeBars(
    symbolInfo: LibrarySymbolInfo,
    resolution: ResolutionString,
    onTick: SubscribeBarsCallback,
    listenerGuid: string,
    onResetCacheNeededCallback: () => void,
  ): void;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
symbolInfoLibrarySymbolInfoYes
resolutionResolutionStringYes
onTickSubscribeBarsCallbackYes
listenerGuidstringYes
onResetCacheNeededCallback() => voidYes

unsubscribeBars

unsubscribeBars(listenerGuid: string): void;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
listenerGuidstringYes

subscribeDepth

subscribeDepth?(symbol: string, callback: DOMCallback): string;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
symbolstringYes
callbackDOMCallbackYes

unsubscribeDepth

unsubscribeDepth?(subscriberUID: string): void;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
subscriberUIDstringYes

getVolumeProfileResolutionForPeriod

getVolumeProfileResolutionForPeriod?(
    currentResolution: ResolutionString,
    from: number,
    to: number,
    symbolInfo: LibrarySymbolInfo,
  ): ResolutionString;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
currentResolutionResolutionStringYes
fromnumberYes
tonumberYes
symbolInfoLibrarySymbolInfoYes

On this page