Orderly network trading view.Datafeed
Orderly SDKs / Modules / @orderly.network/trading-view / Datafeed
Class: Datafeed
@orderly.network/trading-view.Datafeed
Hierarchy
-
AbstractDatafeed
↳
Datafeed
Table of contents
Constructors
Properties
Methods
- _requestConfiguration
- _toUDFTicker
- getBars
- getMarks
- getQuotes
- getServerTime
- getSubscriptionId
- getTimescaleMarks
- onReady
- remove
- resolveSymbol
- searchSymbols
- subscribeBars
- subscribeQuotes
- unsubscribeBars
- unsubscribeQuotes
Constructors
constructor
• new Datafeed(apiUrl
, ws
)
Parameters
Name | Type |
---|---|
apiUrl | string |
ws | any |
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
Name | Type |
---|---|
t | any |
Returns
QuoteData
Defined in
tradingView/tradingViewAdapter/datafeed/datafeed.ts:155
getBars
▸ getBars(symbolInfo
, resolution
, periodParams
, onResult
, onError
): void
Parameters
Name | Type |
---|---|
symbolInfo | LibrarySymbolInfo |
resolution | ResolutionString |
periodParams | PeriodParamsWithOptionalCountback |
onResult | HistoryCallback |
onError | ErrorCallback |
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
Name | Type |
---|---|
symbols | string [] |
onDataCallback | QuotesCallback |
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
Name | Type |
---|---|
listenerGuid | string |
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
Name | Type |
---|---|
callback | OnReadyCallback |
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
Name | Type |
---|---|
symbolName | string |
onResolve | ResolveCallback |
onError | ErrorCallback |
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
Name | Type |
---|---|
userInput | string |
exchange | string |
symbolType | string |
onResult | SearchSymbolsCallback |
Returns
void
Inherited from
AbstractDatafeed.searchSymbols
Defined in
tradingView/tradingViewAdapter/datafeed/abstract-datafeed.ts:97
subscribeBars
▸ subscribeBars(symbolInfo
, resolution
, onTick
, listenerGuid
): void
Parameters
Name | Type |
---|---|
symbolInfo | LibrarySymbolInfo |
resolution | ResolutionString |
onTick | SubscribeBarsCallback |
listenerGuid | string |
Returns
void
Overrides
AbstractDatafeed.subscribeBars
Defined in
tradingView/tradingViewAdapter/datafeed/datafeed.ts:73
subscribeQuotes
▸ subscribeQuotes(symbols
, fastSymbols
, onRealtimeCallback
, listenerGuid
): void
Parameters
Name | Type |
---|---|
symbols | string [] |
fastSymbols | string [] |
onRealtimeCallback | QuotesCallback |
listenerGuid | string |
Returns
void
Overrides
AbstractDatafeed.subscribeQuotes
Defined in
tradingView/tradingViewAdapter/datafeed/datafeed.ts:115
unsubscribeBars
▸ unsubscribeBars(listenerGuid
): void
Parameters
Name | Type |
---|---|
listenerGuid | string |
Returns
void
Overrides
AbstractDatafeed.unsubscribeBars
Defined in
tradingView/tradingViewAdapter/datafeed/datafeed.ts:77
unsubscribeQuotes
▸ unsubscribeQuotes(listenerGuid
): void
Parameters
Name | Type |
---|---|
listenerGuid | string |
Returns
void
Overrides
AbstractDatafeed.unsubscribeQuotes