Release v28.0.0 (from 1e591f07)
This commit is contained in:
@@ -9,6 +9,5 @@ export interface UdfQuotesResponse extends UdfOkResponse {
|
||||
}
|
||||
|
||||
export interface IQuotesProvider {
|
||||
// tslint:disable-next-line:variable-name tv-variable-name
|
||||
getQuotes(symbols: string[]): Promise<QuoteData[]>;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {
|
||||
DatafeedConfiguration,
|
||||
ErrorCallback,
|
||||
DatafeedErrorCallback,
|
||||
GetMarksCallback,
|
||||
HistoryCallback,
|
||||
IDatafeedChartApi,
|
||||
@@ -42,10 +42,8 @@ import { SymbolsStorage } from './symbols-storage';
|
||||
import { IRequester } from './irequester';
|
||||
|
||||
export interface UdfCompatibleConfiguration extends DatafeedConfiguration {
|
||||
// tslint:disable:tv-variable-name
|
||||
supports_search?: boolean;
|
||||
supports_group_request?: boolean;
|
||||
// tslint:enable:tv-variable-name
|
||||
}
|
||||
|
||||
export interface ResolveSymbolResponse extends LibrarySymbolInfo {
|
||||
@@ -103,7 +101,7 @@ function extractField<T, TField extends keyof T>(data: T, field: TField, arrayIn
|
||||
|
||||
/**
|
||||
* This class implements interaction with UDF-compatible datafeed.
|
||||
* See [UDF protocol reference](@docs/connecting_data/UDF)
|
||||
* See [UDF protocol reference](@docs/connecting_data/UDF.md)
|
||||
*/
|
||||
export class UDFCompatibleDatafeedBase implements IExternalDatafeed, IDatafeedQuotesApi, IDatafeedChartApi {
|
||||
protected _configuration: UdfCompatibleConfiguration = defaultConfiguration();
|
||||
@@ -300,7 +298,7 @@ export class UDFCompatibleDatafeedBase implements IExternalDatafeed, IDatafeedQu
|
||||
}
|
||||
}
|
||||
|
||||
public resolveSymbol(symbolName: string, onResolve: ResolveCallback, onError: ErrorCallback, extension?: SymbolResolveExtension): void {
|
||||
public resolveSymbol(symbolName: string, onResolve: ResolveCallback, onError: DatafeedErrorCallback, extension?: SymbolResolveExtension): void {
|
||||
logMessage('Resolve requested');
|
||||
|
||||
const currencyCode = extension && extension.currencyCode;
|
||||
@@ -374,7 +372,7 @@ export class UDFCompatibleDatafeedBase implements IExternalDatafeed, IDatafeedQu
|
||||
}
|
||||
}
|
||||
|
||||
public getBars(symbolInfo: LibrarySymbolInfo, resolution: ResolutionString, periodParams: PeriodParamsWithOptionalCountback, onResult: HistoryCallback, onError: ErrorCallback): void {
|
||||
public getBars(symbolInfo: LibrarySymbolInfo, resolution: ResolutionString, periodParams: PeriodParamsWithOptionalCountback, onResult: HistoryCallback, onError: DatafeedErrorCallback): void {
|
||||
this._historyProvider.getBars(symbolInfo, resolution, periodParams)
|
||||
.then((result: GetBarsResult) => {
|
||||
onResult(result.bars, result.meta);
|
||||
|
||||
Reference in New Issue
Block a user