Release v20.028 (from a477abd4)
This commit is contained in:
117
charting_library/charting_library.d.ts
vendored
117
charting_library/charting_library.d.ts
vendored
@@ -1,7 +1,5 @@
|
||||
// Generated by dts-bundle-generator v5.3.0
|
||||
|
||||
/// <reference types="jquery" />
|
||||
|
||||
declare enum OrderOrPositionMessageType {
|
||||
Information = "information",
|
||||
Warning = "warning",
|
||||
@@ -92,6 +90,35 @@ export declare const enum Side {
|
||||
Buy = 1,
|
||||
Sell = -1
|
||||
}
|
||||
export declare const enum StandardFormatterName {
|
||||
Date = "date",
|
||||
DateOrDateTime = "dateOrDateTime",
|
||||
Default = "default",
|
||||
Fixed = "fixed",
|
||||
VariablePrecision = "variablePrecision",
|
||||
FormatQuantity = "formatQuantity",
|
||||
FormatPrice = "formatPrice",
|
||||
FormatPriceForexSup = "formatPriceForexSup",
|
||||
IntegerSeparated = "integerSeparated",
|
||||
LocalDate = "localDate",
|
||||
LocalDateOrDateTime = "localDateOrDateTime",
|
||||
OrderSettings = "orderSettings",
|
||||
Percentage = "percentage",
|
||||
Pips = "pips",
|
||||
Profit = "profit",
|
||||
ProfitInInstrumentCurrency = "profitInInstrumentCurrency",
|
||||
PosSettings = "posSettings",
|
||||
Side = "side",
|
||||
PositionSide = "positionSide",
|
||||
Status = "status",
|
||||
Symbol = "symbol",
|
||||
Text = "text",
|
||||
TextNoWrap = "textNoWrap",
|
||||
TradeSettings = "tradeSettings",
|
||||
Type = "type",
|
||||
MarginPercent = "marginPercent",
|
||||
Empty = "empty"
|
||||
}
|
||||
export declare const enum TimeFrameType {
|
||||
PeriodBack = "period-back",
|
||||
TimeRange = "time-range"
|
||||
@@ -114,9 +141,9 @@ export declare type FieldDescriptor = TimeFieldDescriptor | UserTimeFieldDescrip
|
||||
export declare type GetMarksCallback<T> = (marks: T[]) => 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";
|
||||
@@ -149,13 +176,14 @@ export declare type ResolutionString = Nominal<string, "ResolutionString">;
|
||||
export declare type ResolveCallback = (symbolInfo: LibrarySymbolInfo) => void;
|
||||
export declare type RssNewsFeedItem = RssNewsFeedInfo | RssNewsFeedInfo[];
|
||||
export declare type SearchSymbolsCallback = (items: SearchSymbolResultItem[]) => void;
|
||||
export declare type SeriesEventType = "price_scale_changed";
|
||||
export declare type SeriesFormat = "price" | "volume";
|
||||
export declare type SeriesPriceScale = "new-left" | "new-right" | "no-scale" | EntityId;
|
||||
export declare type ServerTimeCallback = (serverTime: number) => void;
|
||||
export declare type ShapePoint = StickedPoint | PricedPoint | TimePoint;
|
||||
export declare type ShapesGroupId = Nominal<string, "ShapesGroupId">;
|
||||
export declare type SingleChartLayoutType = "s";
|
||||
export declare type StandardFormatterName = "date" | "dateOrDateTime" | "default" | "fixed" | "variablePrecision" | "formatQuantity" | "formatPrice" | "formatPriceForexSup" | "integerSeparated" | "localDate" | "localDateOrDateTime" | "orderSettings" | "percentage" | "pips" | "profit" | "posSettings" | "side" | "status" | "symbol" | "text" | "textNoWrap" | "tradeSettings" | "type" | "unixTimeAgo" | "marginPercent" | "empty";
|
||||
export declare type StudyEventType = "remove" | "price_scale_changed";
|
||||
export declare type StudyInputId = Nominal<string, "StudyInputId">;
|
||||
export declare type StudyInputValue = string | number | boolean;
|
||||
export declare type StudyOverrideValueType = string | number | boolean;
|
||||
@@ -163,7 +191,7 @@ export declare type StudyPriceScale = "new-left" | "new-right" | "no-scale" | "a
|
||||
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 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 | JQuery;
|
||||
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";
|
||||
@@ -199,6 +227,8 @@ export interface AccountManagerColumn {
|
||||
notHideable?: boolean;
|
||||
hideByDefault?: boolean;
|
||||
showOnMobile?: boolean;
|
||||
tooltipProperty?: string;
|
||||
showTooltipOnCell?: boolean;
|
||||
}
|
||||
export interface AccountManagerInfo {
|
||||
accountTitle: string;
|
||||
@@ -252,6 +282,10 @@ export interface ActionDescription {
|
||||
export interface ActionDescriptionWithCallback extends ActionDescription {
|
||||
action: (a?: ActionDescription) => void;
|
||||
}
|
||||
export interface AdditionalSymbolInfoField {
|
||||
title: string;
|
||||
propertyName: string;
|
||||
}
|
||||
export interface AreaStylePreferences {
|
||||
color1: string;
|
||||
color2: string;
|
||||
@@ -345,10 +379,15 @@ export interface BrokerConfigFlags {
|
||||
supportOnlyPairPositionBrackets?: boolean;
|
||||
supportCryptoExchangeOrderTicket?: boolean;
|
||||
durationForMarketOrders?: boolean;
|
||||
supportConfirmations?: boolean;
|
||||
/** Does broker need to display position's PL in instrument's currency */
|
||||
positionPLInInstrumentCurrency?: boolean;
|
||||
/** Does broker support partial position closing */
|
||||
supportPartialClosePosition?: boolean;
|
||||
/** Does broker support partial trade closing */
|
||||
supportPartialCloseTrade?: boolean;
|
||||
/** Cancelling a bracket cancels it's oco pair */
|
||||
supportCancellingBothBracketsOnly?: boolean;
|
||||
/** Does broker support crypto brackets */
|
||||
supportCryptoBrackets?: boolean;
|
||||
/** Does broker need to show notifications log */
|
||||
@@ -358,8 +397,6 @@ export interface BrokerConfigFlags {
|
||||
* Enabling this flag removes the direction check from the order dialog.
|
||||
*/
|
||||
supportStopOrdersInBothDirections?: boolean;
|
||||
cancellingBracketCancelsParentOrder?: boolean;
|
||||
cancellingOnePositionBracketsCancelsOther?: boolean;
|
||||
requiresFIFOCloseTrades?: boolean;
|
||||
/**
|
||||
* @deprecated
|
||||
@@ -457,6 +494,9 @@ export interface ChartingLibraryWidgetOptions {
|
||||
theme?: ThemeName;
|
||||
compare_symbols?: CompareSymbol[];
|
||||
custom_indicators_getter?: (PineJS: PineJS) => Promise<readonly CustomIndicator[]>;
|
||||
additional_symbol_info_fields?: AdditionalSymbolInfoField[];
|
||||
header_widget_buttons_mode?: HeaderWidgetButtonsMode;
|
||||
time_scale?: TimeScaleOptions;
|
||||
}
|
||||
export interface ClientSnapshotOptions {
|
||||
backgroundColor: string;
|
||||
@@ -499,6 +539,7 @@ export interface CreateStudyOptions {
|
||||
checkLimit?: boolean;
|
||||
priceScale?: StudyPriceScale;
|
||||
allowChangeCurrency?: boolean;
|
||||
allowChangeUnit?: boolean;
|
||||
disableUndo?: boolean;
|
||||
}
|
||||
export interface CreateStudyTemplateOptions {
|
||||
@@ -569,6 +610,7 @@ export interface DOMLevel {
|
||||
export interface DatafeedConfiguration {
|
||||
exchanges?: Exchange[];
|
||||
supported_resolutions?: ResolutionString[];
|
||||
units?: Record<string, Unit[]>;
|
||||
currency_codes?: string[];
|
||||
supports_marks?: boolean;
|
||||
supports_time?: boolean;
|
||||
@@ -604,11 +646,9 @@ export interface DateOrDateTime {
|
||||
export interface DefaultContextMenuActionsParams {
|
||||
}
|
||||
export interface DefaultDropdownActionsParams {
|
||||
showSellBuyButtons?: boolean;
|
||||
showDOM?: boolean;
|
||||
showOrderPanel?: boolean;
|
||||
tradingProperties?: boolean;
|
||||
showHowToUse?: boolean;
|
||||
restoreConfirmations?: boolean;
|
||||
}
|
||||
export interface DialogParams<CallbackType> {
|
||||
title: string;
|
||||
@@ -723,7 +763,7 @@ export interface IBrokerCommon {
|
||||
formatter?(symbol: string, alignToMinMove: boolean): Promise<INumberFormatter>;
|
||||
spreadFormatter?(symbol: string): Promise<INumberFormatter>;
|
||||
quantityFormatter?(symbol: string): Promise<INumberFormatter>;
|
||||
getOrderDialogOptions?(symbol: string): OrderDialogOptions | undefined;
|
||||
getOrderDialogOptions?(symbol: string): Promise<OrderDialogOptions | undefined>;
|
||||
getPositionDialogOptions?(): PositionDialogOptions | undefined;
|
||||
}
|
||||
export interface IBrokerConnectionAdapterFactory {
|
||||
@@ -772,8 +812,10 @@ export interface IBrokerConnectionAdapterHost {
|
||||
activateBottomWidget(): Promise<void>;
|
||||
showTradingProperties(): void;
|
||||
suggestedQty(): SuggestedQuantity;
|
||||
symbolSnapshot(symbol: string): Promise<QuotesBase>;
|
||||
showMessageDialog(caption: string, message: string): void;
|
||||
getSymbolMinTick(symbol: string): Promise<number>;
|
||||
showMessageDialog(title: string, text: string, textHasHTML: boolean): void;
|
||||
showConfirmDialog(title: string, content: string | string[], mainButtonText?: string, cancelButtonText?: string, showDisableConfirmationsCheckbox?: boolean): Promise<boolean>;
|
||||
showSimpleConfirmDialog(title: string, content: string | string[], mainButtonText?: string, cancelButtonText?: string, showDisableConfirmationsCheckbox?: boolean): Promise<boolean>;
|
||||
}
|
||||
export interface IBrokerTerminal extends IBrokerWithoutRealtime {
|
||||
subscribeRealtime(symbol: string): void;
|
||||
@@ -1028,6 +1070,8 @@ export interface ILineDataSourceApi {
|
||||
getPoints(): PricedPoint[];
|
||||
setPoints(points: ShapePoint[]): void;
|
||||
}
|
||||
export interface INumberFormatter extends IFormatter<number> {
|
||||
}
|
||||
export interface IObservable<T> {
|
||||
subscribe(callback: (value: T) => void): void;
|
||||
unsubscribe(callback: (value: T) => void): void;
|
||||
@@ -1413,6 +1457,9 @@ export interface LibrarySymbolInfo {
|
||||
industry?: string;
|
||||
currency_code?: string;
|
||||
original_currency_code?: string;
|
||||
unit_id?: string;
|
||||
original_unit_id?: string;
|
||||
unit_conversion_types?: string[];
|
||||
}
|
||||
export interface LineBreakStylePreferences {
|
||||
upColor: string;
|
||||
@@ -1498,14 +1545,20 @@ export interface OrderOrPositionMessage {
|
||||
type: OrderOrPositionMessageType;
|
||||
text: string;
|
||||
}
|
||||
export interface OrderPreviewInfoItem {
|
||||
export interface OrderPreviewResult {
|
||||
sections: OrderPreviewSection[];
|
||||
confirmId?: string;
|
||||
warnings?: string[];
|
||||
errors?: string[];
|
||||
}
|
||||
export interface OrderPreviewSection {
|
||||
rows: OrderPreviewSectionRow[];
|
||||
header?: string;
|
||||
}
|
||||
export interface OrderPreviewSectionRow {
|
||||
title: string;
|
||||
value: string;
|
||||
}
|
||||
export interface OrderPreviewResult {
|
||||
info: OrderPreviewInfoItem[];
|
||||
confirmId?: string;
|
||||
}
|
||||
export interface OrderRule {
|
||||
id: string;
|
||||
severity: "warning" | "error";
|
||||
@@ -1602,6 +1655,7 @@ export interface PreOrder extends OrderTemplate {
|
||||
side: Side;
|
||||
qty: number;
|
||||
seenPrice: number | null;
|
||||
isClose?: boolean;
|
||||
}
|
||||
export interface PricedPoint extends TimePoint {
|
||||
price: number;
|
||||
@@ -1622,16 +1676,6 @@ export interface QuoteOkData {
|
||||
n: string;
|
||||
v: DatafeedQuoteValues;
|
||||
}
|
||||
export interface QuotesBase {
|
||||
change: number;
|
||||
change_percent: number;
|
||||
last_price: number;
|
||||
fractional: boolean;
|
||||
minmov: number;
|
||||
minmove2: number;
|
||||
pricescale: number;
|
||||
description: string;
|
||||
}
|
||||
export interface RenkoStylePreferences {
|
||||
upColor: string;
|
||||
downColor: string;
|
||||
@@ -1762,7 +1806,7 @@ export interface SubscribeEventsMap {
|
||||
study: (params: StudyOrDrawingAddedToChartEventParams) => void;
|
||||
undo: EmptyCallback;
|
||||
redo: EmptyCallback;
|
||||
undoRedoStackChanged: (state: UndoRedoState) => void;
|
||||
undo_redo_state_changed: (state: UndoRedoState) => void;
|
||||
reset_scales: EmptyCallback;
|
||||
compare_add: EmptyCallback;
|
||||
add_compare: EmptyCallback;
|
||||
@@ -1777,7 +1821,9 @@ export interface SubscribeEventsMap {
|
||||
layout_about_to_be_changed: (newLayoutType: LayoutType) => void;
|
||||
layout_changed: EmptyCallback;
|
||||
activeChartChanged: (chartIndex: number) => void;
|
||||
drawing_event: (soursceId: string, drawingEventType: DrawingEventType) => void;
|
||||
series_event: (seriesEventType: SeriesEventType) => void;
|
||||
study_event: (entityId: EntityId, studyEventType: StudyEventType) => void;
|
||||
drawing_event: (sourceId: EntityId, drawingEventType: DrawingEventType) => void;
|
||||
study_properties_changed: (id: EntityId) => void;
|
||||
series_properties_changed: (id: EntityId) => void;
|
||||
panes_height_changed: () => void;
|
||||
@@ -1807,6 +1853,7 @@ export interface SymbolIntervalResult {
|
||||
}
|
||||
export interface SymbolResolveExtension {
|
||||
currencyCode?: string;
|
||||
unitId?: string;
|
||||
}
|
||||
export interface TableElementFormatter {
|
||||
name: string;
|
||||
@@ -1816,7 +1863,7 @@ export interface TableFormatterInputs {
|
||||
value: TableValue;
|
||||
prevValue?: number | undefined;
|
||||
row: TableRow;
|
||||
$container: JQuery;
|
||||
container: HTMLElement;
|
||||
priceFormatter?: INumberFormatter;
|
||||
}
|
||||
export interface TableRow {
|
||||
@@ -1858,6 +1905,9 @@ export interface TimeFrameTimeRange {
|
||||
export interface TimePoint {
|
||||
time: number;
|
||||
}
|
||||
export interface TimeScaleOptions {
|
||||
min_bar_spacing?: number;
|
||||
}
|
||||
export interface TimescaleMark {
|
||||
id: string | number;
|
||||
time: number;
|
||||
@@ -1917,6 +1967,11 @@ export interface UndoRedoState {
|
||||
readonly enableRedo: boolean;
|
||||
readonly redoText: string | undefined;
|
||||
}
|
||||
export interface Unit {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
}
|
||||
export interface UserTimeFieldDescriptor {
|
||||
type: "userTime";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user