openalgo-charts 2.3.1 → 2.3.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/README.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
**A from-scratch, dependency-free HTML5-canvas charting engine for OpenAlgo.**
|
|
6
6
|
|
|
7
|
-
Professional interactive charts, 102 built-in indicators plus your own custom ones, 85 drawing tools, order flow, market replay, linked chart grids, on-chart trading, vector SVG export and an optional WebGL2 backend. Eight lazy-loaded tiers, zero runtime dependencies,
|
|
7
|
+
Professional interactive charts, 102 built-in indicators plus your own custom ones, 85 drawing tools, order flow, market replay, linked chart grids, on-chart trading, vector SVG export and an optional WebGL2 backend. Eight lazy-loaded tiers, zero runtime dependencies, 77.23 KB Brotli for the base engine, and a one-call widget tier that adds the toolbar, drawing rail, dialogs and shortcuts.
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/openalgo-charts)
|
|
10
10
|
[](./LICENSE)
|
|
11
|
-
[](#size-budget)
|
|
12
12
|
[](#develop)
|
|
13
13
|
[](#principles)
|
|
14
14
|
|
|
@@ -43,11 +43,13 @@ Every chart in the [live gallery](https://marketcalls.github.io/openalgo-charts/
|
|
|
43
43
|
|
|
44
44
|
## Install
|
|
45
45
|
|
|
46
|
-
Current version: **2.3.
|
|
46
|
+
Current version: **2.3.2**.
|
|
47
47
|
|
|
48
|
-
This release
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
This release makes history repair follow the stream: one refresh a moment after
|
|
49
|
+
each bar closes, an immediate one when the stream skips a bucket, each fetching
|
|
50
|
+
only the tail; and a forming bar the builder opened mid-bucket takes its true
|
|
51
|
+
open from history instead of its first tick. See the
|
|
52
|
+
[2.3.2 changelog](./CHANGELOG.md#232).
|
|
51
53
|
|
|
52
54
|
```bash
|
|
53
55
|
npm install openalgo-charts
|
|
@@ -76,7 +78,7 @@ in front of npm rather than being places you upload to. A chart is one HTML file
|
|
|
76
78
|
```html
|
|
77
79
|
<div id="chart" style="width:100vw;height:100vh"></div>
|
|
78
80
|
<script type="module">
|
|
79
|
-
import { createChart } from 'https://unpkg.com/openalgo-charts@2.3.
|
|
81
|
+
import { createChart } from 'https://unpkg.com/openalgo-charts@2.3.2/dist/openalgo-charts.mjs';
|
|
80
82
|
const chart = createChart(document.getElementById('chart'), { timezone: 'Asia/Kolkata' });
|
|
81
83
|
chart.addSeries('candlestick').setData(bars);
|
|
82
84
|
</script>
|
|
@@ -116,7 +118,7 @@ Import only what you use. Each tier is a separate bundle that registers into the
|
|
|
116
118
|
|
|
117
119
|
| Import | Contents | Brotli |
|
|
118
120
|
|---|---|---|
|
|
119
|
-
| `openalgo-charts` | Engine, 13 chart types, panes & scales, primitives, registries, chart state, chart linking, bar cache, interval registry, trading overlay, SVG export, render backend port, OpenAlgo feeds |
|
|
121
|
+
| `openalgo-charts` | Engine, 13 chart types, panes & scales, primitives, registries, chart state, chart linking, bar cache, interval registry, trading overlay, SVG export, render backend port, OpenAlgo feeds | 77.23 KB |
|
|
120
122
|
| `openalgo-charts/indicators` | 102 built-in indicators, the `registerIndicator` contract for your own, and the Tier-2 (external-data) contract | 28.19 KB |
|
|
121
123
|
| `openalgo-charts/draw` | 85 drawing tools + a headless drawing controller, clipboard, settings schema, level palette, freehand geometry and SVG icons | 34.53 KB |
|
|
122
124
|
| `openalgo-charts/transform` | Heikin Ashi, Renko, Range bars, Line Break, Point & Figure, Kagi, and symbol arithmetic (`AAPL/MSFT`) | 4.44 KB |
|
|
@@ -125,7 +127,7 @@ Import only what you use. Each tier is a separate bundle that registers into the
|
|
|
125
127
|
| `openalgo-charts/webgl` | WebGL2 series backend: batched, analytically anti-aliased GPU rendering of the standard chart types behind `renderer: 'auto'`, with a session-long fallback to the 2D path | 6.38 KB |
|
|
126
128
|
| `openalgo-charts/widget` | The chart with its chrome in one call: `createWidget` adds a top bar, the drawing rail, a status line, the settings and indicator dialogs, drawing properties, a right-click menu, a keymap with a `?` panel and optional layout persistence. The only tier that ships DOM | 42.41 KB |
|
|
127
129
|
|
|
128
|
-
Everything together is **
|
|
130
|
+
Everything together is **215.76 KB Brotli**; a widget terminal (base + draw + indicators + widget, what one `createWidget` call loads) is 182.37 KB. Figures are measured from the 2.3.2 release build. The trade tier is listed as its delta over the base, so loading base + trade costs 84.84 KB.
|
|
129
131
|
|
|
130
132
|
## What's built
|
|
131
133
|
|
|
@@ -417,16 +419,16 @@ Enforced in CI by [`size-limit`](./.size-limit.json). Nothing is excluded, becau
|
|
|
417
419
|
|
|
418
420
|
| Bundle | Limit | Actual |
|
|
419
421
|
|---|---|---|
|
|
420
|
-
| Base engine |
|
|
421
|
-
| Base + trade |
|
|
422
|
+
| Base engine | 78 KB | 77.23 KB |
|
|
423
|
+
| Base + trade | 86 KB | 84.84 KB |
|
|
422
424
|
| Indicators tier | 30 KB | 28.19 KB |
|
|
423
425
|
| Draw tier | 36 KB | 34.53 KB |
|
|
424
426
|
| Transform tier | 6 KB | 4.44 KB |
|
|
425
427
|
| Profile tier | 15 KB | 14.96 KB |
|
|
426
428
|
| WebGL2 tier | 7 KB | 6.38 KB |
|
|
427
429
|
| Widget tier | 43 KB | 42.41 KB |
|
|
428
|
-
| Widget terminal (base + draw + indicators + widget) | 183 KB |
|
|
429
|
-
| **Everything** | 218 KB |
|
|
430
|
+
| Widget terminal (base + draw + indicators + widget) | 183 KB | 182.37 KB |
|
|
431
|
+
| **Everything** | 218 KB | 215.76 KB |
|
|
430
432
|
|
|
431
433
|
## Documentation
|
|
432
434
|
|
|
@@ -471,7 +473,7 @@ See [Contributing](./CONTRIBUTING.md) for setup, targeted checks, documentation
|
|
|
471
473
|
```bash
|
|
472
474
|
npm install # install dev toolchain
|
|
473
475
|
npm run typecheck # strict TypeScript check
|
|
474
|
-
npm test # unit tests (vitest) -
|
|
476
|
+
npm test # unit tests (vitest) - 5215 across 210 files
|
|
475
477
|
npm run build # Rollup -> dist/ (minified ESM per tier + types)
|
|
476
478
|
npm run size # size-limit (Brotli) against the budget
|
|
477
479
|
npm run e2e # Playwright Chromium smoke tests
|
|
@@ -488,7 +490,7 @@ npm run verify # lint + typecheck + test + build + demo tests + dts + size +
|
|
|
488
490
|
|
|
489
491
|
## Status & limitations
|
|
490
492
|
|
|
491
|
-
Version **2.3.
|
|
493
|
+
Version **2.3.2**. All engine build phases are implemented. Upgrading a 1.9.x host: [Migrating to 2.0](./docs/migrating-to-2.md).
|
|
492
494
|
|
|
493
495
|
Known gaps, stated plainly:
|
|
494
496
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Library version string. Matches package.json (including locally prepared releases). */
|
|
2
|
-
declare const VERSION = "2.3.
|
|
2
|
+
declare const VERSION = "2.3.2";
|
|
3
3
|
/** Returns the current library version. */
|
|
4
4
|
declare function version(): string;
|
|
5
5
|
|
|
@@ -6468,6 +6468,16 @@ interface CandleUpdate {
|
|
|
6468
6468
|
bar: Bar;
|
|
6469
6469
|
/** True when this tick started a new interval bar (append vs mutate-in-place). */
|
|
6470
6470
|
isNew: boolean;
|
|
6471
|
+
/**
|
|
6472
|
+
* True while the bar's open, high, low and volume cover only the ticks this
|
|
6473
|
+
* builder has seen. A bar is provisional when it was opened from a tick
|
|
6474
|
+
* without the builder having streamed the bar before it: a cold start, or a
|
|
6475
|
+
* seed from an older bucket, both of which mean the trades between the
|
|
6476
|
+
* bucket's true open and the first tick seen were missed. The close is still
|
|
6477
|
+
* the latest price. An authoritative bar for the same bucket, from history,
|
|
6478
|
+
* corrects the rest through `reconcile`.
|
|
6479
|
+
*/
|
|
6480
|
+
provisional?: boolean;
|
|
6471
6481
|
}
|
|
6472
6482
|
declare class CandleBuilder {
|
|
6473
6483
|
private readonly _opts;
|
|
@@ -6475,10 +6485,30 @@ declare class CandleBuilder {
|
|
|
6475
6485
|
private _cumAtBarStart;
|
|
6476
6486
|
private _lastCum;
|
|
6477
6487
|
private _hasCum;
|
|
6488
|
+
/** The current bar has received at least one tick, so a rollover from it sees the true open. */
|
|
6489
|
+
private _streamed;
|
|
6490
|
+
private _provisional;
|
|
6478
6491
|
constructor(options?: Partial<CandleBuilderOptions>);
|
|
6479
6492
|
/** Seed with the last historical bar so the first live tick continues it. */
|
|
6480
6493
|
seed(lastBar: Bar, cumDayVolumeSoFar?: number): void;
|
|
6481
6494
|
current(): Bar | null;
|
|
6495
|
+
/** Whether the current bar is provisional; see `CandleUpdate.provisional`. */
|
|
6496
|
+
isProvisional(): boolean;
|
|
6497
|
+
/**
|
|
6498
|
+
* Adopt an authoritative bar for the current bucket, typically the broker's
|
|
6499
|
+
* history for the bar that is still forming.
|
|
6500
|
+
*
|
|
6501
|
+
* A provisional bar takes the authoritative open, because its own is the
|
|
6502
|
+
* first tick this builder happened to see. Every bar takes the union of the
|
|
6503
|
+
* extremes, since both sides observed real prices, and the larger volume,
|
|
6504
|
+
* since volume inside a bar only grows. The close stays with the ticks: a
|
|
6505
|
+
* history snapshot was taken before the request went out, and a price that
|
|
6506
|
+
* jumps backwards on every repair is the one thing a live chart must not do.
|
|
6507
|
+
*
|
|
6508
|
+
* Returns the reconciled bar, or null when the builder holds no bar for that
|
|
6509
|
+
* bucket, in which case the caller decides whether to `seed` instead.
|
|
6510
|
+
*/
|
|
6511
|
+
reconcile(authoritative: Bar): Bar | null;
|
|
6482
6512
|
/** Bucket-start (bar-open) time for a tick, aligned to the session anchor. */
|
|
6483
6513
|
bucketStart(time: UTCSeconds): UTCSeconds;
|
|
6484
6514
|
/**
|
|
@@ -6964,6 +6994,17 @@ interface BarSubscriptionOptions {
|
|
|
6964
6994
|
*/
|
|
6965
6995
|
onResync?: () => void;
|
|
6966
6996
|
}
|
|
6997
|
+
/** What a live push knows about the bar beyond its values. */
|
|
6998
|
+
interface LiveBarMeta {
|
|
6999
|
+
/**
|
|
7000
|
+
* The bar's open, high, low and volume cover only the ticks its builder saw:
|
|
7001
|
+
* it opened the bucket from a tick without having streamed the bar before
|
|
7002
|
+
* it. See `CandleUpdate.provisional`. A consumer holding history for the
|
|
7003
|
+
* same bucket keeps that open and widens the extremes rather than replacing
|
|
7004
|
+
* them.
|
|
7005
|
+
*/
|
|
7006
|
+
provisional?: boolean;
|
|
7007
|
+
}
|
|
6967
7008
|
/**
|
|
6968
7009
|
* Broker-agnostic market-data source. The chart depends only on this.
|
|
6969
7010
|
* `subscribeBars` is optional: a history-only feed (e.g. `OpenAlgoDataFeed`) omits
|
|
@@ -6974,7 +7015,7 @@ interface DataFeed {
|
|
|
6974
7015
|
getBarsPage?(req: BarsPageRequest): Promise<BarsPage>;
|
|
6975
7016
|
/** Read a closed-bar snapshot without initiating a network request. */
|
|
6976
7017
|
getCachedBars?(req: BarsRequest): Promise<Bar[] | undefined>;
|
|
6977
|
-
subscribeBars?(req: BarsRequest, onBar: (bar: Bar) => void, opts?: BarSubscriptionOptions): UnsubscribeFn;
|
|
7018
|
+
subscribeBars?(req: BarsRequest, onBar: (bar: Bar, meta?: LiveBarMeta) => void, opts?: BarSubscriptionOptions): UnsubscribeFn;
|
|
6978
7019
|
/**
|
|
6979
7020
|
* `opts.depthLevel` requests a book depth (broker-dependent: 5/20/30/50).
|
|
6980
7021
|
* Named on the interface so a caller holding a `DataFeed` can ask for one;
|
|
@@ -7081,6 +7122,35 @@ interface DataLoadingOptions {
|
|
|
7081
7122
|
maxBars?: number;
|
|
7082
7123
|
/** Optional history repair cadence. Zero disables polling. */
|
|
7083
7124
|
pollIntervalMs?: number;
|
|
7125
|
+
/**
|
|
7126
|
+
* Repair the tail when a bar closes, driven by the stream rather than the
|
|
7127
|
+
* clock. A pushed bar that opens a new bucket means the bar before it has
|
|
7128
|
+
* just closed, so one refresh runs `delayMs` later (default 2500 ms), long
|
|
7129
|
+
* enough for a broker's history to have published the close. Nothing fires
|
|
7130
|
+
* while the stream is quiet, so a closed market costs no requests. When the
|
|
7131
|
+
* reply still stops short of the bar that closed, the repair retries
|
|
7132
|
+
* `retries` times (default 2), `retryDelayMs` apart (default 5000 ms).
|
|
7133
|
+
* Off by default.
|
|
7134
|
+
*/
|
|
7135
|
+
refreshOnBarClose?: boolean | {
|
|
7136
|
+
delayMs?: number;
|
|
7137
|
+
retries?: number;
|
|
7138
|
+
retryDelayMs?: number;
|
|
7139
|
+
};
|
|
7140
|
+
/**
|
|
7141
|
+
* Refresh at once when a pushed bar skips one or more whole buckets, which
|
|
7142
|
+
* is what a stream leaves behind after a dropped socket, a hidden tab or a
|
|
7143
|
+
* sleeping machine. Needs a fixed-length interval. Off by default.
|
|
7144
|
+
*/
|
|
7145
|
+
refreshOnGap?: boolean;
|
|
7146
|
+
/**
|
|
7147
|
+
* How many bars back from the tail a refresh re-fetches. Unset re-fetches
|
|
7148
|
+
* the whole load window on every refresh, which is what polling always did;
|
|
7149
|
+
* a small number turns each repair into a tail request. A gap repair widens
|
|
7150
|
+
* the window to cover the gap. Needs a fixed-length interval; any other
|
|
7151
|
+
* interval keeps the whole window.
|
|
7152
|
+
*/
|
|
7153
|
+
refreshWindowBars?: number;
|
|
7084
7154
|
/** UTC seconds. */
|
|
7085
7155
|
now?: () => number;
|
|
7086
7156
|
}
|
|
@@ -7109,6 +7179,14 @@ declare class DataLoadingController {
|
|
|
7109
7179
|
private _poll;
|
|
7110
7180
|
private _visible;
|
|
7111
7181
|
private _destroyed;
|
|
7182
|
+
/** Seconds per bar of the current request, null when the interval is not fixed-length. */
|
|
7183
|
+
private _seconds;
|
|
7184
|
+
/** Bucket whose open is only the first tick a builder saw, until history covers it. */
|
|
7185
|
+
private _provisionalTime;
|
|
7186
|
+
private _repairTimer;
|
|
7187
|
+
private _repairRetries;
|
|
7188
|
+
private _pendingRepair;
|
|
7189
|
+
private readonly _barClose;
|
|
7112
7190
|
constructor(feed: DataFeed, options?: DataLoadingOptions);
|
|
7113
7191
|
getState(): DataLoadingSnapshot;
|
|
7114
7192
|
bars(): readonly Bar[];
|
|
@@ -7116,8 +7194,23 @@ declare class DataLoadingController {
|
|
|
7116
7194
|
load(req: BarsRequest): Promise<readonly Bar[]>;
|
|
7117
7195
|
private _load;
|
|
7118
7196
|
refresh(): Promise<readonly Bar[]>;
|
|
7119
|
-
|
|
7120
|
-
|
|
7197
|
+
private _refresh;
|
|
7198
|
+
/**
|
|
7199
|
+
* Supply bars from an existing host subscription instead of subscribing twice.
|
|
7200
|
+
*
|
|
7201
|
+
* `meta.provisional` marks a bar whose open is only the first tick a builder
|
|
7202
|
+
* saw, see `CandleUpdate.provisional`. Pushed onto a bar history already
|
|
7203
|
+
* holds for that bucket, it keeps that bar's open and widens the extremes
|
|
7204
|
+
* instead of replacing them, so a repair that found the true open is not
|
|
7205
|
+
* undone by the next tick.
|
|
7206
|
+
*/
|
|
7207
|
+
pushBar(value: Bar, meta?: LiveBarMeta): void;
|
|
7208
|
+
/** The stream opened a bucket: the one before it closed, and any between were skipped. */
|
|
7209
|
+
private _onNewBucket;
|
|
7210
|
+
private _scheduleRepair;
|
|
7211
|
+
/** Run a repair now, or queue one behind the refresh already in flight rather than aborting it. */
|
|
7212
|
+
private _requestRepair;
|
|
7213
|
+
private _clearRepairTimer;
|
|
7121
7214
|
loadMore(): Promise<readonly Bar[]>;
|
|
7122
7215
|
private _loadMore;
|
|
7123
7216
|
setPaused(paused: boolean): void;
|
|
@@ -8030,7 +8123,7 @@ declare class OpenAlgoLiveDataFeed implements DataFeed {
|
|
|
8030
8123
|
* a `day-delta` builder diffs against the right baseline. Seeding applies to
|
|
8031
8124
|
* time-bucketed intervals: a count-driven bar cannot resume a historical one.
|
|
8032
8125
|
*/
|
|
8033
|
-
subscribeBars(req: BarsRequest, onBar: (bar: Bar) => void, opts?: BarSubscriptionOptions): UnsubscribeFn;
|
|
8126
|
+
subscribeBars(req: BarsRequest, onBar: (bar: Bar, meta?: LiveBarMeta) => void, opts?: BarSubscriptionOptions): UnsubscribeFn;
|
|
8034
8127
|
/** A broker may omit the tick timestamp; never bucket at the epoch, use now. */
|
|
8035
8128
|
private static _tickTime;
|
|
8036
8129
|
private _candleReader;
|
|
@@ -8429,7 +8522,7 @@ declare class BarCache implements DataFeed {
|
|
|
8429
8522
|
private _misses;
|
|
8430
8523
|
private _evictions;
|
|
8431
8524
|
constructor(feed: DataFeed, options?: BarCacheOptions);
|
|
8432
|
-
subscribeBars?: (req: BarsRequest, onBar: (bar: Bar) => void, ...rest: unknown[]) => UnsubscribeFn;
|
|
8525
|
+
subscribeBars?: (req: BarsRequest, onBar: (bar: Bar, meta?: LiveBarMeta) => void, ...rest: unknown[]) => UnsubscribeFn;
|
|
8433
8526
|
subscribeDepth?: (req: BarsRequest, onDepth: (depth: MarketDepth) => void, ...rest: unknown[]) => UnsubscribeFn;
|
|
8434
8527
|
getBarsPage?: (req: BarsPageRequest) => Promise<BarsPage>;
|
|
8435
8528
|
getBars(req: CachedBarsRequest): Promise<Bar[]>;
|
|
@@ -8663,4 +8756,4 @@ declare function lerp(a: number, b: number, t: number): number;
|
|
|
8663
8756
|
*/
|
|
8664
8757
|
declare function roundToTick(value: number, step: number): number;
|
|
8665
8758
|
|
|
8666
|
-
export { ALT_PRESET, type AddSeriesOptions, type AggTick, type AxisChromeOptions, type AxisStyle, BAR_CACHE_VERSION, BUILTIN_COMMANDS, type Bar, BarCache, type BarCacheOptions, type BarCacheStats, type BarCacheStore, 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 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 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, 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 IndicatorAlertSpec, type IndicatorApi, type IndicatorAttachContext, IndicatorBackground, type IndicatorCalcContext, type IndicatorDataChange, type IndicatorDataStatus, type IndicatorDescriptor, type IndicatorDrawing, IndicatorDrawings, IndicatorFill, type IndicatorFillOptions, type IndicatorFillSpec, type IndicatorHost, type IndicatorInput, type IndicatorLevel, type IndicatorLevelContext, type IndicatorLineStyle, type IndicatorPlot, type IndicatorSettings, type IndicatorSource, type IndicatorState, type IndicatorStore, type IndicatorValues, 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 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 PlotMarginOptions, type PointerInfo, type PointerKind, type PointerModifiers, type PointerSample, type PositionSide, 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 ReplayChartHost, ReplayController, type ReplayOptions, type ReplayScheduler, ReplayShade, type ReplayShadeOptions, type ReplayState, 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 TradingColors, TradingController, type TradingHost, type TradingLineStyle, type TradingLineVariant, 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, alignToPrimary, applyChartSettings, atr, autoscaleRange, backendDegradation, backoffDelayMs, barCacheKey, barCloseSec, beginPick, bestHit, bitmapSize, bucketStartOf, calendarPeriodFlags, candleGeometry, candleTier, chartSettingsSchema, clamp, classifyAuthAck, compactVolume, comparisonController, computePriceLevels, conflateBars, conflateItems, conflationGroupSize, createChart, createLinkGroup, createRenderBackend, darkTheme, dashPattern, decodeOrder, drawLabel, drawShape, effectiveMarkerPx, ema, emaSeries, epochMsToUtcSeconds, eventToCombo, followerIndex, followerRange, formatCombo, formatIstCrosshairLabel, formatIstDate, formatIstTime, formatIstTimeSeconds, formatSubscribe, formatUnsubscribe, formatZonedCrosshairLabel, formatZonedDate, formatZonedTime, formatZonedTimeSeconds, fromGradient, generateBars, getChartType, getIndicator, hasIndicator, inSessionAt, indicatorDefaults, indicatorStyleInputs, intervalParts, intervalToSeconds, isDailyInterval, isIntradayInterval, isKnownInterval, isNewIstDay, isNewZonedDay, isNewZonedMonth, isNewZonedPeriod, isNewZonedQuarter, isNewZonedWeek, isNewZonedYear, isRebasing, isReservedCombo, isSecondsInterval, isTickInterval, isTimeBucketed, isValidCombo, isValidTimezone, isWhitespace, istStringToUtcSeconds, lastPriceLevelFromSeriesStyle, lerp, lightTheme, mapHistoryResponse, mapOrder, mapOrderStatus, mapPosition, markerSizePx, mergeBars, nextBucketStart, niceTicks, normalizeCombo, optimalBarWidth, parseCombo, parseMessage, parseSessionSpec, parseTopic, plotStyleKeys, precisionForStep, readChartSettings, readSequence, registerChartType, registerIndicator, registerInterval, registerRenderBackend, 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, unregisterInterval, unregisterRenderBackend, utcSecondsToIstDateString, utcSecondsToIstParts, utcSecondsToZonedDateString, utcSecondsToZonedParts, version, verticalGradient, watermarkRect, withAlpha, withBarCache, zoneOffsetSeconds, zonedDayIndex, zonedStringToUtcSeconds, zonedWallClockToUtcSeconds, zonedWeekIndex };
|
|
8759
|
+
export { ALT_PRESET, type AddSeriesOptions, type AggTick, type AxisChromeOptions, type AxisStyle, BAR_CACHE_VERSION, BUILTIN_COMMANDS, type Bar, BarCache, type BarCacheOptions, type BarCacheStats, type BarCacheStore, 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 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 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, 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 IndicatorAlertSpec, type IndicatorApi, type IndicatorAttachContext, IndicatorBackground, type IndicatorCalcContext, type IndicatorDataChange, type IndicatorDataStatus, type IndicatorDescriptor, type IndicatorDrawing, IndicatorDrawings, IndicatorFill, type IndicatorFillOptions, type IndicatorFillSpec, type IndicatorHost, type IndicatorInput, type IndicatorLevel, type IndicatorLevelContext, type IndicatorLineStyle, type IndicatorPlot, type IndicatorSettings, type IndicatorSource, type IndicatorState, type IndicatorStore, type IndicatorValues, 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 PlotMarginOptions, type PointerInfo, type PointerKind, type PointerModifiers, type PointerSample, type PositionSide, 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 ReplayChartHost, ReplayController, type ReplayOptions, type ReplayScheduler, ReplayShade, type ReplayShadeOptions, type ReplayState, 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 TradingColors, TradingController, type TradingHost, type TradingLineStyle, type TradingLineVariant, 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, alignToPrimary, applyChartSettings, atr, autoscaleRange, backendDegradation, backoffDelayMs, barCacheKey, barCloseSec, beginPick, bestHit, bitmapSize, bucketStartOf, calendarPeriodFlags, candleGeometry, candleTier, chartSettingsSchema, clamp, classifyAuthAck, compactVolume, comparisonController, computePriceLevels, conflateBars, conflateItems, conflationGroupSize, createChart, createLinkGroup, createRenderBackend, darkTheme, dashPattern, decodeOrder, drawLabel, drawShape, effectiveMarkerPx, ema, emaSeries, epochMsToUtcSeconds, eventToCombo, followerIndex, followerRange, formatCombo, formatIstCrosshairLabel, formatIstDate, formatIstTime, formatIstTimeSeconds, formatSubscribe, formatUnsubscribe, formatZonedCrosshairLabel, formatZonedDate, formatZonedTime, formatZonedTimeSeconds, fromGradient, generateBars, getChartType, getIndicator, hasIndicator, inSessionAt, indicatorDefaults, indicatorStyleInputs, intervalParts, intervalToSeconds, isDailyInterval, isIntradayInterval, isKnownInterval, isNewIstDay, isNewZonedDay, isNewZonedMonth, isNewZonedPeriod, isNewZonedQuarter, isNewZonedWeek, isNewZonedYear, isRebasing, isReservedCombo, isSecondsInterval, isTickInterval, isTimeBucketed, isValidCombo, isValidTimezone, isWhitespace, istStringToUtcSeconds, lastPriceLevelFromSeriesStyle, lerp, lightTheme, mapHistoryResponse, mapOrder, mapOrderStatus, mapPosition, markerSizePx, mergeBars, nextBucketStart, niceTicks, normalizeCombo, optimalBarWidth, parseCombo, parseMessage, parseSessionSpec, parseTopic, plotStyleKeys, precisionForStep, readChartSettings, readSequence, registerChartType, registerIndicator, registerInterval, registerRenderBackend, 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, unregisterInterval, unregisterRenderBackend, utcSecondsToIstDateString, utcSecondsToIstParts, utcSecondsToZonedDateString, utcSecondsToZonedParts, version, verticalGradient, watermarkRect, withAlpha, withBarCache, zoneOffsetSeconds, zonedDayIndex, zonedStringToUtcSeconds, zonedWallClockToUtcSeconds, zonedWeekIndex };
|