Release v21.064 (from f0bc1e45)
Fixes tradingview/charting_library#6237 Fixes tradingview/charting_library#6543
This commit is contained in:
172
charting_library/charting_library.d.ts
vendored
172
charting_library/charting_library.d.ts
vendored
@@ -1,5 +1,20 @@
|
||||
// Generated by dts-bundle-generator v5.3.0
|
||||
|
||||
declare const dateFormatFunctions: {
|
||||
"dd MMM 'yy": (date: Date, local: boolean) => string;
|
||||
"MMM dd, yyyy": (date: Date, local: boolean) => string;
|
||||
"MMM dd": (date: Date, local: boolean) => string;
|
||||
"yyyy-MM-dd": (date: Date, local: boolean) => string;
|
||||
"yy-MM-dd": (date: Date, local: boolean) => string;
|
||||
"yy/MM/dd": (date: Date, local: boolean) => string;
|
||||
"yyyy/MM/dd": (date: Date, local: boolean) => string;
|
||||
"dd-MM-yyyy": (date: Date, local: boolean) => string;
|
||||
"dd-MM-yy": (date: Date, local: boolean) => string;
|
||||
"dd/MM/yy": (date: Date, local: boolean) => string;
|
||||
"dd/MM/yyyy": (date: Date, local: boolean) => string;
|
||||
"MM/dd/yy": (date: Date, local: boolean) => string;
|
||||
"MM/dd/yyyy": (date: Date, local: boolean) => string;
|
||||
};
|
||||
declare enum OrderOrPositionMessageType {
|
||||
Information = "information",
|
||||
Warning = "warning",
|
||||
@@ -81,6 +96,7 @@ export declare const enum SeriesStyle {
|
||||
HeikenAshi = 8,
|
||||
HollowCandles = 9,
|
||||
Baseline = 10,
|
||||
HiLo = 12,
|
||||
Renko = 4,
|
||||
Kagi = 5,
|
||||
PointAndFigure = 6,
|
||||
@@ -116,13 +132,17 @@ export declare const enum StandardFormatterName {
|
||||
TextNoWrap = "textNoWrap",
|
||||
TradeSettings = "tradeSettings",
|
||||
Type = "type",
|
||||
MarginPercent = "marginPercent",
|
||||
Empty = "empty"
|
||||
MarginPercent = "marginPercent"
|
||||
}
|
||||
export declare const enum TimeFrameType {
|
||||
PeriodBack = "period-back",
|
||||
TimeRange = "time-range"
|
||||
}
|
||||
export declare const enum VisibilityType {
|
||||
AlwaysOn = "alwaysOn",
|
||||
VisibleOnMouseOver = "visibleOnMouseOver",
|
||||
AlwaysOff = "alwaysOff"
|
||||
}
|
||||
export declare const widget: ChartingLibraryWidgetConstructor;
|
||||
export declare function version(): string;
|
||||
export declare type AccountId = Nominal<string, "AccountID">;
|
||||
@@ -130,20 +150,24 @@ export declare type ActionMetaInfo = ActionDescriptionWithCallback | MenuSeparat
|
||||
export declare type AvailableSaveloadVersions = "1.0" | "1.1";
|
||||
export declare type CellAlignment = "left" | "right";
|
||||
export declare type ChartActionId = "chartProperties" | "compareOrAdd" | "scalesProperties" | "paneObjectTree" | "insertIndicator" | "symbolSearch" | "changeInterval" | "timeScaleReset" | "chartReset" | "seriesHide" | "studyHide" | "lineToggleLock" | "lineHide" | "scaleSeriesOnly" | "drawingToolbarAction" | "stayInDrawingModeAction" | "hideAllMarks" | "showCountdown" | "showSeriesLastValue" | "showSymbolLabelsAction" | "showStudyLastValue" | "showStudyPlotNamesAction" | "undo" | "redo" | "paneRemoveAllStudiesDrawingTools" | "showSymbolInfoDialog";
|
||||
export declare type DateFormat = keyof typeof dateFormatFunctions;
|
||||
export declare type Direction = "buy" | "sell";
|
||||
export declare type DomeCallback = (data: DOMData) => void;
|
||||
export declare type DrawingEventType = "click" | "move" | "remove" | "hide" | "show";
|
||||
export declare type DropdownUpdateParams = Partial<Omit<DropdownParams, "align">>;
|
||||
export declare type EditObjectDialogObjectType = "mainSeries" | "drawing" | "study" | "other";
|
||||
export declare type EmptyCallback = () => void;
|
||||
export declare type EntityId = Nominal<string, "EntityId">;
|
||||
export declare type ErrorCallback = (reason: string) => void;
|
||||
export declare type FieldDescriptor = TimeFieldDescriptor | UserTimeFieldDescriptor | SeriesFieldDescriptor | StudyFieldDescriptor;
|
||||
export declare type GetMarksCallback<T> = (marks: T[]) => void;
|
||||
export declare type GetNewsFunction = (symbol: string, callback: (response: GetNewsResponse) => void) => void;
|
||||
export declare type GroupLockState = "Locked" | "Unlocked" | "Partial";
|
||||
export declare type GroupVisibilityState = "Visible" | "Invisible" | "Partial";
|
||||
export declare type HeaderWidgetButtonsMode = "fullsize" | "compact" | "adaptive";
|
||||
export declare type HistoryCallback = (bars: Bar[], meta?: HistoryMetadata) => void;
|
||||
export declare type IBasicDataFeed = IDatafeedChartApi & IExternalDatafeed;
|
||||
export declare type INumberFormatter = IFormatter<number>;
|
||||
export declare type InputFieldValidator = (value: any) => InputFieldValidatorResult;
|
||||
export declare type InputFieldValidatorResult = PositiveBaseInputFieldValidatorResult | NegativeBaseInputFieldValidatorResult;
|
||||
export declare type LanguageCode = "ar" | "zh" | "cs" | "da_DK" | "nl_NL" | "en" | "et_EE" | "fr" | "de" | "el" | "he_IL" | "hu_HU" | "id_ID" | "it" | "ja" | "ko" | "fa" | "pl" | "pt" | "ro" | "ru" | "sk_SK" | "es" | "sv" | "th" | "tr" | "vi" | "no" | "ms_MY" | "zh_TW";
|
||||
@@ -190,12 +214,32 @@ export declare type StudyInputValue = string | number | boolean;
|
||||
export declare type StudyOverrideValueType = string | number | boolean;
|
||||
export declare type StudyPriceScale = "new-left" | "new-right" | "no-scale" | "as-series";
|
||||
export declare type SubscribeBarsCallback = (bar: Bar) => void;
|
||||
export declare type SupportedLineTools = "text" | "anchored_text" | "note" | "anchored_note" | "signpost" | "double_curve" | "arc" | "icon" | "arrow_up" | "arrow_down" | "arrow_left" | "arrow_right" | "price_label" | "price_note" | "arrow_marker" | "flag" | "vertical_line" | "horizontal_line" | "cross_line" | "horizontal_ray" | "trend_line" | "info_line" | "trend_angle" | "arrow" | "ray" | "extended" | "parallel_channel" | "disjoint_angle" | "flat_bottom" | "pitchfork" | "schiff_pitchfork_modified" | "schiff_pitchfork" | "balloon" | "inside_pitchfork" | "pitchfan" | "gannbox" | "gannbox_square" | "gannbox_fixed" | "gannbox_fan" | "fib_retracement" | "fib_trend_ext" | "fib_speed_resist_fan" | "fib_timezone" | "fib_trend_time" | "fib_circles" | "fib_spiral" | "fib_speed_resist_arcs" | "fib_channel" | "xabcd_pattern" | "cypher_pattern" | "abcd_pattern" | "callout" | "triangle_pattern" | "3divers_pattern" | "head_and_shoulders" | "fib_wedge" | "elliott_impulse_wave" | "elliott_triangle_wave" | "elliott_triple_combo" | "elliott_correction" | "elliott_double_combo" | "cyclic_lines" | "time_cycles" | "sine_line" | "long_position" | "short_position" | "forecast" | "date_range" | "price_range" | "date_and_price_range" | "bars_pattern" | "ghost_feed" | "projection" | "rectangle" | "rotated_rectangle" | "ellipse" | "triangle" | "polyline" | "path" | "curve" | "cursor" | "dot" | "arrow_cursor" | "eraser" | "measure" | "zoom" | "brush" | "highlighter";
|
||||
export declare type SupportedLineTools = "text" | "anchored_text" | "note" | "anchored_note" | "signpost" | "double_curve" | "arc" | "icon" | "arrow_up" | "arrow_down" | "arrow_left" | "arrow_right" | "price_label" | "price_note" | "arrow_marker" | "flag" | "vertical_line" | "horizontal_line" | "cross_line" | "horizontal_ray" | "trend_line" | "info_line" | "trend_angle" | "arrow" | "ray" | "extended" | "parallel_channel" | "disjoint_angle" | "flat_bottom" | "pitchfork" | "schiff_pitchfork_modified" | "schiff_pitchfork" | "balloon" | "inside_pitchfork" | "pitchfan" | "gannbox" | "gannbox_square" | "gannbox_fixed" | "gannbox_fan" | "fib_retracement" | "fib_trend_ext" | "fib_speed_resist_fan" | "fib_timezone" | "fib_trend_time" | "fib_circles" | "fib_spiral" | "fib_speed_resist_arcs" | "fib_channel" | "xabcd_pattern" | "cypher_pattern" | "abcd_pattern" | "callout" | "triangle_pattern" | "3divers_pattern" | "head_and_shoulders" | "fib_wedge" | "elliott_impulse_wave" | "elliott_triangle_wave" | "elliott_triple_combo" | "elliott_correction" | "elliott_double_combo" | "cyclic_lines" | "time_cycles" | "sine_line" | "long_position" | "short_position" | "forecast" | "date_range" | "price_range" | "date_and_price_range" | "bars_pattern" | "ghost_feed" | "projection" | "rectangle" | "rotated_rectangle" | "ellipse" | "triangle" | "polyline" | "path" | "curve" | "cursor" | "dot" | "arrow_cursor" | "eraser" | "measure" | "zoom" | "brush" | "highlighter" | "regression_trend" | "fixed_range_volume_profile";
|
||||
export declare type SymbolSearchCompleteOverrideFunction = (symbol: string) => Promise<string>;
|
||||
export declare type SymbolType = "stock" | "index" | "forex" | "futures" | "bitcoin" | "crypto" | "undefined" | "expression" | "spread" | "cfd" | "economic" | "equity" | "dr" | "bond" | "right" | "warrant" | "fund" | "structured";
|
||||
export declare type TableElementFormatFunction = (inputs: TableFormatterInputs) => string | HTMLElement;
|
||||
export declare type TableValue = number | string | Side | OrderType | OrderStatus | DateOrDateTime | Order;
|
||||
export declare type TextInputFieldValidator = (value: string) => InputFieldValidatorResult;
|
||||
export declare type ThemeName = "Light" | "Dark";
|
||||
export declare type TickMarkType =
|
||||
/**
|
||||
* The start of the year (e.g. it's the first tick mark in a year).
|
||||
*/
|
||||
"Year"
|
||||
/**
|
||||
* The start of the month (e.g. it's the first tick mark in a month).
|
||||
*/
|
||||
| "Month"
|
||||
/**
|
||||
* A day of the month.
|
||||
*/
|
||||
| "DayOfMonth"
|
||||
/**
|
||||
* A time without seconds.
|
||||
*/
|
||||
| "Time"
|
||||
/**
|
||||
* A time with seconds.
|
||||
*/
|
||||
| "TimeWithSeconds";
|
||||
export declare type TimeFrameValue = TimeFramePeriodBack | TimeFrameTimeRange;
|
||||
export declare type Timezone = "Etc/UTC" | CustomTimezones;
|
||||
export declare type TradableSolutions = ChangeAccountSolution | ChangeSymbolSolution;
|
||||
@@ -214,27 +258,23 @@ export interface AccessListItem {
|
||||
grayed?: boolean;
|
||||
}
|
||||
export interface AccountManagerColumn {
|
||||
id?: string;
|
||||
label: string;
|
||||
alignment?: CellAlignment;
|
||||
formatter?: StandardFormatterName | "orderSettings" | "posSettings" | string;
|
||||
property?: string;
|
||||
property: string;
|
||||
sortProp?: string;
|
||||
modificationProperty?: string;
|
||||
notSortable?: boolean;
|
||||
help?: string;
|
||||
highlightDiff?: boolean;
|
||||
fixedWidth?: boolean;
|
||||
notHideable?: boolean;
|
||||
hideByDefault?: boolean;
|
||||
showOnMobile?: boolean;
|
||||
tooltipProperty?: string;
|
||||
showTooltipOnCell?: boolean;
|
||||
isCapitalize?: boolean;
|
||||
showZeroValues?: boolean;
|
||||
}
|
||||
export interface AccountManagerInfo {
|
||||
accountTitle: string;
|
||||
summary: AccountManagerSummaryField[];
|
||||
customFormatters?: TableElementFormatter[];
|
||||
orderColumns: OrderTableColumn[];
|
||||
orderColumnsSorting?: SortingParameters;
|
||||
historyColumns?: AccountManagerColumn[];
|
||||
@@ -244,7 +284,7 @@ export interface AccountManagerInfo {
|
||||
pages: AccountManagerPage[];
|
||||
possibleOrderStatuses?: OrderStatus[];
|
||||
marginUsed?: IWatchedValue<number>;
|
||||
contextMenuActions?(contextMenuEvent: MouseEvent, activePageActions: ActionMetaInfo[]): Promise<ActionMetaInfo[]>;
|
||||
contextMenuActions?(contextMenuEvent: MouseEvent | TouchEvent, activePageActions: ActionMetaInfo[]): Promise<ActionMetaInfo[]>;
|
||||
}
|
||||
export interface AccountManagerPage {
|
||||
id: string;
|
||||
@@ -356,7 +396,6 @@ export interface BrokerConfigFlags {
|
||||
supportDOM?: boolean;
|
||||
supportMultiposition?: boolean;
|
||||
supportPLUpdate?: boolean;
|
||||
supportReducePosition?: boolean;
|
||||
supportReversePosition?: boolean;
|
||||
supportNativeReversePosition?: boolean;
|
||||
supportMarketOrders?: boolean;
|
||||
@@ -379,7 +418,6 @@ export interface BrokerConfigFlags {
|
||||
closePositionCancelsOrders?: boolean;
|
||||
supportOnlyPairPositionBrackets?: boolean;
|
||||
supportCryptoExchangeOrderTicket?: boolean;
|
||||
durationForMarketOrders?: boolean;
|
||||
supportConfirmations?: boolean;
|
||||
/** Does broker need to display position's PL in instrument's currency */
|
||||
positionPLInInstrumentCurrency?: boolean;
|
||||
@@ -398,6 +436,8 @@ export interface BrokerConfigFlags {
|
||||
* Enabling this flag removes the direction check from the order dialog.
|
||||
*/
|
||||
supportStopOrdersInBothDirections?: boolean;
|
||||
/** Does broker support executions */
|
||||
supportExecutions?: boolean;
|
||||
requiresFIFOCloseTrades?: boolean;
|
||||
/**
|
||||
* @deprecated
|
||||
@@ -407,6 +447,8 @@ export interface BrokerConfigFlags {
|
||||
export interface BrokerCustomUI {
|
||||
showOrderDialog?: (order: OrderTemplate | Order, focus?: OrderTicketFocusControl) => Promise<boolean>;
|
||||
showPositionDialog?: (position: Position | Trade, brackets: Brackets, focus?: OrderTicketFocusControl) => Promise<boolean>;
|
||||
showCancelOrderDialog?: (order: Order) => Promise<boolean>;
|
||||
showClosePositionDialog?: (position: Position) => Promise<boolean>;
|
||||
}
|
||||
export interface CandleStylePreferences {
|
||||
upColor: string;
|
||||
@@ -498,9 +540,11 @@ export interface ChartingLibraryWidgetOptions {
|
||||
additional_symbol_info_fields?: AdditionalSymbolInfoField[];
|
||||
header_widget_buttons_mode?: HeaderWidgetButtonsMode;
|
||||
time_scale?: TimeScaleOptions;
|
||||
symbol_search_complete?: SymbolSearchCompleteOverrideFunction;
|
||||
}
|
||||
export interface ClientSnapshotOptions {
|
||||
backgroundColor: string;
|
||||
borderColor: string;
|
||||
font: string;
|
||||
fontSize: number;
|
||||
legendMode: LegendMode;
|
||||
@@ -579,6 +623,7 @@ export interface CustomFormatter {
|
||||
export interface CustomFormatters {
|
||||
timeFormatter: CustomFormatter;
|
||||
dateFormatter: CustomFormatter;
|
||||
tickMarkFormatter?: (date: Date, tickMarkType: TickMarkType) => string;
|
||||
}
|
||||
export interface CustomIndicator {
|
||||
readonly name: string;
|
||||
@@ -640,10 +685,6 @@ export interface DatafeedSymbolType {
|
||||
name: string;
|
||||
value: string;
|
||||
}
|
||||
export interface DateOrDateTime {
|
||||
dateOrDateTime: number;
|
||||
hasTime: boolean;
|
||||
}
|
||||
export interface DefaultContextMenuActionsParams {
|
||||
}
|
||||
export interface DefaultDropdownActionsParams {
|
||||
@@ -656,6 +697,17 @@ export interface DialogParams<CallbackType> {
|
||||
body: string;
|
||||
callback: CallbackType;
|
||||
}
|
||||
export interface DropdownItem {
|
||||
title: string;
|
||||
onSelect: () => void;
|
||||
}
|
||||
export interface DropdownParams {
|
||||
title: string;
|
||||
items: DropdownItem[];
|
||||
tooltip?: string;
|
||||
icon?: string;
|
||||
align?: "right" | "left";
|
||||
}
|
||||
export interface EditObjectDialogEventParams {
|
||||
objectType: EditObjectDialogObjectType;
|
||||
scriptTitle: string;
|
||||
@@ -686,11 +738,13 @@ export interface ExportDataOptions {
|
||||
includeTime?: boolean;
|
||||
includeUserTime?: boolean;
|
||||
includeSeries?: boolean;
|
||||
includeDisplayedValues?: boolean;
|
||||
includedStudies: readonly string[] | "all";
|
||||
}
|
||||
export interface ExportedData {
|
||||
schema: FieldDescriptor[];
|
||||
data: Float64Array[];
|
||||
displayedData: string[][];
|
||||
}
|
||||
export interface Favorites {
|
||||
intervals: ResolutionString[];
|
||||
@@ -699,6 +753,10 @@ export interface Favorites {
|
||||
export interface FormatterParseResult {
|
||||
res: boolean;
|
||||
}
|
||||
export interface GetNewsResponse {
|
||||
title?: string;
|
||||
newsItems: NewsItem[];
|
||||
}
|
||||
export interface GrayedObject {
|
||||
type: "drawing" | "study";
|
||||
name: string;
|
||||
@@ -825,7 +883,7 @@ export interface IBrokerTerminal extends IBrokerWithoutRealtime {
|
||||
export interface IBrokerWithoutRealtime extends IBrokerCommon {
|
||||
subscribeDOME?(symbol: string): void;
|
||||
unsubscribeDOME?(symbol: string): void;
|
||||
placeOrder(order: PreOrder, confirmId?: string): Promise<void>;
|
||||
placeOrder(order: PreOrder, confirmId?: string): Promise<PlaceOrderResult>;
|
||||
previewOrder?(order: PreOrder): Promise<OrderPreviewResult>;
|
||||
modifyOrder(order: Order, confirmId?: string): Promise<void>;
|
||||
cancelOrder(orderId: string): Promise<void>;
|
||||
@@ -861,14 +919,14 @@ export interface IChartWidgetApi {
|
||||
dataReady(callback: () => void): boolean;
|
||||
crossHairMoved(): ISubscription<(params: CrossHairMovedEventParams) => void>;
|
||||
setVisibleRange(range: SetVisibleTimeRange, options?: SetVisibleRangeOptions): Promise<void>;
|
||||
setSymbol(symbol: string, callback: () => void): void;
|
||||
setResolution(resolution: ResolutionString, callback: () => void): void;
|
||||
setSymbol(symbol: string, callback?: () => void): void;
|
||||
setResolution(resolution: ResolutionString, callback?: () => void): void;
|
||||
setChartType(type: SeriesStyle, callback?: () => void): void;
|
||||
resetData(): void;
|
||||
executeActionById(actionId: ChartActionId): void;
|
||||
getCheckableActionState(actionId: ChartActionId): boolean;
|
||||
refreshMarks(): void;
|
||||
clearMarks(): void;
|
||||
setChartType(type: SeriesStyle): void;
|
||||
getAllShapes(): EntityInfo[];
|
||||
getAllStudies(): EntityInfo[];
|
||||
getPriceToBarRatio(): number | null;
|
||||
@@ -917,7 +975,7 @@ export interface IChartWidgetApi {
|
||||
setTimezone(timezone: "exchange" | Timezone): void;
|
||||
getTimezone(): "exchange" | Timezone;
|
||||
getPanes(): IPaneApi[];
|
||||
exportData(options?: ExportDataOptions): Promise<ExportedData>;
|
||||
exportData(options?: Partial<ExportDataOptions>): Promise<ExportedData>;
|
||||
canZoomOut(): boolean;
|
||||
zoomOut(): void;
|
||||
setZoomEnabled(enabled: boolean): void;
|
||||
@@ -934,7 +992,7 @@ export interface IChartingLibraryWidget {
|
||||
headerReady(): Promise<void>;
|
||||
onChartReady(callback: EmptyCallback): void;
|
||||
onGrayedObjectClicked(callback: (obj: GrayedObject) => void): void;
|
||||
onShortcut(shortCut: string, callback: EmptyCallback): void;
|
||||
onShortcut(shortCut: string | number | (string | number)[], callback: EmptyCallback): void;
|
||||
subscribe<EventName extends keyof SubscribeEventsMap>(event: EventName, callback: SubscribeEventsMap[EventName]): void;
|
||||
unsubscribe<EventName extends keyof SubscribeEventsMap>(event: EventName, callback: SubscribeEventsMap[EventName]): void;
|
||||
chart(index?: number): IChartWidgetApi;
|
||||
@@ -952,6 +1010,7 @@ export interface IChartingLibraryWidget {
|
||||
removeChartFromServer(chartId: string, onCompleteCallback: EmptyCallback): void;
|
||||
onContextMenu(callback: (unixTime: number, price: number) => ContextMenuItem[]): void;
|
||||
createButton(options?: CreateButtonOptions): HTMLElement;
|
||||
createDropdown(params: DropdownParams): Promise<IDropdownApi>;
|
||||
showNoticeDialog(params: DialogParams<() => void>): void;
|
||||
showConfirmDialog(params: DialogParams<(confirmed: boolean) => void>): void;
|
||||
showLoadChartDialog(): void;
|
||||
@@ -960,16 +1019,18 @@ export interface IChartingLibraryWidget {
|
||||
mainSeriesPriceFormatter(): INumberFormatter;
|
||||
getIntervals(): string[];
|
||||
getStudiesList(): string[];
|
||||
getStudyInputs(studyName: string): StudyInputInfo[];
|
||||
addCustomCSSFile(url: string): void;
|
||||
applyOverrides<TOverrides extends StudyOverrides>(overrides: TOverrides): void;
|
||||
applyStudiesOverrides(overrides: object): void;
|
||||
watchList(): IWatchListApi;
|
||||
watchList(): Promise<IWatchListApi>;
|
||||
news(): Promise<INewsApi>;
|
||||
activeChart(): IChartWidgetApi;
|
||||
chartsCount(): number;
|
||||
layout(): LayoutType;
|
||||
setLayout(layout: LayoutType): void;
|
||||
layoutName(): string;
|
||||
changeTheme(themeName: ThemeName, options?: ChangeThemeOptions): void;
|
||||
changeTheme(themeName: ThemeName, options?: ChangeThemeOptions): Promise<void>;
|
||||
getTheme(): ThemeName;
|
||||
takeScreenshot(): void;
|
||||
takeClientScreenshot(options?: Partial<ClientSnapshotOptions>): Promise<HTMLCanvasElement>;
|
||||
@@ -984,6 +1045,9 @@ export interface IChartingLibraryWidget {
|
||||
startFullscreen(): void;
|
||||
exitFullscreen(): void;
|
||||
undoRedoState(): UndoRedoState;
|
||||
navigationButtonsVisibility(): IWatchedValue<VisibilityType>;
|
||||
paneButtonsVisibility(): IWatchedValue<VisibilityType>;
|
||||
dateFormat(): IWatchedValue<DateFormat>;
|
||||
}
|
||||
export interface IDatafeedChartApi {
|
||||
getMarks?(symbolInfo: LibrarySymbolInfo, from: number, to: number, onDataCallback: GetMarksCallback<Mark>, resolution: ResolutionString): void;
|
||||
@@ -1011,6 +1075,10 @@ export interface IDatafeedQuotesApi {
|
||||
export interface IDelegate<TFunc extends Function> extends ISubscription<TFunc> {
|
||||
fire: TFunc;
|
||||
}
|
||||
export interface IDropdownApi {
|
||||
applyOptions(options: DropdownUpdateParams): void;
|
||||
remove(): void;
|
||||
}
|
||||
export interface IExecutionLineAdapter {
|
||||
remove(): void;
|
||||
getPrice(): number;
|
||||
@@ -1071,7 +1139,8 @@ export interface ILineDataSourceApi {
|
||||
getPoints(): PricedPoint[];
|
||||
setPoints(points: ShapePoint[]): void;
|
||||
}
|
||||
export interface INumberFormatter extends IFormatter<number> {
|
||||
export interface INewsApi {
|
||||
refresh(): void;
|
||||
}
|
||||
export interface IObservable<T> {
|
||||
subscribe(callback: (value: T) => void): void;
|
||||
@@ -1209,7 +1278,7 @@ export interface IPositionLineAdapter {
|
||||
getCloseButtonIconColor(): string;
|
||||
setCloseButtonIconColor(value: string): this;
|
||||
}
|
||||
export interface IPriceFormatter extends INumberFormatter {
|
||||
export interface IPriceFormatter extends ISymbolValueFormatter {
|
||||
format(price: number, signPositive?: boolean, tailSize?: number, signNegative?: boolean, useRtlFormat?: boolean): string;
|
||||
}
|
||||
export interface IPriceScaleApi {
|
||||
@@ -1295,14 +1364,27 @@ export interface IStudyApi {
|
||||
sendToBack(): void;
|
||||
applyOverrides<TOverrides extends StudyOverrides>(overrides: TOverrides): void;
|
||||
applyToEntireLayout(): void;
|
||||
onDataLoaded(): ISubscription<() => void>;
|
||||
onStudyError(): ISubscription<() => void>;
|
||||
}
|
||||
export interface ISubscription<TFunc extends Function> {
|
||||
subscribe(obj: object | null, member: TFunc, singleshot?: boolean): void;
|
||||
unsubscribe(obj: object | null, member: TFunc): void;
|
||||
unsubscribeAll(obj: object | null): void;
|
||||
}
|
||||
export interface ISymbolValueFormatter {
|
||||
format(price: number, signPositive?: boolean): string;
|
||||
}
|
||||
export interface ITimeScaleApi {
|
||||
coordinateToTime(x: number): number | null;
|
||||
/**
|
||||
* This is to detect when the chart has been zoomed in/out
|
||||
*/
|
||||
barSpacingChanged(): ISubscription<(newBarSpacing: number) => void>;
|
||||
/**
|
||||
* This is to detect when the chart has been scrolled left/right
|
||||
*/
|
||||
rightOffsetChanged(): ISubscription<(rightOffset: number) => void>;
|
||||
}
|
||||
export interface IWatchListApi {
|
||||
defaultList(): string[];
|
||||
@@ -1341,6 +1423,7 @@ export interface InstrumentInfo {
|
||||
minTick: number;
|
||||
lotSize?: number;
|
||||
type?: SymbolType;
|
||||
units?: string;
|
||||
brokerSymbol?: string;
|
||||
description: string;
|
||||
domVolumePrecision?: number;
|
||||
@@ -1352,6 +1435,7 @@ export interface InstrumentInfo {
|
||||
currency?: string;
|
||||
baseCurrency?: string;
|
||||
quoteCurrency?: string;
|
||||
bigPointValue?: number;
|
||||
}
|
||||
export interface IsTradableResult {
|
||||
tradable: boolean;
|
||||
@@ -1385,10 +1469,12 @@ export interface LibrarySymbolInfo {
|
||||
*/
|
||||
session: string;
|
||||
session_display?: string;
|
||||
/** @deprecated Use session_holidays instead */
|
||||
holidays?: string;
|
||||
/**
|
||||
* @example "20181105,20181107,20181112"
|
||||
*/
|
||||
holidays?: string;
|
||||
session_holidays?: string;
|
||||
/**
|
||||
* @example "1900F4-2350F4,1000-1845:20181113;1000-1400:20181114"
|
||||
*/
|
||||
@@ -1518,10 +1604,6 @@ export interface NewsItem {
|
||||
shortDescription?: string;
|
||||
fullDescription?: string;
|
||||
}
|
||||
export interface NewsProvider {
|
||||
is_news_generic?: boolean;
|
||||
get_news(symbol: string, callback: (items: NewsItem[]) => void): void;
|
||||
}
|
||||
export interface NumericFormattingParams {
|
||||
decimal_sign: string;
|
||||
}
|
||||
@@ -1597,6 +1679,9 @@ export interface PipValues {
|
||||
buyPipValue: number;
|
||||
sellPipValue: number;
|
||||
}
|
||||
export interface PlaceOrderResult {
|
||||
orderId?: string;
|
||||
}
|
||||
/**
|
||||
* Info about a placed order
|
||||
*/
|
||||
@@ -1665,6 +1750,7 @@ export interface QuantityMetainfo {
|
||||
min: number;
|
||||
max: number;
|
||||
step: number;
|
||||
uiStep?: number;
|
||||
default?: number;
|
||||
}
|
||||
export interface QuoteErrorData {
|
||||
@@ -1730,6 +1816,7 @@ export interface SeriesFieldDescriptor {
|
||||
type: "value";
|
||||
sourceType: "series";
|
||||
plotTitle: string;
|
||||
sourceTitle: string;
|
||||
}
|
||||
export interface SeriesPreferencesMap {
|
||||
[ChartStyle.Bar]: BarStylePreferences;
|
||||
@@ -1856,21 +1943,6 @@ export interface SymbolResolveExtension {
|
||||
currencyCode?: string;
|
||||
unitId?: string;
|
||||
}
|
||||
export interface TableElementFormatter {
|
||||
name: string;
|
||||
format: TableElementFormatFunction;
|
||||
}
|
||||
export interface TableFormatterInputs {
|
||||
value: TableValue;
|
||||
prevValue?: number | undefined;
|
||||
row: TableRow;
|
||||
container: HTMLElement;
|
||||
priceFormatter?: INumberFormatter;
|
||||
}
|
||||
export interface TableRow {
|
||||
priceFormatter?: INumberFormatter;
|
||||
[name: string]: any;
|
||||
}
|
||||
export interface TextWithCheckboxFieldCustomInfo {
|
||||
checkboxTitle: string;
|
||||
asterix?: boolean;
|
||||
@@ -1954,7 +2026,7 @@ export interface TradingTerminalWidgetOptions extends ChartingLibraryWidgetOptio
|
||||
restConfig?: RestBrokerConnectionInfo;
|
||||
widgetbar?: WidgetBarParams;
|
||||
rss_news_feed?: RssNewsFeedParams;
|
||||
news_provider?: NewsProvider;
|
||||
news_provider?: GetNewsFunction;
|
||||
trading_customization?: TradingCustomization;
|
||||
brokerFactory?(host: IBrokerConnectionAdapterHost): IBrokerWithoutRealtime | IBrokerTerminal;
|
||||
broker_factory?(host: IBrokerConnectionAdapterHost): IBrokerWithoutRealtime | IBrokerTerminal;
|
||||
|
||||
Reference in New Issue
Block a user