openalgo-charts 2.5.0 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { TradingCapabilitySource as TradingCapabilitySource$1 } from 'openalgo-charts';
2
2
 
3
3
  /** Library version string. Matches package.json (including locally prepared releases). */
4
- declare const VERSION = "2.5.0";
4
+ declare const VERSION = "2.5.2";
5
5
  /** Returns the current library version. */
6
6
  declare function version(): string;
7
7
 
@@ -2389,6 +2389,23 @@ interface AlertControllerOptions {
2389
2389
  drawings?: AlertDrawingProvider;
2390
2390
  /** PriceLine visuals are enabled on chart hosts; disable for a model-only consumer. */
2391
2391
  visuals?: boolean;
2392
+ /**
2393
+ * Whether a spent alert keeps its line. Defaults to `'show'`.
2394
+ *
2395
+ * A triggered or expired alert is no longer watching anything, and the two
2396
+ * defensible things to do with its line are opposites. Keeping it is this
2397
+ * library's default and is why each lifecycle state has its own badge and
2398
+ * colour: the line says what became of the level, which is worth knowing on a
2399
+ * chart somebody has just come back to.
2400
+ *
2401
+ * `'hide'` is for the host where that reading does not pay. A terminal left
2402
+ * open through a session accumulates levels that will never fire again, and
2403
+ * past a certain number the ones still watching are the hardest to pick out
2404
+ * of them. The alert itself is untouched either way: it stays in `list()`,
2405
+ * keeps its lifecycle state, still refuses to fire twice, and gets its line
2406
+ * back if a host re-arms it. Only the drawing goes.
2407
+ */
2408
+ spentLines?: 'show' | 'hide';
2392
2409
  }
2393
2410
 
2394
2411
  /**
@@ -3560,30 +3577,78 @@ interface PickHost {
3560
3577
  */
3561
3578
  declare function beginPick(host: PickHost, kind: PickKind, cb: (value: number) => void): () => void;
3562
3579
 
3563
- /**
3564
- * Event markers (ARCHITECTURE.md §8.2): Earnings / Dividend / Split badges in a
3565
- * strip near the bottom of the plot. Time-anchored only (no price). Hover/click
3566
- * carry an external id for tooltip wiring. Data source is an integration concern
3567
- * (OpenAlgo has no corporate-actions calendar) — the renderer ships regardless.
3568
- */
3580
+ /** Time-anchored event badges. Event feeds and detail loading belong to the host. */
3569
3581
 
3582
+ interface EventDetailField {
3583
+ label: string;
3584
+ value: string;
3585
+ }
3586
+ /** Plain text detail content. No field is interpreted as markup. */
3587
+ interface ChartEventDetails {
3588
+ summary?: string;
3589
+ fields?: readonly EventDetailField[];
3590
+ }
3570
3591
  interface ChartEvent {
3592
+ /** Original UTC timestamp in seconds, including times between candles. */
3571
3593
  time: number;
3572
3594
  type: 'earnings' | 'dividend' | 'split' | 'news' | string;
3573
3595
  label: string;
3574
3596
  color?: string;
3575
3597
  id?: string;
3598
+ title?: string;
3599
+ details?: string | ChartEventDetails;
3600
+ group?: string;
3601
+ }
3602
+ interface EventGroup {
3603
+ id: string;
3604
+ label: string;
3605
+ parentId?: string;
3606
+ /** Local visibility. A hidden ancestor also hides this group. */
3607
+ visible?: boolean;
3608
+ }
3609
+ interface EventMarkersOptions {
3610
+ /** Combine nearby badges. Defaults to false. */
3611
+ clustering: boolean;
3612
+ /** Maximum distance between cluster members in CSS pixels, from 1 to 200. Default 18. */
3613
+ clusterRadius: number;
3614
+ }
3615
+ interface EventMarkerDetails {
3616
+ id: string;
3617
+ cluster: boolean;
3618
+ /** Independent copies, in timestamp order. */
3619
+ events: ChartEvent[];
3576
3620
  }
3577
3621
  declare class EventMarkers implements IPrimitive {
3578
- private _events;
3622
+ private _entries;
3623
+ private _groups;
3624
+ private _options;
3579
3625
  private _host;
3580
3626
  private _positions;
3627
+ private _hits;
3628
+ private _providedIds;
3629
+ private _duplicateIds;
3630
+ private _width;
3631
+ private _height;
3632
+ constructor(options?: Partial<EventMarkersOptions>);
3581
3633
  attached(host: PrimitiveHost): void;
3582
3634
  detached(): void;
3583
3635
  zOrder(): ZOrder;
3636
+ /** Replace data atomically. Caller mutations never change installed events. */
3584
3637
  setEvents(events: readonly ChartEvent[]): void;
3638
+ events(): ChartEvent[];
3639
+ /** Replace the hierarchy; duplicate IDs, missing parents and cycles are rejected. */
3640
+ setGroups(groups: readonly EventGroup[]): void;
3641
+ groups(): EventGroup[];
3642
+ setGroupVisible(id: string, visible: boolean): void;
3643
+ /** Ungrouped events and group IDs not yet configured remain visible. */
3644
+ isGroupVisible(id: string): boolean;
3645
+ setOptions(options: Partial<EventMarkersOptions>): void;
3646
+ options(): EventMarkersOptions;
3647
+ /** Resolve only hits from the latest layout, with independent member details. */
3648
+ detailsForHit(externalId: string): EventMarkerDetails | null;
3585
3649
  draw(ctx: CanvasRenderingContext2D, rc: PrimitiveRenderContext): void;
3586
3650
  hitTest(x: number, y: number): PrimitiveHit | null;
3651
+ private _invalidate;
3587
3652
  }
3588
3653
 
3589
3654
  /**
@@ -4394,6 +4459,15 @@ interface ChartClickEvent extends PointerInfo {
4394
4459
  ctrlKey: boolean;
4395
4460
  metaKey: boolean;
4396
4461
  }
4462
+ /** An event-strip click, including every member of a clustered marker. */
4463
+ interface ChartEventClick extends EventMarkerDetails {
4464
+ /** Chart-container CSS pixels, including the vertical offset of an event pane. */
4465
+ point: {
4466
+ x: number;
4467
+ y: number;
4468
+ };
4469
+ paneIndex: number;
4470
+ }
4397
4471
  /** Payload of the `drag` event: a draggable primitive being moved. */
4398
4472
  interface ChartDragEvent extends PointerInfo {
4399
4473
  id: string;
@@ -4785,7 +4859,7 @@ declare class Chart {
4785
4859
  /** Add a horizontal price line (order/SL/TP/alert/level) to a pane. */
4786
4860
  addPriceLine(opts: PriceLineOptions, paneIndex?: number): PriceLine;
4787
4861
  /** Add an earnings/dividend/split event-marker strip to a pane. */
4788
- addEventMarkers(paneIndex?: number): EventMarkers;
4862
+ addEventMarkers(paneIndex?: number, options?: Partial<EventMarkersOptions>): EventMarkers;
4789
4863
  /**
4790
4864
  * Hand the chart the corporate-action / news calendar and let it own the
4791
4865
  * strip. The difference from `addEventMarkers` is who filters: holding the
@@ -4793,9 +4867,16 @@ declare class Chart {
4793
4867
  * switches) turn a type off and back on without the host re-supplying data.
4794
4868
  */
4795
4869
  setEvents(events: readonly ChartEvent[], paneIndex?: number): void;
4870
+ /** The chart-owned strip, or null before events or strip options are supplied. */
4871
+ eventMarkers(): EventMarkers | null;
4872
+ /** Configure clustering without replacing event data or group visibility. */
4873
+ setEventMarkerOptions(options: Partial<EventMarkersOptions>): void;
4874
+ setEventGroups(groups: readonly EventGroup[]): void;
4875
+ setEventGroupVisible(id: string, visible: boolean): void;
4796
4876
  /** Turn event types on/off. Unlisted types stay visible. */
4797
4877
  setEventOptions(patch: ChartEventOptions): void;
4798
4878
  eventOptions(): ChartEventOptions;
4879
+ private _ensureEventMarkers;
4799
4880
  private _syncEvents;
4800
4881
  /**
4801
4882
  * Add a registered indicator. Built-in descriptors live in the lazy
@@ -6926,6 +7007,16 @@ declare function followerIndex(follower: LinkDataLayer, time: number, whenMissin
6926
7007
  */
6927
7008
  declare function followerRange(leader: LinkDataLayer, follower: LinkDataLayer, range: LogicalRange): LogicalRange | null;
6928
7009
 
7010
+ /** Visual settings use the chart-settings wire format without its data or trading fields. */
7011
+ type LinkAppearanceValues = Record<string, string | number | boolean>;
7012
+ /** The host owns reading and applying settings so linking needs no chart class or DOM. */
7013
+ interface LinkAppearanceAdapter {
7014
+ read(): Readonly<LinkAppearanceValues>;
7015
+ apply(values: Readonly<LinkAppearanceValues>): void;
7016
+ }
7017
+ /** Retain supported appearance fields, excluding instrument text, data, navigation and trades. */
7018
+ declare function filterLinkAppearance(values: Readonly<Partial<LinkAppearanceValues>>): LinkAppearanceValues;
7019
+
6929
7020
  /**
6930
7021
  * Chart linking groups: a grid of charts that behaves as one workspace.
6931
7022
  *
@@ -6933,7 +7024,7 @@ declare function followerRange(leader: LinkDataLayer, follower: LinkDataLayer, r
6933
7024
  * ships no DOM, so the host draws its own link badge / colour chips and decides
6934
7025
  * which charts belong to which group.
6935
7026
  *
6936
- * Four channels sync, each switchable on its own because a user routinely
7027
+ * Each channel switches independently because a user routinely
6937
7028
  * wants one without the others (mirror the cursor across four timeframes but
6938
7029
  * keep each zoom; or slave every chart's symbol but let each keep its own
6939
7030
  * window):
@@ -6942,6 +7033,7 @@ declare function followerRange(leader: LinkDataLayer, follower: LinkDataLayer, r
6942
7033
  * - **viewport**: panning or zooming one moves the others to the same window.
6943
7034
  * - **symbol**: changing the instrument on one changes it on the others.
6944
7035
  * - **interval**: changing a timeframe asks each following host to adopt it.
7036
+ * - **appearance**: visual settings pass through a structural host adapter.
6945
7037
  *
6946
7038
  * Four decisions carry the design.
6947
7039
  *
@@ -6954,7 +7046,7 @@ declare function followerRange(leader: LinkDataLayer, follower: LinkDataLayer, r
6954
7046
  * The engine's crosshair belongs to the pointer inside that chart; a linked
6955
7047
  * one is a second, weaker mark that must not fight it. See `./crosshair`.
6956
7048
  *
6957
- * 3. **One re-entrancy guard covers all three channels.** A syncs B, B echoes
7049
+ * 3. **One re-entrancy guard covers every channel.** A syncs B, B echoes
6958
7050
  * back to A, and the pair either oscillates forever or blows the stack. Any
6959
7051
  * member event that arrives *while the group is broadcasting* is an echo of
6960
7052
  * that broadcast by definition (a human cannot pan two charts in one call
@@ -6970,9 +7062,7 @@ declare function followerRange(leader: LinkDataLayer, follower: LinkDataLayer, r
6970
7062
  * dropped on the spot, which matters because `addPrimitive` on a destroyed
6971
7063
  * chart would resurrect a pane.
6972
7064
  *
6973
- * **The engine has no notion of a symbol**, and inventing one here would put an
6974
- * instrument concept in a charting engine that deliberately does not have one.
6975
- * So the host participates: it tells the group an instrument changed (by
7065
+ * The host owns instrument selection and loading. It tells the group a selection changed (by
6976
7066
  * emitting `'symbol'` on the chart's own event bus, or by calling `setSymbol`),
6977
7067
  * and it supplies the per-member `onSymbol` callback that actually loads the
6978
7068
  * new instrument's bars. A member without `onSymbol` broadcasts symbol changes
@@ -7013,10 +7103,14 @@ interface LinkOptions {
7013
7103
  symbol?: boolean;
7014
7104
  /** Mirror the timeframe, via each member's `onInterval`. Default false. */
7015
7105
  interval?: boolean;
7106
+ /** Copy visual chart settings through each member's adapter. Default false. */
7107
+ appearance?: boolean;
7016
7108
  /** What a follower does with an instant it has no bar for. Default 'nearest'. */
7017
7109
  whenMissing?: LinkMissingPolicy;
7018
7110
  }
7019
7111
  interface LinkMemberOptions {
7112
+ /** Visual settings only; no instrument, timeframe, study or trading state is copied. */
7113
+ appearance?: LinkAppearanceAdapter;
7020
7114
  /** The instrument this chart is showing right now, if the host tracks one. */
7021
7115
  symbol?: string;
7022
7116
  /**
@@ -7089,6 +7183,8 @@ declare class LinkGroup {
7089
7183
  setSymbol(chart: LinkChart, symbol: string): void;
7090
7184
  /** Report a host-owned interval selection; followers opt in through `onInterval`. */
7091
7185
  setInterval(chart: LinkChart, interval: string): void;
7186
+ /** Report an appearance edit. `style:change` does this automatically for settings patches. */
7187
+ syncAppearance(chart: LinkChart): void;
7092
7188
  /** Unlink everything: no listeners, no linked crosshairs, no references. */
7093
7189
  destroy(): void;
7094
7190
  private _onCrosshair;
@@ -9613,6 +9709,8 @@ declare class AlertController {
9613
9709
  private readonly _off;
9614
9710
  private readonly _now;
9615
9711
  private readonly _drawings;
9712
+ /** Whether a spent alert keeps its line; the host's choice, default 'show'. */
9713
+ private readonly _spentLines;
9616
9714
  private readonly _visuals;
9617
9715
  private _timer;
9618
9716
  private _timerAt;
@@ -9684,4 +9782,4 @@ declare function unregisterBarCondition(id: string): boolean;
9684
9782
  declare function getBarCondition(id: string): Readonly<BarCondition> | undefined;
9685
9783
  declare function registeredBarConditions(): readonly Readonly<BarCondition>[];
9686
9784
 
9687
- export { ALT_PRESET, type AddSeriesOptions, type AggTick, type Alert, type AlertAvailability, type AlertChartHost, type AlertCondition, AlertController, type AlertControllerOptions, type AlertDrawingInfo, type AlertDrawingLevel, type AlertDrawingProvider, type AlertDrawingValue, type AlertEventPayload, type AlertInput, type AlertPatch, type AlertPolicy, type AlertRepeat, type AlertScope, type AlertSource, type AlertState, type AlertTriggeredPayload, type AlertsDocument, type AxisChromeOptions, type AxisStyle, BAR_CACHE_VERSION, BUILTIN_COMMANDS, type Bar, BarCache, type BarCacheOptions, type BarCacheStats, type BarCacheStore, type BarCondition, type BarConditionAlertSource, type BarConditionContext, type BarSubscriptionOptions, type BarUpdate, type BarsPage, type BarsPageRequest, type BarsRequest, type BrandingChangedEvent, type Bucketing, BuySellButtons, type BuySellButtonsOptions, CHART_STATE_VERSION, type CachedBars, type CachedBarsRequest, type CalendarBucketing, type CalendarUnit, CandleBuilder, type CandleBuilderOptions, type CandleGeometry, type CandleStyle, type CandleTier, type CandleUpdate, Canvas2dBackend, type CanvasLineStyle, type CanvasOptions, Chart, type ChartClickEvent, type ChartDataContext, type ChartDataCsvOptions, type ChartDataUpdate, type ChartDragEndEvent, type ChartDragEvent, type ChartEvent, type ChartEventOptions, type ChartNavigationOptions, type ChartObjectCapabilities, type ChartObjectDefinition, type ChartObjectDrawing, type ChartObjectDrawingSource, type ChartObjectKind, type ChartObjectProvider, type ChartObjectSnapshot, ChartObjects, type ChartObjectsOptions, type ChartOptions, type ChartSettingsColorPairInput, type ChartSettingsInput, type ChartSettingsState, type ChartSettingsTab, type ChartSettingsTabId, type ChartSettingsValue, type ChartSettingsValues, type ChartState, ChartTable, type ChartTableOptions, type ChartTheme, type ChartWatermarkOptions, type ComparisonAlignment, type ComparisonBaseline, type ComparisonChartHost, ComparisonController, type ComparisonControllerOptions, type ComparisonHandle, type ComparisonMode, type ComparisonOptions, type ComparisonPane, type ContextMenuEvent, type ContextMenuTarget, type ContextMenuTargetKind, type CrosshairMoveEvent, type CrosshairOptions, type CrosshairStyle, type CustomShortcut, DEFAULT_CANDLE_BUILDER_OPTIONS, DEFAULT_CANDLE_STYLE, DEFAULT_CHART_TABLE_OPTIONS, DEFAULT_HISTOGRAM_STYLE, DEFAULT_KEYMAP, DEFAULT_PRICE_SCALE_OPTIONS, DEFAULT_THEME, DEFAULT_TIMEZONE, DEFAULT_TIME_NAVIGATOR_OPTIONS, DEFAULT_TIME_SCALE_OPTIONS, DEFAULT_TRADING_COLORS, DEFAULT_ZOOM_GLIDE_OPTIONS, type DataFeed, DataLayer, DataLoadingController, type DataLoadingOptions, type DataLoadingSnapshot, type DataLoadingStatus, type DataUpdateReason, type DecodedOrder, type DepthLevel, type DoubleClickAction, type DoubleClickEvent, type DrawAnchor, type DrawItem, type DrawingAlertSource, EventMarkers, type ExportSvgOptions, FakeDataFeed, type FeedScheduler, type FillGradient, type FillPoint, type GridAxisStyle, type GridOptions, type GridStyle, type HistogramStyle, type HistoryLoadingStatus, HistoryRequestPool, type HistoryRequestPoolOptions, INDICATOR_LINE_STYLES, INDICATOR_PLOT_STYLES, INDICATOR_SOURCES, type IPrimitive, type IRenderBackend, IST_OFFSET_SECONDS, type IndexedBar, type IndicatorAlertContext, type IndicatorAlertPayload, type IndicatorAlertSource, type IndicatorAlertSpec, type IndicatorApi, type IndicatorAttachContext, IndicatorBackground, type IndicatorBarsProvider, type IndicatorBarsRequest, type IndicatorCalcContext, type IndicatorDataChange, type IndicatorDataStatus, type IndicatorDescriptor, type IndicatorDrawing, IndicatorDrawings, IndicatorFill, type IndicatorFillOptions, type IndicatorFillSpec, type IndicatorHost, type IndicatorInput, IndicatorInputError, type IndicatorLevel, type IndicatorLevelContext, type IndicatorLineStyle, type IndicatorPlot, type IndicatorSettings, type IndicatorSource, type IndicatorState, type IndicatorStore, type IndicatorValues, Instrument, type InstrumentCalendar, type InstrumentMetadata, type InstrumentSession, type IntervalBucketing, type IntervalDescriptor, type IntervalParts, InvalidationLevel, type IstParts, type KeymapEntry, LINK_CROSSHAIR_ALPHA, type LateTickPolicy, type LegendField, type LegendStatusData, type LegendStatusLineOptions, type LegendStatusSource, type LegendTitleMode, type LegendValue, type LinePoint, type LinkChart, LinkCrosshair, type LinkDataLayer, LinkGroup, type LinkMemberOptions, type LinkMissingPolicy, type LinkOptions, type LiveBarMeta, type LogicalRange, LogoWatermark, type LogoWatermarkOptions, type LtpEvent, type MarkerPosition, type MarkerShape, type MarkerSize, type MarketDepth, type MarketPhase, type MarketPhaseFn, type MaybePromise, type ModeCheck, type OpenAlgoConfig, OpenAlgoDataFeed, type OpenAlgoLiveConfig, OpenAlgoLiveDataFeed, type OpenAlgoTradeConfig, OpenAlgoTradeFeed, type OpenAlgoWsConfig, OpenAlgoWsFeed, type OrderBookSnapshot, type OrderDecodeCode, type OrderDecodeIssue, type OrderDecodeResult, type OrderSide$1 as OrderSide, type OrderType$1 as OrderType, type OrderUpdateEvent, type OriginalTime, PRICE_LEVEL_KINDS, PRICE_SCALE_MODES, Pane, type PaneInvalidation, PaneLegend, type PaneLegendAction, type PaneLegendOptions, type PaneState, type PickHost, type PickKind, type PlaceOrder, type PlotBarColor, type PlotMarginOptions, type PointerInfo, type PointerKind, type PointerModifiers, type PointerSample, type PositionSide, type PriceAlertSource, type PriceAxisState, type PriceFormat, type PriceLevelInput, type PriceLevelKind, type PriceLevelQuote, type PriceLevelStyle, type PriceLevelValues, PriceLevels, type PriceLevelsOptions, PriceLine, type PriceLineOptions, type PriceRange, PriceScale, type PriceScaleId, type PriceScaleMode, type PriceScaleOptions, type PriceScaleState, type PrimitiveAnchor, type PrimitiveHit, type PrimitiveHost, type PrimitivePlacement, type PrimitiveRenderContext, type QuarantinedRow, type RawOrder, type RenderBackendFactory, type RenderBackendKind, type RenderDevice, type RendererChoice, type RendererEntry, type RendererFallbackEvent, type RendererFallbackReason, type ReplayBarEndTime, type ReplayChartHost, ReplayController, ReplayGroup, type ReplayGroupChartHost, type ReplayGroupMember, type ReplayGroupOptions, type ReplayGroupState, type ReplayOptions, type ReplayScheduler, type ReplayScope, ReplayShade, type ReplayShadeOptions, type ReplayState, type ReplayTiming, type ReplayViewport, type ResolvedLinkOptions, type RestoreReport, SCALE_FONT_MAX, SCALE_FONT_MIN, type ScaleCanvasOptions, type SeriesApi, type SeriesDataItem, type SeriesId, type SeriesMarker, SeriesMarkers, type SeriesRenderContext, type SeriesState, type SeriesStyle, type SeriesType, type SessionSpec, type ShortcutListItem, ShortcutManager, type ShortcutManagerOptions, type ShortcutPreset, type ShortcutScope, type ShortcutTriggerEvent, type Size, type SocketFactory, type SocketLike, type SupertrendPoint, SvgContext, type SvgContextOptions, SvgLinearGradient, type TableCell, type TablePosition, TextWatermark, type TextWatermarkOptions, type Tick, TickBarAggregator, type TickBarOptions, type TickCountBucketing, type TickMarkType, type TickTimeframe, TimeNavigator, type TimeNavigatorAction, type TimeNavigatorOptions, TimeScale, type TimeScaleOp, type TimeScaleOptions, type TradeFeed, type TradeMarkerVariant, TradeMarkersPrimitive, type TradingCapabilities, TradingCapabilityError, type TradingCapabilityRequest, type TradingCapabilityResult, type TradingCapabilitySource, type TradingColors, TradingController, type TradingHost, type TradingLineStyle, type TradingLineVariant, type TradingOperation, type TradingOrder, type TradingOrderSide, type TradingOrderType, type TradingPosition, type TradingSettings, type TradingSyncPayload, type TradingTrade, type UTCSeconds, UnknownIntervalError, type UnsubscribeFn, VERSION, type VolumeBucketing, type VolumeMode, type WatermarkPosition, type Whitespace, type WsClientWarning, type WsControlMessage, type WsMode, type WsState, type ZOrder, type ZonedParts, type ZonedPeriod, type ZoomAnchor, ZoomGlide, type ZoomGlideOptions, addComparison, alertSettingsSchema, alignToPrimary, applyChartSettings, assertTradingCapability, atr, autoscaleRange, backendDegradation, backoffDelayMs, barCacheKey, barCloseSec, beginPick, bestHit, bitmapSize, bucketStartOf, calendarPeriodFlags, candleGeometry, candleTier, chartSettingsSchema, checkTradingCapability, clamp, classifyAuthAck, compactVolume, comparisonController, computePriceLevels, conflateBars, conflateItems, conflationGroupSize, createChart, createLinkGroup, createRenderBackend, darkTheme, dashPattern, decodeOrder, drawLabel, drawShape, effectiveMarkerPx, ema, emaSeries, epochMsToUtcSeconds, eventToCombo, exportChartDataCsv, followerIndex, followerRange, formatCombo, formatIstCrosshairLabel, formatIstDate, formatIstTime, formatIstTimeSeconds, formatSubscribe, formatUnsubscribe, formatZonedCrosshairLabel, formatZonedDate, formatZonedTime, formatZonedTimeSeconds, fromGradient, generateBars, getBarCondition, getChartType, getIndicator, hasIndicator, inSessionAt, indicatorDefaults, indicatorStyleInputs, intervalParts, intervalToSeconds, isDailyInterval, isIntradayInterval, isKnownInterval, isNewIstDay, isNewZonedDay, isNewZonedMonth, isNewZonedPeriod, isNewZonedQuarter, isNewZonedWeek, isNewZonedYear, isRebasing, isReplaying, isReservedCombo, isSecondsInterval, isTickInterval, isTimeBucketed, isValidCombo, isValidTimezone, isWhitespace, istStringToUtcSeconds, lastPriceLevelFromSeriesStyle, lerp, lightTheme, mapHistoryResponse, mapOrder, mapOrderStatus, mapPosition, markerSizePx, mergeBars, nextBucketStart, niceTicks, normalizeCombo, optimalBarWidth, parseAlertsDocument, parseCombo, parseMessage, parseSessionSpec, parseTopic, plotStyleKeys, precisionForStep, readChartSettings, readSequence, registerBarCondition, registerChartType, registerIndicator, registerInterval, registerRenderBackend, registeredBarConditions, registeredChartTypes, registeredIndicators, registeredIntervals, registeredRenderBackends, resolveCrosshairStyle, resolveGridStyle, resolveInterval, resolvePlotMargins, resolveRenderBackend, resolveScaleStyle, roundToTick, rowTimeToUtcSeconds, rsi, rsiSeries, seriesStyleForLastPriceLevel, sessionFlags, sessionStartFlags, sessionStartIndices, sharedHistoryRequests, snapToDevicePixel, sourceValue, sourceValues, startOfZonedDay, startOfZonedMonth, startOfZonedWeek, supertrend, supertrendSeries, tableOrigin, toBar, trueRange, tryResolveInterval, unregisterBarCondition, unregisterInterval, unregisterRenderBackend, utcSecondsToIstDateString, utcSecondsToIstParts, utcSecondsToZonedDateString, utcSecondsToZonedParts, version, verticalGradient, watermarkRect, withAlpha, withBarCache, zoneOffsetSeconds, zonedDayIndex, zonedStringToUtcSeconds, zonedWallClockToUtcSeconds, zonedWeekIndex };
9785
+ export { ALT_PRESET, type AddSeriesOptions, type AggTick, type Alert, type AlertAvailability, type AlertChartHost, type AlertCondition, AlertController, type AlertControllerOptions, type AlertDrawingInfo, type AlertDrawingLevel, type AlertDrawingProvider, type AlertDrawingValue, type AlertEventPayload, type AlertInput, type AlertPatch, type AlertPolicy, type AlertRepeat, type AlertScope, type AlertSource, type AlertState, type AlertTriggeredPayload, type AlertsDocument, type AxisChromeOptions, type AxisStyle, BAR_CACHE_VERSION, BUILTIN_COMMANDS, type Bar, BarCache, type BarCacheOptions, type BarCacheStats, type BarCacheStore, type BarCondition, type BarConditionAlertSource, type BarConditionContext, type BarSubscriptionOptions, type BarUpdate, type BarsPage, type BarsPageRequest, type BarsRequest, type BrandingChangedEvent, type Bucketing, BuySellButtons, type BuySellButtonsOptions, CHART_STATE_VERSION, type CachedBars, type CachedBarsRequest, type CalendarBucketing, type CalendarUnit, CandleBuilder, type CandleBuilderOptions, type CandleGeometry, type CandleStyle, type CandleTier, type CandleUpdate, Canvas2dBackend, type CanvasLineStyle, type CanvasOptions, Chart, type ChartClickEvent, type ChartDataContext, type ChartDataCsvOptions, type ChartDataUpdate, type ChartDragEndEvent, type ChartDragEvent, type ChartEvent, type ChartEventClick, type ChartEventDetails, type ChartEventOptions, type ChartNavigationOptions, type ChartObjectCapabilities, type ChartObjectDefinition, type ChartObjectDrawing, type ChartObjectDrawingSource, type ChartObjectKind, type ChartObjectProvider, type ChartObjectSnapshot, ChartObjects, type ChartObjectsOptions, type ChartOptions, type ChartSettingsColorPairInput, type ChartSettingsInput, type ChartSettingsState, type ChartSettingsTab, type ChartSettingsTabId, type ChartSettingsValue, type ChartSettingsValues, type ChartState, ChartTable, type ChartTableOptions, type ChartTheme, type ChartWatermarkOptions, type ComparisonAlignment, type ComparisonBaseline, type ComparisonChartHost, ComparisonController, type ComparisonControllerOptions, type ComparisonHandle, type ComparisonMode, type ComparisonOptions, type ComparisonPane, type ContextMenuEvent, type ContextMenuTarget, type ContextMenuTargetKind, type CrosshairMoveEvent, type CrosshairOptions, type CrosshairStyle, type CustomShortcut, DEFAULT_CANDLE_BUILDER_OPTIONS, DEFAULT_CANDLE_STYLE, DEFAULT_CHART_TABLE_OPTIONS, DEFAULT_HISTOGRAM_STYLE, DEFAULT_KEYMAP, DEFAULT_PRICE_SCALE_OPTIONS, DEFAULT_THEME, DEFAULT_TIMEZONE, DEFAULT_TIME_NAVIGATOR_OPTIONS, DEFAULT_TIME_SCALE_OPTIONS, DEFAULT_TRADING_COLORS, DEFAULT_ZOOM_GLIDE_OPTIONS, type DataFeed, DataLayer, DataLoadingController, type DataLoadingOptions, type DataLoadingSnapshot, type DataLoadingStatus, type DataUpdateReason, type DecodedOrder, type DepthLevel, type DoubleClickAction, type DoubleClickEvent, type DrawAnchor, type DrawItem, type DrawingAlertSource, type EventDetailField, type EventGroup, type EventMarkerDetails, EventMarkers, type EventMarkersOptions, type ExportSvgOptions, FakeDataFeed, type FeedScheduler, type FillGradient, type FillPoint, type GridAxisStyle, type GridOptions, type GridStyle, type HistogramStyle, type HistoryLoadingStatus, HistoryRequestPool, type HistoryRequestPoolOptions, INDICATOR_LINE_STYLES, INDICATOR_PLOT_STYLES, INDICATOR_SOURCES, type IPrimitive, type IRenderBackend, IST_OFFSET_SECONDS, type IndexedBar, type IndicatorAlertContext, type IndicatorAlertPayload, type IndicatorAlertSource, type IndicatorAlertSpec, type IndicatorApi, type IndicatorAttachContext, IndicatorBackground, type IndicatorBarsProvider, type IndicatorBarsRequest, type IndicatorCalcContext, type IndicatorDataChange, type IndicatorDataStatus, type IndicatorDescriptor, type IndicatorDrawing, IndicatorDrawings, IndicatorFill, type IndicatorFillOptions, type IndicatorFillSpec, type IndicatorHost, type IndicatorInput, IndicatorInputError, type IndicatorLevel, type IndicatorLevelContext, type IndicatorLineStyle, type IndicatorPlot, type IndicatorSettings, type IndicatorSource, type IndicatorState, type IndicatorStore, type IndicatorValues, Instrument, type InstrumentCalendar, type InstrumentMetadata, type InstrumentSession, type IntervalBucketing, type IntervalDescriptor, type IntervalParts, InvalidationLevel, type IstParts, type KeymapEntry, LINK_CROSSHAIR_ALPHA, type LateTickPolicy, type LegendField, type LegendStatusData, type LegendStatusLineOptions, type LegendStatusSource, type LegendTitleMode, type LegendValue, type LinePoint, type LinkAppearanceAdapter, type LinkAppearanceValues, type LinkChart, LinkCrosshair, type LinkDataLayer, LinkGroup, type LinkMemberOptions, type LinkMissingPolicy, type LinkOptions, type LiveBarMeta, type LogicalRange, LogoWatermark, type LogoWatermarkOptions, type LtpEvent, type MarkerPosition, type MarkerShape, type MarkerSize, type MarketDepth, type MarketPhase, type MarketPhaseFn, type MaybePromise, type ModeCheck, type OpenAlgoConfig, OpenAlgoDataFeed, type OpenAlgoLiveConfig, OpenAlgoLiveDataFeed, type OpenAlgoTradeConfig, OpenAlgoTradeFeed, type OpenAlgoWsConfig, OpenAlgoWsFeed, type OrderBookSnapshot, type OrderDecodeCode, type OrderDecodeIssue, type OrderDecodeResult, type OrderSide$1 as OrderSide, type OrderType$1 as OrderType, type OrderUpdateEvent, type OriginalTime, PRICE_LEVEL_KINDS, PRICE_SCALE_MODES, Pane, type PaneInvalidation, PaneLegend, type PaneLegendAction, type PaneLegendOptions, type PaneState, type PickHost, type PickKind, type PlaceOrder, type PlotBarColor, type PlotMarginOptions, type PointerInfo, type PointerKind, type PointerModifiers, type PointerSample, type PositionSide, type PriceAlertSource, type PriceAxisState, type PriceFormat, type PriceLevelInput, type PriceLevelKind, type PriceLevelQuote, type PriceLevelStyle, type PriceLevelValues, PriceLevels, type PriceLevelsOptions, PriceLine, type PriceLineOptions, type PriceRange, PriceScale, type PriceScaleId, type PriceScaleMode, type PriceScaleOptions, type PriceScaleState, type PrimitiveAnchor, type PrimitiveHit, type PrimitiveHost, type PrimitivePlacement, type PrimitiveRenderContext, type QuarantinedRow, type RawOrder, type RenderBackendFactory, type RenderBackendKind, type RenderDevice, type RendererChoice, type RendererEntry, type RendererFallbackEvent, type RendererFallbackReason, type ReplayBarEndTime, type ReplayChartHost, ReplayController, ReplayGroup, type ReplayGroupChartHost, type ReplayGroupMember, type ReplayGroupOptions, type ReplayGroupState, type ReplayOptions, type ReplayScheduler, type ReplayScope, ReplayShade, type ReplayShadeOptions, type ReplayState, type ReplayTiming, type ReplayViewport, type ResolvedLinkOptions, type RestoreReport, SCALE_FONT_MAX, SCALE_FONT_MIN, type ScaleCanvasOptions, type SeriesApi, type SeriesDataItem, type SeriesId, type SeriesMarker, SeriesMarkers, type SeriesRenderContext, type SeriesState, type SeriesStyle, type SeriesType, type SessionSpec, type ShortcutListItem, ShortcutManager, type ShortcutManagerOptions, type ShortcutPreset, type ShortcutScope, type ShortcutTriggerEvent, type Size, type SocketFactory, type SocketLike, type SupertrendPoint, SvgContext, type SvgContextOptions, SvgLinearGradient, type TableCell, type TablePosition, TextWatermark, type TextWatermarkOptions, type Tick, TickBarAggregator, type TickBarOptions, type TickCountBucketing, type TickMarkType, type TickTimeframe, TimeNavigator, type TimeNavigatorAction, type TimeNavigatorOptions, TimeScale, type TimeScaleOp, type TimeScaleOptions, type TradeFeed, type TradeMarkerVariant, TradeMarkersPrimitive, type TradingCapabilities, TradingCapabilityError, type TradingCapabilityRequest, type TradingCapabilityResult, type TradingCapabilitySource, type TradingColors, TradingController, type TradingHost, type TradingLineStyle, type TradingLineVariant, type TradingOperation, type TradingOrder, type TradingOrderSide, type TradingOrderType, type TradingPosition, type TradingSettings, type TradingSyncPayload, type TradingTrade, type UTCSeconds, UnknownIntervalError, type UnsubscribeFn, VERSION, type VolumeBucketing, type VolumeMode, type WatermarkPosition, type Whitespace, type WsClientWarning, type WsControlMessage, type WsMode, type WsState, type ZOrder, type ZonedParts, type ZonedPeriod, type ZoomAnchor, ZoomGlide, type ZoomGlideOptions, addComparison, alertSettingsSchema, alignToPrimary, applyChartSettings, assertTradingCapability, atr, autoscaleRange, backendDegradation, backoffDelayMs, barCacheKey, barCloseSec, beginPick, bestHit, bitmapSize, bucketStartOf, calendarPeriodFlags, candleGeometry, candleTier, chartSettingsSchema, checkTradingCapability, clamp, classifyAuthAck, compactVolume, comparisonController, computePriceLevels, conflateBars, conflateItems, conflationGroupSize, createChart, createLinkGroup, createRenderBackend, darkTheme, dashPattern, decodeOrder, drawLabel, drawShape, effectiveMarkerPx, ema, emaSeries, epochMsToUtcSeconds, eventToCombo, exportChartDataCsv, filterLinkAppearance, followerIndex, followerRange, formatCombo, formatIstCrosshairLabel, formatIstDate, formatIstTime, formatIstTimeSeconds, formatSubscribe, formatUnsubscribe, formatZonedCrosshairLabel, formatZonedDate, formatZonedTime, formatZonedTimeSeconds, fromGradient, generateBars, getBarCondition, getChartType, getIndicator, hasIndicator, inSessionAt, indicatorDefaults, indicatorStyleInputs, intervalParts, intervalToSeconds, isDailyInterval, isIntradayInterval, isKnownInterval, isNewIstDay, isNewZonedDay, isNewZonedMonth, isNewZonedPeriod, isNewZonedQuarter, isNewZonedWeek, isNewZonedYear, isRebasing, isReplaying, isReservedCombo, isSecondsInterval, isTickInterval, isTimeBucketed, isValidCombo, isValidTimezone, isWhitespace, istStringToUtcSeconds, lastPriceLevelFromSeriesStyle, lerp, lightTheme, mapHistoryResponse, mapOrder, mapOrderStatus, mapPosition, markerSizePx, mergeBars, nextBucketStart, niceTicks, normalizeCombo, optimalBarWidth, parseAlertsDocument, parseCombo, parseMessage, parseSessionSpec, parseTopic, plotStyleKeys, precisionForStep, readChartSettings, readSequence, registerBarCondition, registerChartType, registerIndicator, registerInterval, registerRenderBackend, registeredBarConditions, registeredChartTypes, registeredIndicators, registeredIntervals, registeredRenderBackends, resolveCrosshairStyle, resolveGridStyle, resolveInterval, resolvePlotMargins, resolveRenderBackend, resolveScaleStyle, roundToTick, rowTimeToUtcSeconds, rsi, rsiSeries, seriesStyleForLastPriceLevel, sessionFlags, sessionStartFlags, sessionStartIndices, sharedHistoryRequests, snapToDevicePixel, sourceValue, sourceValues, startOfZonedDay, startOfZonedMonth, startOfZonedWeek, supertrend, supertrendSeries, tableOrigin, toBar, trueRange, tryResolveInterval, unregisterBarCondition, unregisterInterval, unregisterRenderBackend, utcSecondsToIstDateString, utcSecondsToIstParts, utcSecondsToZonedDateString, utcSecondsToZonedParts, version, verticalGradient, watermarkRect, withAlpha, withBarCache, zoneOffsetSeconds, zonedDayIndex, zonedStringToUtcSeconds, zonedWallClockToUtcSeconds, zonedWeekIndex };