Orderly SDKs / Modules / @orderly.network/trading-view / Datafeed

Class: Datafeed

@orderly.network/trading-view.Datafeed

Hierarchy

  • AbstractDatafeed

    Datafeed

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Datafeed(apiUrl, ws)

Parameters

NameType
apiUrlstring
wsany

Overrides

AbstractDatafeed.constructor

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:22

Properties

_configuration

Protected _configuration: UdfCompatibleConfiguration

Inherited from

AbstractDatafeed._configuration

Defined in

tradingView/tradingViewAdapter/datafeed/abstract-datafeed.ts:41


_prefixId

Private _prefixId: number

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:15


_publicWs

Private _publicWs: WebsocketService

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:16


_subscribeQuoteMap

Private _subscribeQuoteMap: Map<string, any>

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:13


bbosMap

Private bbosMap: Map<string, any>

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:18


eventBus

Private eventBus: MultiBroadcastEventBus

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:20


tickersMap

Private tickersMap: Map<string, any>

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:19

Methods

_requestConfiguration

Protected _requestConfiguration(): Promise<null | UdfCompatibleConfiguration>

Returns

Promise<null | UdfCompatibleConfiguration>

Inherited from

AbstractDatafeed._requestConfiguration

Defined in

tradingView/tradingViewAdapter/datafeed/abstract-datafeed.ts:152


_toUDFTicker

Private _toUDFTicker(t): QuoteData

Parameters

NameType
tany

Returns

QuoteData

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:155


getBars

getBars(symbolInfo, resolution, periodParams, onResult, onError): void

Parameters

NameType
symbolInfoLibrarySymbolInfo
resolutionResolutionString
periodParamsPeriodParamsWithOptionalCountback
onResultHistoryCallback
onErrorErrorCallback

Returns

void

Inherited from

AbstractDatafeed.getBars

Defined in

tradingView/tradingViewAdapter/datafeed/abstract-datafeed.ts:67


getMarks

getMarks(): void

Returns

void

Inherited from

AbstractDatafeed.getMarks

Defined in

tradingView/tradingViewAdapter/datafeed/abstract-datafeed.ts:127


getQuotes

getQuotes(symbols, onDataCallback): void

Parameters

NameType
symbolsstring[]
onDataCallbackQuotesCallback

Returns

void

Overrides

AbstractDatafeed.getQuotes

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:81


getServerTime

getServerTime(): void

Returns

void

Inherited from

AbstractDatafeed.getServerTime

Defined in

tradingView/tradingViewAdapter/datafeed/abstract-datafeed.ts:135


getSubscriptionId

Private getSubscriptionId(listenerGuid): string

Parameters

NameType
listenerGuidstring

Returns

string

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:69


getTimescaleMarks

getTimescaleMarks(): void

Returns

void

Inherited from

AbstractDatafeed.getTimescaleMarks

Defined in

tradingView/tradingViewAdapter/datafeed/abstract-datafeed.ts:131


onReady

onReady(callback): void

Parameters

NameType
callbackOnReadyCallback

Returns

void

Inherited from

AbstractDatafeed.onReady

Defined in

tradingView/tradingViewAdapter/datafeed/abstract-datafeed.ts:91


remove

remove(): void

Returns

void

Overrides

AbstractDatafeed.remove

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:65


resolveSymbol

resolveSymbol(symbolName, onResolve, onError, extension?): void

Parameters

NameType
symbolNamestring
onResolveResolveCallback
onErrorErrorCallback
extension?SymbolResolveExtension

Returns

void

Inherited from

AbstractDatafeed.resolveSymbol

Defined in

tradingView/tradingViewAdapter/datafeed/abstract-datafeed.ts:108


searchSymbols

searchSymbols(userInput, exchange, symbolType, onResult): void

Parameters

NameType
userInputstring
exchangestring
symbolTypestring
onResultSearchSymbolsCallback

Returns

void

Inherited from

AbstractDatafeed.searchSymbols

Defined in

tradingView/tradingViewAdapter/datafeed/abstract-datafeed.ts:97


subscribeBars

subscribeBars(symbolInfo, resolution, onTick, listenerGuid): void

Parameters

NameType
symbolInfoLibrarySymbolInfo
resolutionResolutionString
onTickSubscribeBarsCallback
listenerGuidstring

Returns

void

Overrides

AbstractDatafeed.subscribeBars

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:73


subscribeQuotes

subscribeQuotes(symbols, fastSymbols, onRealtimeCallback, listenerGuid): void

Parameters

NameType
symbolsstring[]
fastSymbolsstring[]
onRealtimeCallbackQuotesCallback
listenerGuidstring

Returns

void

Overrides

AbstractDatafeed.subscribeQuotes

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:115


unsubscribeBars

unsubscribeBars(listenerGuid): void

Parameters

NameType
listenerGuidstring

Returns

void

Overrides

AbstractDatafeed.unsubscribeBars

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:77


unsubscribeQuotes

unsubscribeQuotes(listenerGuid): void

Parameters

NameType
listenerGuidstring

Returns

void

Overrides

AbstractDatafeed.unsubscribeQuotes

Defined in

tradingView/tradingViewAdapter/datafeed/datafeed.ts:145