@luxalgo/vela 0.5.4 → 0.6.1
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/{DataProvider-DgS2UyMc.d.cts → DataProvider-BNKtYU5V.d.cts} +22 -3
- package/dist/{DataProvider-Cqc_BaJ9.d.ts → DataProvider-gJjN_0eh.d.ts} +22 -3
- package/dist/{chunk-D6WM5IUE.js → chunk-4MQEG67Z.js} +77 -18
- package/dist/{chunk-JBQUY2RI.js → chunk-6LZJRO2S.js} +48 -18
- package/dist/{contributions-DuIxJWeH.d.ts → contributions-D64UA74H.d.cts} +9 -2
- package/dist/{contributions-4Nh1jbvb.d.cts → contributions-lPAgo9Cu.d.ts} +9 -2
- package/dist/{history-FsmvCIo4.d.ts → history-CVoFDJ2D.d.ts} +21 -3
- package/dist/{history-HofqYEh2.d.cts → history-fSMXVLt1.d.cts} +21 -3
- package/dist/index.cjs +77 -18
- package/dist/index.d.cts +14 -6
- package/dist/index.d.ts +14 -6
- package/dist/index.js +1 -1
- package/dist/{options-BlQ00Fju.d.cts → options-BqGeFHtp.d.cts} +15 -1
- package/dist/{options-BlQ00Fju.d.ts → options-BqGeFHtp.d.ts} +15 -1
- package/dist/{plugin-DJR6z3e0.d.cts → plugin-D5ni4WEJ.d.cts} +3 -3
- package/dist/{plugin-N_EaXN4-.d.ts → plugin-o5HJH46Z.d.ts} +3 -3
- package/dist/plugin.d.cts +4 -4
- package/dist/plugin.d.ts +4 -4
- package/dist/providers/binance.d.cts +2 -2
- package/dist/providers/binance.d.ts +2 -2
- package/dist/providers/coinbase.d.cts +2 -2
- package/dist/providers/coinbase.d.ts +2 -2
- package/dist/providers/hyperliquid.d.cts +2 -2
- package/dist/providers/hyperliquid.d.ts +2 -2
- package/dist/ui.d.cts +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/vela.global.js +77 -18
- package/dist/vela.global.min.js +29 -29
- package/dist/widget.cjs +175 -40
- package/dist/widget.d.cts +23 -15
- package/dist/widget.d.ts +23 -15
- package/dist/widget.js +56 -10
- package/dist/workspace.cjs +172 -36
- package/dist/workspace.d.cts +20 -5
- package/dist/workspace.d.ts +20 -5
- package/dist/workspace.js +52 -5
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { V as VisibleRangePreset } from './options-
|
|
2
|
-
import { D as DataProvider } from './DataProvider-
|
|
3
|
-
import { S as ScriptingEngine, V as Vela } from './contributions-
|
|
1
|
+
import { V as VisibleRangePreset } from './options-BqGeFHtp.cjs';
|
|
2
|
+
import { D as DataProvider } from './DataProvider-BNKtYU5V.cjs';
|
|
3
|
+
import { S as ScriptingEngine, V as Vela } from './contributions-D64UA74H.cjs';
|
|
4
4
|
|
|
5
5
|
interface RangePreset {
|
|
6
6
|
/** Button label. */
|
|
@@ -27,6 +27,8 @@ interface BottombarOptions {
|
|
|
27
27
|
timezone: string;
|
|
28
28
|
onRange: (preset: RangePreset) => void;
|
|
29
29
|
onTimezone: (zone: string) => void;
|
|
30
|
+
/** RTH/ETH toggled by the user. Fires only while the toggle is ENABLED (see {@link Bottombar.setSession}). */
|
|
31
|
+
onSession?: (session: 'regular' | 'extended') => void;
|
|
30
32
|
onSettingsClick?: () => void;
|
|
31
33
|
}
|
|
32
34
|
declare class Bottombar {
|
|
@@ -37,12 +39,24 @@ declare class Bottombar {
|
|
|
37
39
|
private readonly tzMenu;
|
|
38
40
|
private readonly settingsTip;
|
|
39
41
|
private readonly rangeButtons;
|
|
42
|
+
private readonly sessionButtons;
|
|
43
|
+
private sessionEl;
|
|
40
44
|
private timezone;
|
|
41
45
|
private timer;
|
|
42
46
|
constructor(host: HTMLElement, opts: BottombarOptions);
|
|
43
47
|
setTimezone(zone: string): void;
|
|
44
48
|
/** Highlight (or clear with null) the active range chip — cleared on manual tf changes. */
|
|
45
49
|
setActiveRange(id: string | null): void;
|
|
50
|
+
/**
|
|
51
|
+
* Reflect the ACTIVE chart's session posture. `enabled: false` (a continuous
|
|
52
|
+
* market, or metadata not landed yet) shows the disabled RTH-active stub — the
|
|
53
|
+
* pre-session-model look, byte-for-byte. Enabled, the chips become clickable and
|
|
54
|
+
* the active one tracks the chart's current session.
|
|
55
|
+
*/
|
|
56
|
+
setSession(state: {
|
|
57
|
+
session: 'regular' | 'extended';
|
|
58
|
+
enabled: boolean;
|
|
59
|
+
}): void;
|
|
46
60
|
destroy(): void;
|
|
47
61
|
private tzItems;
|
|
48
62
|
private tick;
|
|
@@ -130,6 +144,8 @@ interface CellState {
|
|
|
130
144
|
timeframe?: string;
|
|
131
145
|
priceStyle?: string;
|
|
132
146
|
bars?: number;
|
|
147
|
+
/** Trading session shown (`'extended'` persisted; absent = regular, the default). */
|
|
148
|
+
session?: string;
|
|
133
149
|
/** Symbol watermark visibility — a per-chart display pref. */
|
|
134
150
|
watermark?: boolean;
|
|
135
151
|
/** Indicator titles (the in-chart legend rows) visibility — a per-chart display pref. */
|
|
@@ -212,6 +228,8 @@ interface PersistedState {
|
|
|
212
228
|
priceStyle?: string;
|
|
213
229
|
timezone?: string;
|
|
214
230
|
bars?: string;
|
|
231
|
+
/** Trading session (`regular` | `extended`) — URL param `session`. */
|
|
232
|
+
session?: string;
|
|
215
233
|
watermark?: string;
|
|
216
234
|
/** Comma-joined favorite drawing-tool types. */
|
|
217
235
|
favorites?: string;
|
package/dist/index.cjs
CHANGED
|
@@ -6915,7 +6915,7 @@ var ProviderRegistry = class {
|
|
|
6915
6915
|
/** Register (or replace) a provider; returns a promise that settles when its index is built. */
|
|
6916
6916
|
register(rawName, provider) {
|
|
6917
6917
|
const name = normName(rawName);
|
|
6918
|
-
const entry = { name, provider, index: null, descriptors: [], settled: false, settle: Promise.resolve() };
|
|
6918
|
+
const entry = { name, provider, index: null, prefixIndex: null, byTicker: null, descriptors: [], settled: false, settle: Promise.resolve() };
|
|
6919
6919
|
this.entries.set(name, entry);
|
|
6920
6920
|
entry.settle = this.buildIndex(entry);
|
|
6921
6921
|
queueMicrotask(() => this.notify(false));
|
|
@@ -6928,6 +6928,9 @@ var ProviderRegistry = class {
|
|
|
6928
6928
|
const symbols = await entry.provider.listSymbols();
|
|
6929
6929
|
entry.descriptors = symbols;
|
|
6930
6930
|
entry.index = new Set(symbols.map((s) => normTicker(s.ticker)));
|
|
6931
|
+
entry.byTicker = new Map(symbols.map((s) => [normTicker(s.ticker), s]));
|
|
6932
|
+
entry.prefixIndex = /* @__PURE__ */ new Map();
|
|
6933
|
+
for (const s of symbols) if (s.prefix) entry.prefixIndex.set(`${normName(s.prefix)}:${normTicker(s.ticker)}`, s);
|
|
6931
6934
|
}
|
|
6932
6935
|
} catch {
|
|
6933
6936
|
entry.index = null;
|
|
@@ -6963,14 +6966,25 @@ var ProviderRegistry = class {
|
|
|
6963
6966
|
}
|
|
6964
6967
|
/**
|
|
6965
6968
|
* Resolve a symbol to `{ provider, ticker }`, or null when nothing can serve it
|
|
6966
|
-
* yet. Explicit prefix → that provider (must be registered)
|
|
6967
|
-
*
|
|
6968
|
-
*
|
|
6969
|
-
*
|
|
6969
|
+
* yet. Explicit prefix → that provider (must be registered), else a provider whose
|
|
6970
|
+
* index declares that LISTING prefix for that ticker (`NASDAQ:AAPL` routes to the
|
|
6971
|
+
* provider serving Nasdaq-listed AAPL — TradingView-strict, so `NYSE:AAPL` resolves
|
|
6972
|
+
* to nothing rather than auto-correcting). Bare → first indexed provider
|
|
6973
|
+
* (registration order, `opts.default` first) that contains the ticker;
|
|
6974
|
+
* `opts.lenient` additionally allows a sole registered provider before its index
|
|
6975
|
+
* exists.
|
|
6970
6976
|
*/
|
|
6971
6977
|
resolve(raw, opts = {}) {
|
|
6972
6978
|
const { provider, ticker } = this.parse(raw);
|
|
6973
|
-
if (provider)
|
|
6979
|
+
if (provider) {
|
|
6980
|
+
if (this.entries.has(provider)) return { provider, ticker };
|
|
6981
|
+
const key = `${provider}:${normTicker(ticker)}`;
|
|
6982
|
+
for (const name of this.candidateOrder(opts.default)) {
|
|
6983
|
+
const d = this.entries.get(name).prefixIndex?.get(key);
|
|
6984
|
+
if (d) return { provider: name, ticker: d.ticker };
|
|
6985
|
+
}
|
|
6986
|
+
return null;
|
|
6987
|
+
}
|
|
6974
6988
|
const norm = normTicker(ticker);
|
|
6975
6989
|
for (const name of this.candidateOrder(opts.default)) {
|
|
6976
6990
|
if (this.entries.get(name).index?.has(norm)) return { provider: name, ticker };
|
|
@@ -7036,6 +7050,22 @@ var ProviderRegistry = class {
|
|
|
7036
7050
|
}
|
|
7037
7051
|
return names;
|
|
7038
7052
|
}
|
|
7053
|
+
/**
|
|
7054
|
+
* The DISPLAY prefix for a resolved symbol — the descriptor's LISTING prefix when the
|
|
7055
|
+
* data declares one, else the provider name. This is the single seam every label
|
|
7056
|
+
* (legend chip, committed/persisted `PREFIX:TICKER` strings) derives from, which is
|
|
7057
|
+
* what makes a non-canonical spelling impossible to display: the form always comes
|
|
7058
|
+
* from the data, never from what was typed.
|
|
7059
|
+
*/
|
|
7060
|
+
displayPrefixOf(resolved) {
|
|
7061
|
+
const d = this.entries.get(resolved.provider)?.byTicker?.get(normTicker(resolved.ticker));
|
|
7062
|
+
return d?.prefix ?? resolved.provider;
|
|
7063
|
+
}
|
|
7064
|
+
/** The canonical `PREFIX:TICKER` string for a resolved symbol (descriptor spellings). */
|
|
7065
|
+
canonicalSymbol(resolved) {
|
|
7066
|
+
const d = this.entries.get(resolved.provider)?.byTicker?.get(normTicker(resolved.ticker));
|
|
7067
|
+
return `${d?.prefix ?? resolved.provider}:${d?.ticker ?? resolved.ticker}`;
|
|
7068
|
+
}
|
|
7039
7069
|
/** Indexed symbols for one provider (or all, concatenated) — for autocomplete. */
|
|
7040
7070
|
symbolsOf(rawName) {
|
|
7041
7071
|
if (rawName != null) return this.entries.get(normName(rawName))?.descriptors ?? [];
|
|
@@ -7498,7 +7528,7 @@ var EngineOrchestrator = class _EngineOrchestrator {
|
|
|
7498
7528
|
* an in-flight `setMarket` immediately (the config mutates before the load). */
|
|
7499
7529
|
marketSnapshot() {
|
|
7500
7530
|
const m = this.config.market;
|
|
7501
|
-
return { symbol: m.symbol, provider: parseSymbol(m.symbol ?? "").provider ?? void 0, timeframe: m.timeframe, bars: m.bars, offline: m.data !== void 0 };
|
|
7531
|
+
return { symbol: m.symbol, provider: parseSymbol(m.symbol ?? "").provider ?? void 0, timeframe: m.timeframe, bars: m.bars, session: m.session, offline: m.data !== void 0 };
|
|
7502
7532
|
}
|
|
7503
7533
|
/**
|
|
7504
7534
|
* Switch the chart's market IN PLACE — no destroy/recreate. The renderer stays
|
|
@@ -7517,7 +7547,9 @@ var EngineOrchestrator = class _EngineOrchestrator {
|
|
|
7517
7547
|
*/
|
|
7518
7548
|
async setMarket(next) {
|
|
7519
7549
|
const m = this.config.market;
|
|
7520
|
-
const identityChanged = next.symbol !== void 0 && next.symbol !== m.symbol || next.timeframe !== void 0 && next.timeframe !== m.timeframe ||
|
|
7550
|
+
const identityChanged = next.symbol !== void 0 && next.symbol !== m.symbol || next.timeframe !== void 0 && next.timeframe !== m.timeframe || // A session switch changes WHICH bars exist (RTH vs ETH) — a full reload,
|
|
7551
|
+
// exactly like a timeframe change; the cache keys the sessions apart.
|
|
7552
|
+
next.session !== void 0 && next.session !== m.session || next.data !== void 0;
|
|
7521
7553
|
const depthChanged = next.bars !== void 0 && next.bars !== m.bars;
|
|
7522
7554
|
const depthOnly = depthChanged && !identityChanged && this.rawBars.length > 0 && !m.data?.length && ((next.bars ?? 0) <= this.rawBars.length || typeof this.feed.loadRange === "function");
|
|
7523
7555
|
if (!identityChanged && !depthChanged) {
|
|
@@ -7539,6 +7571,7 @@ var EngineOrchestrator = class _EngineOrchestrator {
|
|
|
7539
7571
|
if (next.symbol !== void 0) m.symbol = next.symbol;
|
|
7540
7572
|
if (next.timeframe !== void 0) m.timeframe = next.timeframe;
|
|
7541
7573
|
if (next.bars !== void 0) m.bars = next.bars;
|
|
7574
|
+
if (next.session !== void 0) m.session = next.session;
|
|
7542
7575
|
if (next.data !== void 0) m.data = next.data;
|
|
7543
7576
|
else if (next.symbol !== void 0) delete m.data;
|
|
7544
7577
|
m.visibleRange = next.visibleRange;
|
|
@@ -8903,8 +8936,8 @@ var PanesControl = class {
|
|
|
8903
8936
|
};
|
|
8904
8937
|
|
|
8905
8938
|
// src/data/BarStore.ts
|
|
8906
|
-
function seriesKey(provider, symbol, timeframe) {
|
|
8907
|
-
return `${provider}|${symbol}|${timeframe}`;
|
|
8939
|
+
function seriesKey(provider, symbol, timeframe, session) {
|
|
8940
|
+
return `${provider}|${symbol}|${timeframe}${session && session !== "regular" ? `|${session}` : ""}`;
|
|
8908
8941
|
}
|
|
8909
8942
|
function symbolOf(key) {
|
|
8910
8943
|
return key.split("|")[1] ?? "";
|
|
@@ -8987,9 +9020,9 @@ var BarStore = class {
|
|
|
8987
9020
|
var sharedBarStore = new BarStore();
|
|
8988
9021
|
|
|
8989
9022
|
// src/data/CachingDataFeed.ts
|
|
8990
|
-
function cacheKey(symbol, timeframe) {
|
|
9023
|
+
function cacheKey(symbol, timeframe, session) {
|
|
8991
9024
|
const { provider, ticker } = parseSymbol(symbol);
|
|
8992
|
-
return seriesKey(provider ?? "", ticker, timeframe);
|
|
9025
|
+
return seriesKey(provider ?? "", ticker, timeframe, session);
|
|
8993
9026
|
}
|
|
8994
9027
|
var PAGE_BARS = 1e4;
|
|
8995
9028
|
var SINGLE_FETCH_BARS = PAGE_BARS + 1;
|
|
@@ -9001,7 +9034,7 @@ var CachingDataFeed = class {
|
|
|
9001
9034
|
async load(cfg) {
|
|
9002
9035
|
if (cfg.data && cfg.data.length > 0) return this.inner.load(cfg);
|
|
9003
9036
|
const symbol = cfg.symbol ?? "TEST";
|
|
9004
|
-
const key = cacheKey(symbol, cfg.timeframe ?? "60");
|
|
9037
|
+
const key = cacheKey(symbol, cfg.timeframe ?? "60", cfg.session);
|
|
9005
9038
|
this.store.retainSymbol(symbol);
|
|
9006
9039
|
const cached = this.store.get(key);
|
|
9007
9040
|
const n = cfg.bars ?? 500;
|
|
@@ -9030,7 +9063,7 @@ var CachingDataFeed = class {
|
|
|
9030
9063
|
*/
|
|
9031
9064
|
async loadRange(cfg, range) {
|
|
9032
9065
|
if (!this.inner.loadRange) return this.inner.load(cfg);
|
|
9033
|
-
const key = cacheKey(cfg.symbol ?? "TEST", cfg.timeframe ?? "60");
|
|
9066
|
+
const key = cacheKey(cfg.symbol ?? "TEST", cfg.timeframe ?? "60", cfg.session);
|
|
9034
9067
|
let cached = this.store.get(key);
|
|
9035
9068
|
let newest = cached?.[cached.length - 1];
|
|
9036
9069
|
if (range.to != null && newest && range.to < newest.time) {
|
|
@@ -9188,6 +9221,20 @@ var MultiProviderFeed = class {
|
|
|
9188
9221
|
resolveSymbol(raw) {
|
|
9189
9222
|
return this.registry.resolve(raw, { default: this.primaryProvider });
|
|
9190
9223
|
}
|
|
9224
|
+
/**
|
|
9225
|
+
* The DISPLAY prefix for `raw` — the descriptor's LISTING prefix when the data
|
|
9226
|
+
* declares one (`NASDAQ` for AAPL), else the resolved provider name. Null while
|
|
9227
|
+
* nothing resolves the symbol.
|
|
9228
|
+
*/
|
|
9229
|
+
displayPrefix(raw) {
|
|
9230
|
+
const resolved = this.resolveSymbol(raw);
|
|
9231
|
+
return resolved ? this.registry.displayPrefixOf(resolved) : null;
|
|
9232
|
+
}
|
|
9233
|
+
/** The canonical `PREFIX:TICKER` form of `raw`, or null while unresolvable. */
|
|
9234
|
+
canonicalSymbol(raw) {
|
|
9235
|
+
const resolved = this.resolveSymbol(raw);
|
|
9236
|
+
return resolved ? this.registry.canonicalSymbol(resolved) : null;
|
|
9237
|
+
}
|
|
9191
9238
|
/** The registered provider INSTANCE under `name` (undefined if unknown). */
|
|
9192
9239
|
providerInstance(name) {
|
|
9193
9240
|
return this.registry.get(name);
|
|
@@ -9323,13 +9370,13 @@ var RegistryFetchFeed = class {
|
|
|
9323
9370
|
const { provider: name, ticker } = parseSymbol(cfg.symbol ?? "");
|
|
9324
9371
|
const provider = this.registry.get(name ?? "");
|
|
9325
9372
|
if (!provider) return Promise.resolve([]);
|
|
9326
|
-
return safeBars(provider, ticker, cfg.timeframe ?? "60", { limit: cfg.bars ?? 500 });
|
|
9373
|
+
return safeBars(provider, ticker, cfg.timeframe ?? "60", { limit: cfg.bars ?? 500, session: cfg.session });
|
|
9327
9374
|
}
|
|
9328
9375
|
loadRange(cfg, range) {
|
|
9329
9376
|
const { provider: name, ticker } = parseSymbol(cfg.symbol ?? "");
|
|
9330
9377
|
const provider = this.registry.get(name ?? "");
|
|
9331
9378
|
if (!provider) return Promise.resolve([]);
|
|
9332
|
-
return safeBars(provider, ticker, cfg.timeframe ?? "60", range);
|
|
9379
|
+
return safeBars(provider, ticker, cfg.timeframe ?? "60", { ...range, session: cfg.session });
|
|
9333
9380
|
}
|
|
9334
9381
|
subscribe(cfg, onBar) {
|
|
9335
9382
|
const { provider: name, ticker } = parseSymbol(cfg.symbol ?? "");
|
|
@@ -9337,13 +9384,13 @@ var RegistryFetchFeed = class {
|
|
|
9337
9384
|
if (!provider) return () => {
|
|
9338
9385
|
};
|
|
9339
9386
|
const tf = cfg.timeframe ?? "60";
|
|
9340
|
-
if (provider.subscribe) return provider.subscribe(ticker, tf, onBar);
|
|
9387
|
+
if (provider.subscribe) return provider.subscribe(ticker, tf, onBar, cfg.session ? { session: cfg.session } : void 0);
|
|
9341
9388
|
let stopped = false;
|
|
9342
9389
|
let timer = null;
|
|
9343
9390
|
const poll = async () => {
|
|
9344
9391
|
if (stopped) return;
|
|
9345
9392
|
try {
|
|
9346
|
-
const bars = await provider.getBars(ticker, tf, { limit: 2 });
|
|
9393
|
+
const bars = await provider.getBars(ticker, tf, { limit: 2, session: cfg.session });
|
|
9347
9394
|
if (stopped) return;
|
|
9348
9395
|
for (const b of bars) onBar(b);
|
|
9349
9396
|
} catch {
|
|
@@ -9393,6 +9440,17 @@ var DataControl = class {
|
|
|
9393
9440
|
resolve(symbol) {
|
|
9394
9441
|
return this.registry?.resolveSymbol(symbol) ?? null;
|
|
9395
9442
|
}
|
|
9443
|
+
/**
|
|
9444
|
+
* The DISPLAY prefix for `symbol` — the listing venue its descriptor declares
|
|
9445
|
+
* (`NASDAQ` for AAPL) or the resolved provider name. Null while unresolvable.
|
|
9446
|
+
*/
|
|
9447
|
+
displayPrefix(symbol) {
|
|
9448
|
+
return this.registry?.displayPrefix(symbol) ?? null;
|
|
9449
|
+
}
|
|
9450
|
+
/** The canonical `PREFIX:TICKER` form of `symbol`, or null while unresolvable. */
|
|
9451
|
+
canonicalSymbol(symbol) {
|
|
9452
|
+
return this.registry?.canonicalSymbol(symbol) ?? null;
|
|
9453
|
+
}
|
|
9396
9454
|
/**
|
|
9397
9455
|
* The registered provider INSTANCE under `name` — the seam for EXTENDED provider
|
|
9398
9456
|
* surfaces: a provider may implement interfaces beyond the `DataProvider` port
|
|
@@ -27613,6 +27671,7 @@ var Vela = class {
|
|
|
27613
27671
|
symbol: options.symbol,
|
|
27614
27672
|
timeframe: options.timeframe,
|
|
27615
27673
|
bars: options.bars,
|
|
27674
|
+
session: options.session,
|
|
27616
27675
|
visibleRange: options.visibleRange,
|
|
27617
27676
|
data: options.data
|
|
27618
27677
|
},
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as DrawingsDocument, R as Resolved } from './contributions-
|
|
2
|
-
export { B as BarsChangeReason, C as ContextSelect, b as DataControl, c as DrawingsControl, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, l as IndicatorEventMap, I as IndicatorHandle, m as IndicatorSummary, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, P as ParsedSymbol, s as PreparedScript, t as RendererControl, u as RunIndicatorResult, v as SceneInspection, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, T as TypedEventBus, V as Vela, M as VelaDeps, O as VelaEventMap, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, $ as nativeIndicatorDescriptors, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-
|
|
3
|
-
import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, I as IChartRenderer, R as RendererCapabilities,
|
|
4
|
-
export {
|
|
5
|
-
import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-
|
|
6
|
-
export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, X as createDrawing, Y as deserializeDrawing, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a1 as registerDrawingType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-
|
|
1
|
+
import { D as DrawingsDocument, R as Resolved } from './contributions-D64UA74H.cjs';
|
|
2
|
+
export { B as BarsChangeReason, C as ContextSelect, b as DataControl, c as DrawingsControl, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, l as IndicatorEventMap, I as IndicatorHandle, m as IndicatorSummary, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, P as ParsedSymbol, s as PreparedScript, t as RendererControl, u as RunIndicatorResult, v as SceneInspection, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, T as TypedEventBus, V as Vela, M as VelaDeps, O as VelaEventMap, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, $ as nativeIndicatorDescriptors, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-D64UA74H.cjs';
|
|
3
|
+
import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, I as IChartRenderer, R as RendererCapabilities, e as RendererDisplayOptions, f as IndicatorRenderHandle, g as IndicatorStatus, c as VelaTheme, O as OHLCV, h as Pane, i as PaneAction, j as MoveTarget, k as IndicatorModel, l as ScenePatch, m as InputValue, n as SymbolPickerFn, o as LegendActionView, p as InputChangeEvent, T as ThemeName, C as CrosshairEvent, q as ClickEvent, A as AxisLongPressEvent, a as VisibleRange, r as DataWindowReadout, s as IDrawingsRendererPort, t as Millis, u as SnapMode, v as DrawingTypeKey, w as ToolbarDefinition, M as MarketConfig } from './options-BqGeFHtp.cjs';
|
|
4
|
+
export { x as AddIndicatorOptions, B as Background, y as BoxFontFamily, z as BoxHAlign, E as BoxTextSize, F as BoxVAlign, G as CandleBarColor, H as CandleSeries, J as CandleStyle, K as DataWindowGroup, Q as DataWindowOHLC, W as DataWindowRow, X as DirtyRange, Y as DrawingBox, Z as DrawingExtend, _ as DrawingIntent, $ as DrawingLabel, a0 as DrawingLine, a1 as DrawingLinefill, a2 as DrawingMode, a3 as DrawingPoint, a4 as DrawingPolyline, a5 as DrawingStyle, a6 as DrawingTable, a7 as DrawingText, a8 as DrawingXLoc, a9 as DrawingsOption, aa as Fill, ab as FillGradientStop, ac as IndicatorMeta, ad as InputSchema, ae as InputType, af as LabelStyle, ag as LabelYLoc, ah as LineLikeKind, ai as LineLikeSeries, aj as LineLikeStyle, ak as MarkerPoint, al as MarkerSeries, am as MarketSnapshot, an as MarketSwitch, ao as PaneHint, ap as PaneKind, aq as PolylinePoint, ar as PriceLine, as as Projector, at as ProviderName, au as RendererConstructor, av as Scene, aw as SchemaPatch, ax as SeriesKind, ay as SeriesPoint, az as SeriesSpec, aA as SeriesValueDelta, aB as SettingsField, aC as SettingsSchema, aD as TableCell, aE as TableMerge, aF as TablePosition, aG as ToolbarGroupConfig, aH as TradeExecution, aI as ValuePatch, b as VelaOptions, V as VisibleRangePreset, aJ as buildToolbar, aK as defaultToolbar } from './options-BqGeFHtp.cjs';
|
|
5
|
+
import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-BNKtYU5V.cjs';
|
|
6
|
+
export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, X as createDrawing, Y as deserializeDrawing, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a1 as registerDrawingType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-D5ni4WEJ.cjs';
|
|
7
7
|
export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.cjs';
|
|
8
8
|
export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.cjs';
|
|
9
9
|
export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-CGOz5F5f.cjs';
|
|
@@ -1153,6 +1153,14 @@ declare class MultiProviderFeed implements MarketDataFeed {
|
|
|
1153
1153
|
unregisterProvider(name: string): void;
|
|
1154
1154
|
providers(): ProviderInfo[];
|
|
1155
1155
|
resolveSymbol(raw: string): Resolved | null;
|
|
1156
|
+
/**
|
|
1157
|
+
* The DISPLAY prefix for `raw` — the descriptor's LISTING prefix when the data
|
|
1158
|
+
* declares one (`NASDAQ` for AAPL), else the resolved provider name. Null while
|
|
1159
|
+
* nothing resolves the symbol.
|
|
1160
|
+
*/
|
|
1161
|
+
displayPrefix(raw: string): string | null;
|
|
1162
|
+
/** The canonical `PREFIX:TICKER` form of `raw`, or null while unresolvable. */
|
|
1163
|
+
canonicalSymbol(raw: string): string | null;
|
|
1156
1164
|
/** The registered provider INSTANCE under `name` (undefined if unknown). */
|
|
1157
1165
|
providerInstance(name: string): DataProvider | undefined;
|
|
1158
1166
|
symbols(name?: string): SymbolDescriptor[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as DrawingsDocument, R as Resolved } from './contributions-
|
|
2
|
-
export { B as BarsChangeReason, C as ContextSelect, b as DataControl, c as DrawingsControl, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, l as IndicatorEventMap, I as IndicatorHandle, m as IndicatorSummary, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, P as ParsedSymbol, s as PreparedScript, t as RendererControl, u as RunIndicatorResult, v as SceneInspection, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, T as TypedEventBus, V as Vela, M as VelaDeps, O as VelaEventMap, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, $ as nativeIndicatorDescriptors, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-
|
|
3
|
-
import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, I as IChartRenderer, R as RendererCapabilities,
|
|
4
|
-
export {
|
|
5
|
-
import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-
|
|
6
|
-
export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, X as createDrawing, Y as deserializeDrawing, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a1 as registerDrawingType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-
|
|
1
|
+
import { D as DrawingsDocument, R as Resolved } from './contributions-lPAgo9Cu.js';
|
|
2
|
+
export { B as BarsChangeReason, C as ContextSelect, b as DataControl, c as DrawingsControl, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, l as IndicatorEventMap, I as IndicatorHandle, m as IndicatorSummary, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, P as ParsedSymbol, s as PreparedScript, t as RendererControl, u as RunIndicatorResult, v as SceneInspection, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, T as TypedEventBus, V as Vela, M as VelaDeps, O as VelaEventMap, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, $ as nativeIndicatorDescriptors, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-lPAgo9Cu.js';
|
|
3
|
+
import { D as Drawing, S as SerializedDrawing, U as Unsubscribe, L as LineStyle, P as PriceStyle, I as IChartRenderer, R as RendererCapabilities, e as RendererDisplayOptions, f as IndicatorRenderHandle, g as IndicatorStatus, c as VelaTheme, O as OHLCV, h as Pane, i as PaneAction, j as MoveTarget, k as IndicatorModel, l as ScenePatch, m as InputValue, n as SymbolPickerFn, o as LegendActionView, p as InputChangeEvent, T as ThemeName, C as CrosshairEvent, q as ClickEvent, A as AxisLongPressEvent, a as VisibleRange, r as DataWindowReadout, s as IDrawingsRendererPort, t as Millis, u as SnapMode, v as DrawingTypeKey, w as ToolbarDefinition, M as MarketConfig } from './options-BqGeFHtp.js';
|
|
4
|
+
export { x as AddIndicatorOptions, B as Background, y as BoxFontFamily, z as BoxHAlign, E as BoxTextSize, F as BoxVAlign, G as CandleBarColor, H as CandleSeries, J as CandleStyle, K as DataWindowGroup, Q as DataWindowOHLC, W as DataWindowRow, X as DirtyRange, Y as DrawingBox, Z as DrawingExtend, _ as DrawingIntent, $ as DrawingLabel, a0 as DrawingLine, a1 as DrawingLinefill, a2 as DrawingMode, a3 as DrawingPoint, a4 as DrawingPolyline, a5 as DrawingStyle, a6 as DrawingTable, a7 as DrawingText, a8 as DrawingXLoc, a9 as DrawingsOption, aa as Fill, ab as FillGradientStop, ac as IndicatorMeta, ad as InputSchema, ae as InputType, af as LabelStyle, ag as LabelYLoc, ah as LineLikeKind, ai as LineLikeSeries, aj as LineLikeStyle, ak as MarkerPoint, al as MarkerSeries, am as MarketSnapshot, an as MarketSwitch, ao as PaneHint, ap as PaneKind, aq as PolylinePoint, ar as PriceLine, as as Projector, at as ProviderName, au as RendererConstructor, av as Scene, aw as SchemaPatch, ax as SeriesKind, ay as SeriesPoint, az as SeriesSpec, aA as SeriesValueDelta, aB as SettingsField, aC as SettingsSchema, aD as TableCell, aE as TableMerge, aF as TablePosition, aG as ToolbarGroupConfig, aH as TradeExecution, aI as ValuePatch, b as VelaOptions, V as VisibleRangePreset, aJ as buildToolbar, aK as defaultToolbar } from './options-BqGeFHtp.js';
|
|
5
|
+
import { M as MarketDataFeed, D as DataProvider, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo, b as ProviderCapabilities, B as BarRange } from './DataProvider-gJjN_0eh.js';
|
|
6
|
+
export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, X as createDrawing, Y as deserializeDrawing, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a1 as registerDrawingType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-o5HJH46Z.js';
|
|
7
7
|
export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.js';
|
|
8
8
|
export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.js';
|
|
9
9
|
export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-CGOz5F5f.js';
|
|
@@ -1153,6 +1153,14 @@ declare class MultiProviderFeed implements MarketDataFeed {
|
|
|
1153
1153
|
unregisterProvider(name: string): void;
|
|
1154
1154
|
providers(): ProviderInfo[];
|
|
1155
1155
|
resolveSymbol(raw: string): Resolved | null;
|
|
1156
|
+
/**
|
|
1157
|
+
* The DISPLAY prefix for `raw` — the descriptor's LISTING prefix when the data
|
|
1158
|
+
* declares one (`NASDAQ` for AAPL), else the resolved provider name. Null while
|
|
1159
|
+
* nothing resolves the symbol.
|
|
1160
|
+
*/
|
|
1161
|
+
displayPrefix(raw: string): string | null;
|
|
1162
|
+
/** The canonical `PREFIX:TICKER` form of `raw`, or null while unresolvable. */
|
|
1163
|
+
canonicalSymbol(raw: string): string | null;
|
|
1156
1164
|
/** The registered provider INSTANCE under `name` (undefined if unknown). */
|
|
1157
1165
|
providerInstance(name: string): DataProvider | undefined;
|
|
1158
1166
|
symbols(name?: string): SymbolDescriptor[];
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { stableSeriesId } from './chunk-Q3XQHLIH.js';
|
|
2
|
-
export { BarStore, CachingDataFeed, DARK_THEME, DataControl, DrawingStore, DrawingToolbar, DrawingsControl, LIGHT_THEME, MultiProviderFeed, NativeRenderer, RendererControl, TypedEventBus, Vela, buildToolbar, defaultToolbar, resolveTheme, sharedBarStore, timeframeToMs } from './chunk-
|
|
2
|
+
export { BarStore, CachingDataFeed, DARK_THEME, DataControl, DrawingStore, DrawingToolbar, DrawingsControl, LIGHT_THEME, MultiProviderFeed, NativeRenderer, RendererControl, TypedEventBus, Vela, buildToolbar, defaultToolbar, resolveTheme, sharedBarStore, timeframeToMs } from './chunk-4MQEG67Z.js';
|
|
3
3
|
export { DEFAULT_PANEL_MAX_WIDTH, DEFAULT_PANEL_MIN_WIDTH, DEFAULT_PANEL_WIDTH, Drawing, chartType, chartTypes, clampPanelWidth, createDrawing, deserializeDrawing, drawingTypes, getDrawingType, getNativeIndicator, legendActions, nativeIndicatorDescriptors, nativeIndicatorTypes, normalizeSettingsRow, registerChartType, registerDefaultEngine, registerDrawingType, registerLegendAction, registerNativeIndicator, registerRendererDefaults, registerRendererLayer, registerSidePanel, registerWidgetAction, registerWidgetAttachment, rendererDefaults, rendererLayers, resolveEngines, settingsRowValueKeys, sidePanels, tickerModifierIds, unregisterChartType, unregisterDefaultEngine, unregisterLegendAction, unregisterNativeIndicator, unregisterRendererDefaults, unregisterRendererLayer, unregisterSidePanel, unregisterWidgetAction, unregisterWidgetAttachment, widgetActions, widgetAttachments } from './chunk-ZNL2X6U2.js';
|
|
4
4
|
import './chunk-OGRQW3M6.js';
|
|
5
5
|
export { ACCENT, ACCENT_BRIGHT, BEARISH, BULLISH, CATEGORICAL, CROSSHAIR, HIGHLIGHT, INFO, INVALID, MARKER, NEUTRAL, SERIES_LINE, SESSION_OFF, SESSION_POST, SESSION_PRE, SLATE, SLATE_DEEP, TRADE_EXIT, TRADE_LONG, TRADE_SHORT, VALID, WARNING, categoricalColor, iconMarkup, registerIcon } from './chunk-EMS6PO2T.js';
|
|
@@ -1423,6 +1423,13 @@ type VisibleRangePreset = '1D' | '1W' | '1M' | '3M' | '6M' | '1Y' | '5Y' | 'YTD'
|
|
|
1423
1423
|
|
|
1424
1424
|
/** A registered data-provider name (any string; matched case-insensitively). */
|
|
1425
1425
|
type ProviderName = string;
|
|
1426
|
+
/**
|
|
1427
|
+
* Which trading session the chart shows, on markets that have one: `regular` = RTH
|
|
1428
|
+
* (09:30–16:00 for US equities), `extended` = ETH (pre/post-market included). The
|
|
1429
|
+
* provider owns the actual filtering — the flag rides every data request. Meaningless
|
|
1430
|
+
* (and ignored end-to-end) on continuous markets like crypto.
|
|
1431
|
+
*/
|
|
1432
|
+
type MarketSession = 'regular' | 'extended';
|
|
1426
1433
|
/** How the chart obtains its candles. */
|
|
1427
1434
|
interface MarketConfig {
|
|
1428
1435
|
/** The market's symbol. A bare ticker (`'BTCUSDT'`) resolves against the registered
|
|
@@ -1431,6 +1438,9 @@ interface MarketConfig {
|
|
|
1431
1438
|
symbol?: string;
|
|
1432
1439
|
timeframe?: string;
|
|
1433
1440
|
bars?: number;
|
|
1441
|
+
/** Trading session to show ({@link MarketSession}). Absent = the provider's default
|
|
1442
|
+
* (`regular` on session markets); continuous markets ignore it entirely. */
|
|
1443
|
+
session?: MarketSession;
|
|
1434
1444
|
/**
|
|
1435
1445
|
* The window to frame on the FIRST paint — a preset name (`'1D'`, `'YTD'`, …) or an
|
|
1436
1446
|
* explicit `{from, to}`. Set it when the initial view is known up front (a range
|
|
@@ -1454,6 +1464,8 @@ interface MarketSwitch {
|
|
|
1454
1464
|
symbol?: string;
|
|
1455
1465
|
timeframe?: string;
|
|
1456
1466
|
bars?: number;
|
|
1467
|
+
/** Switch the shown trading session (reloads like a timeframe change). */
|
|
1468
|
+
session?: MarketSession;
|
|
1457
1469
|
data?: OHLCV[];
|
|
1458
1470
|
visibleRange?: VisibleRangePreset | VisibleRange;
|
|
1459
1471
|
}
|
|
@@ -1471,6 +1483,8 @@ interface MarketSnapshot {
|
|
|
1471
1483
|
provider?: ProviderName;
|
|
1472
1484
|
timeframe?: string;
|
|
1473
1485
|
bars?: number;
|
|
1486
|
+
/** The shown trading session — undefined = the provider's default (regular). */
|
|
1487
|
+
session?: MarketSession;
|
|
1474
1488
|
offline: boolean;
|
|
1475
1489
|
}
|
|
1476
1490
|
interface VelaTheme {
|
|
@@ -1604,4 +1618,4 @@ interface AddIndicatorOptions {
|
|
|
1604
1618
|
title?: string;
|
|
1605
1619
|
}
|
|
1606
1620
|
|
|
1607
|
-
export { type
|
|
1621
|
+
export { type DrawingLabel as $, type AxisLongPressEvent as A, type Background as B, type CrosshairEvent as C, Drawing as D, type BoxTextSize as E, type BoxVAlign as F, type CandleBarColor as G, type CandleSeries as H, type IChartRenderer as I, type CandleStyle as J, type DataWindowGroup as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type DataWindowOHLC as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type DataWindowRow as W, type DirtyRange as X, type DrawingBox as Y, type DrawingExtend as Z, type DrawingIntent as _, type VisibleRange as a, type DrawingLine as a0, type DrawingLinefill as a1, type DrawingMode as a2, type DrawingPoint as a3, type DrawingPolyline as a4, type DrawingStyle as a5, type DrawingTable as a6, type DrawingText as a7, type DrawingXLoc as a8, type DrawingsOption as a9, type SeriesValueDelta as aA, type SettingsField as aB, type SettingsSchema as aC, type TableCell as aD, type TableMerge as aE, type TablePosition as aF, type ToolbarGroupConfig as aG, type TradeExecution as aH, type ValuePatch as aI, buildToolbar as aJ, defaultToolbar as aK, type PaneInfo as aL, type Fill as aa, type FillGradientStop as ab, type IndicatorMeta as ac, type InputSchema as ad, type InputType as ae, type LabelStyle as af, type LabelYLoc as ag, type LineLikeKind as ah, type LineLikeSeries as ai, type LineLikeStyle as aj, type MarkerPoint as ak, type MarkerSeries as al, type MarketSnapshot as am, type MarketSwitch as an, type PaneHint as ao, type PaneKind as ap, type PolylinePoint as aq, type PriceLine as ar, type Projector as as, type ProviderName as at, type RendererConstructor as au, type Scene as av, type SchemaPatch as aw, type SeriesKind as ax, type SeriesPoint as ay, type SeriesSpec as az, type VelaOptions as b, type VelaTheme as c, type MarketSession as d, type RendererDisplayOptions as e, type IndicatorRenderHandle as f, type IndicatorStatus as g, type Pane as h, type PaneAction as i, type MoveTarget as j, type IndicatorModel as k, type ScenePatch as l, type InputValue as m, type SymbolPickerFn as n, type LegendActionView as o, type InputChangeEvent as p, type ClickEvent as q, type DataWindowReadout as r, type IDrawingsRendererPort as s, type Millis as t, type SnapMode as u, type DrawingTypeKey as v, type ToolbarDefinition as w, type AddIndicatorOptions as x, type BoxFontFamily as y, type BoxHAlign as z };
|
|
@@ -1423,6 +1423,13 @@ type VisibleRangePreset = '1D' | '1W' | '1M' | '3M' | '6M' | '1Y' | '5Y' | 'YTD'
|
|
|
1423
1423
|
|
|
1424
1424
|
/** A registered data-provider name (any string; matched case-insensitively). */
|
|
1425
1425
|
type ProviderName = string;
|
|
1426
|
+
/**
|
|
1427
|
+
* Which trading session the chart shows, on markets that have one: `regular` = RTH
|
|
1428
|
+
* (09:30–16:00 for US equities), `extended` = ETH (pre/post-market included). The
|
|
1429
|
+
* provider owns the actual filtering — the flag rides every data request. Meaningless
|
|
1430
|
+
* (and ignored end-to-end) on continuous markets like crypto.
|
|
1431
|
+
*/
|
|
1432
|
+
type MarketSession = 'regular' | 'extended';
|
|
1426
1433
|
/** How the chart obtains its candles. */
|
|
1427
1434
|
interface MarketConfig {
|
|
1428
1435
|
/** The market's symbol. A bare ticker (`'BTCUSDT'`) resolves against the registered
|
|
@@ -1431,6 +1438,9 @@ interface MarketConfig {
|
|
|
1431
1438
|
symbol?: string;
|
|
1432
1439
|
timeframe?: string;
|
|
1433
1440
|
bars?: number;
|
|
1441
|
+
/** Trading session to show ({@link MarketSession}). Absent = the provider's default
|
|
1442
|
+
* (`regular` on session markets); continuous markets ignore it entirely. */
|
|
1443
|
+
session?: MarketSession;
|
|
1434
1444
|
/**
|
|
1435
1445
|
* The window to frame on the FIRST paint — a preset name (`'1D'`, `'YTD'`, …) or an
|
|
1436
1446
|
* explicit `{from, to}`. Set it when the initial view is known up front (a range
|
|
@@ -1454,6 +1464,8 @@ interface MarketSwitch {
|
|
|
1454
1464
|
symbol?: string;
|
|
1455
1465
|
timeframe?: string;
|
|
1456
1466
|
bars?: number;
|
|
1467
|
+
/** Switch the shown trading session (reloads like a timeframe change). */
|
|
1468
|
+
session?: MarketSession;
|
|
1457
1469
|
data?: OHLCV[];
|
|
1458
1470
|
visibleRange?: VisibleRangePreset | VisibleRange;
|
|
1459
1471
|
}
|
|
@@ -1471,6 +1483,8 @@ interface MarketSnapshot {
|
|
|
1471
1483
|
provider?: ProviderName;
|
|
1472
1484
|
timeframe?: string;
|
|
1473
1485
|
bars?: number;
|
|
1486
|
+
/** The shown trading session — undefined = the provider's default (regular). */
|
|
1487
|
+
session?: MarketSession;
|
|
1474
1488
|
offline: boolean;
|
|
1475
1489
|
}
|
|
1476
1490
|
interface VelaTheme {
|
|
@@ -1604,4 +1618,4 @@ interface AddIndicatorOptions {
|
|
|
1604
1618
|
title?: string;
|
|
1605
1619
|
}
|
|
1606
1620
|
|
|
1607
|
-
export { type
|
|
1621
|
+
export { type DrawingLabel as $, type AxisLongPressEvent as A, type Background as B, type CrosshairEvent as C, Drawing as D, type BoxTextSize as E, type BoxVAlign as F, type CandleBarColor as G, type CandleSeries as H, type IChartRenderer as I, type CandleStyle as J, type DataWindowGroup as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type DataWindowOHLC as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type DataWindowRow as W, type DirtyRange as X, type DrawingBox as Y, type DrawingExtend as Z, type DrawingIntent as _, type VisibleRange as a, type DrawingLine as a0, type DrawingLinefill as a1, type DrawingMode as a2, type DrawingPoint as a3, type DrawingPolyline as a4, type DrawingStyle as a5, type DrawingTable as a6, type DrawingText as a7, type DrawingXLoc as a8, type DrawingsOption as a9, type SeriesValueDelta as aA, type SettingsField as aB, type SettingsSchema as aC, type TableCell as aD, type TableMerge as aE, type TablePosition as aF, type ToolbarGroupConfig as aG, type TradeExecution as aH, type ValuePatch as aI, buildToolbar as aJ, defaultToolbar as aK, type PaneInfo as aL, type Fill as aa, type FillGradientStop as ab, type IndicatorMeta as ac, type InputSchema as ad, type InputType as ae, type LabelStyle as af, type LabelYLoc as ag, type LineLikeKind as ah, type LineLikeSeries as ai, type LineLikeStyle as aj, type MarkerPoint as ak, type MarkerSeries as al, type MarketSnapshot as am, type MarketSwitch as an, type PaneHint as ao, type PaneKind as ap, type PolylinePoint as aq, type PriceLine as ar, type Projector as as, type ProviderName as at, type RendererConstructor as au, type Scene as av, type SchemaPatch as aw, type SeriesKind as ax, type SeriesPoint as ay, type SeriesSpec as az, type VelaOptions as b, type VelaTheme as c, type MarketSession as d, type RendererDisplayOptions as e, type IndicatorRenderHandle as f, type IndicatorStatus as g, type Pane as h, type PaneAction as i, type MoveTarget as j, type IndicatorModel as k, type ScenePatch as l, type InputValue as m, type SymbolPickerFn as n, type LegendActionView as o, type InputChangeEvent as p, type ClickEvent as q, type DataWindowReadout as r, type IDrawingsRendererPort as s, type Millis as t, type SnapMode as u, type DrawingTypeKey as v, type ToolbarDefinition as w, type AddIndicatorOptions as x, type BoxFontFamily as y, type BoxHAlign as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as DataControl } from './contributions-
|
|
1
|
+
import { v as DrawingTypeKey, a5 as DrawingStyle, S as SerializedDrawing, D as Drawing, ax as SeriesKind, O as OHLCV, c as VelaTheme } from './options-BqGeFHtp.cjs';
|
|
2
|
+
import { b as DataControl } from './contributions-D64UA74H.cjs';
|
|
3
3
|
import './side-panel-CT9ZwIGz.cjs';
|
|
4
4
|
import './icons-BZYbJXSV.cjs';
|
|
5
5
|
import './keymap-CGOz5F5f.cjs';
|
|
6
|
-
import './DataProvider-
|
|
6
|
+
import './DataProvider-BNKtYU5V.cjs';
|
|
7
7
|
|
|
8
8
|
/** What a drawing type contributes to the toolbar + factory (renderer-neutral). */
|
|
9
9
|
interface DrawingTypeMeta {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as DataControl } from './contributions-
|
|
1
|
+
import { v as DrawingTypeKey, a5 as DrawingStyle, S as SerializedDrawing, D as Drawing, ax as SeriesKind, O as OHLCV, c as VelaTheme } from './options-BqGeFHtp.js';
|
|
2
|
+
import { b as DataControl } from './contributions-lPAgo9Cu.js';
|
|
3
3
|
import './side-panel-CT9ZwIGz.js';
|
|
4
4
|
import './icons-BZYbJXSV.js';
|
|
5
5
|
import './keymap-CGOz5F5f.js';
|
|
6
|
-
import './DataProvider-
|
|
6
|
+
import './DataProvider-gJjN_0eh.js';
|
|
7
7
|
|
|
8
8
|
/** What a drawing type contributes to the toolbar + factory (renderer-neutral). */
|
|
9
9
|
interface DrawingTypeMeta {
|
package/dist/plugin.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-
|
|
2
|
-
export { B as BarsChangeReason, C as ContextSelect, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, s as PreparedScript, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-
|
|
1
|
+
export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-D5ni4WEJ.cjs';
|
|
2
|
+
export { B as BarsChangeReason, C as ContextSelect, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, s as PreparedScript, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-D64UA74H.cjs';
|
|
3
3
|
export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.cjs';
|
|
4
|
-
export { B as Background,
|
|
4
|
+
export { B as Background, y as BoxFontFamily, z as BoxHAlign, E as BoxTextSize, F as BoxVAlign, G as CandleBarColor, H as CandleSeries, J as CandleStyle, X as DirtyRange, Y as DrawingBox, Z as DrawingExtend, $ as DrawingLabel, a0 as DrawingLine, a1 as DrawingLinefill, a4 as DrawingPolyline, a6 as DrawingTable, v as DrawingTypeKey, a8 as DrawingXLoc, aa as Fill, ab as FillGradientStop, ac as IndicatorMeta, k as IndicatorModel, ad as InputSchema, ae as InputType, m as InputValue, af as LabelStyle, ag as LabelYLoc, ah as LineLikeKind, ai as LineLikeSeries, aj as LineLikeStyle, L as LineStyle, ak as MarkerPoint, al as MarkerSeries, t as Millis, O as OHLCV, h as Pane, ao as PaneHint, ap as PaneKind, aq as PolylinePoint, ar as PriceLine, P as PriceStyle, av as Scene, l as ScenePatch, aw as SchemaPatch, ax as SeriesKind, ay as SeriesPoint, az as SeriesSpec, aA as SeriesValueDelta, aD as TableCell, aE as TableMerge, aF as TablePosition, aH as TradeExecution, aI as ValuePatch } from './options-BqGeFHtp.cjs';
|
|
5
5
|
export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.cjs';
|
|
6
6
|
export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-CGOz5F5f.cjs';
|
|
7
|
-
export { B as BarRange, D as DataProvider, M as MarketDataFeed, b as ProviderCapabilities, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo } from './DataProvider-
|
|
7
|
+
export { B as BarRange, D as DataProvider, M as MarketDataFeed, b as ProviderCapabilities, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo } from './DataProvider-BNKtYU5V.cjs';
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-
|
|
2
|
-
export { B as BarsChangeReason, C as ContextSelect, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, s as PreparedScript, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-
|
|
1
|
+
export { A as ACCENT, a as ACCENT_BRIGHT, B as BEARISH, b as BULLISH, c as BarTransform, d as BasePaintingModulation, C as CATEGORICAL, e as CROSSHAIR, f as ChartTypeDefinition, g as ChartTypeSettingsInstance, h as ChartTypeSettingsSection, i as ChartTypeSettingsSubsection, D as DrawingTypeMeta, H as HIGHLIGHT, I as INFO, j as INVALID, k as IdentifiableKind, M as MARKER, N as NEUTRAL, l as NormalizedSettingsRow, R as RendererLayerArgs, m as RendererLayerDefinition, n as RendererLayerInstance, S as SERIES_LINE, o as SESSION_OFF, p as SESSION_POST, q as SESSION_PRE, r as SLATE, s as SLATE_DEEP, t as SeriesDataEngine, u as SeriesDataEngineHost, v as SettingsInlineControl, w as SettingsRowCondition, x as SettingsRowDescriptor, y as SettingsRowInlineNumber, z as SettingsRowSwatch, E as SettingsRowValueKey, F as SettingsRowWhen, G as SettingsRowWidth, J as SettingsSelectOption, K as SettingsValueRow, T as TRADE_EXIT, L as TRADE_LONG, O as TRADE_SHORT, V as VALID, W as WARNING, P as categoricalColor, Q as chartType, U as chartTypes, Z as drawingTypes, _ as getDrawingType, $ as normalizeSettingsRow, a0 as registerChartType, a2 as registerRendererDefaults, a3 as registerRendererLayer, a4 as rendererDefaults, a5 as rendererLayers, a6 as settingsRowValueKeys, a7 as stableSeriesId, a8 as tickerModifierIds, a9 as unregisterChartType, aa as unregisterRendererDefaults, ab as unregisterRendererLayer } from './plugin-o5HJH46Z.js';
|
|
2
|
+
export { B as BarsChangeReason, C as ContextSelect, E as EngineAlert, d as EngineCapabilities, e as EngineContextSnapshot, f as EngineFactory, g as EngineWarning, h as ExecutionHandlers, i as ExecutionMarket, j as ExecutionRequest, k as ExecutionSession, F as FetchSeries, L as LegendActionDescriptor, n as LegendIndicatorInfo, N as NativeIndicator, o as NativeIndicatorContext, p as NativeIndicatorDescriptor, q as NativeIndicatorInfo, r as NativeIndicatorOutput, s as PreparedScript, a as ScriptRun, w as ScriptRunCause, x as ScriptRunResult, S as ScriptingEngine, y as SidePanelButton, z as SidePanelDescriptor, A as SidePanelHandle, G as SidePanelHeader, H as StrategyFill, J as StrategyState, K as StrategyTrade, Q as VisibleBarRange, U as WidgetActionDescriptor, X as WidgetActionTarget, Y as WidgetAttachment, W as WidgetContext, Z as getNativeIndicator, _ as legendActions, a0 as nativeIndicatorTypes, a1 as registerDefaultEngine, a2 as registerLegendAction, a3 as registerNativeIndicator, a4 as registerSidePanel, a5 as registerWidgetAction, a6 as registerWidgetAttachment, a7 as resolveEngines, a8 as sidePanels, a9 as unregisterDefaultEngine, aa as unregisterLegendAction, ab as unregisterNativeIndicator, ac as unregisterSidePanel, ad as unregisterWidgetAction, ae as unregisterWidgetAttachment, af as widgetActions, ag as widgetAttachments } from './contributions-lPAgo9Cu.js';
|
|
3
3
|
export { D as DEFAULT_PANEL_MAX_WIDTH, a as DEFAULT_PANEL_MIN_WIDTH, b as DEFAULT_PANEL_WIDTH, S as SidePanelOptions, c as clampPanelWidth } from './side-panel-CT9ZwIGz.js';
|
|
4
|
-
export { B as Background,
|
|
4
|
+
export { B as Background, y as BoxFontFamily, z as BoxHAlign, E as BoxTextSize, F as BoxVAlign, G as CandleBarColor, H as CandleSeries, J as CandleStyle, X as DirtyRange, Y as DrawingBox, Z as DrawingExtend, $ as DrawingLabel, a0 as DrawingLine, a1 as DrawingLinefill, a4 as DrawingPolyline, a6 as DrawingTable, v as DrawingTypeKey, a8 as DrawingXLoc, aa as Fill, ab as FillGradientStop, ac as IndicatorMeta, k as IndicatorModel, ad as InputSchema, ae as InputType, m as InputValue, af as LabelStyle, ag as LabelYLoc, ah as LineLikeKind, ai as LineLikeSeries, aj as LineLikeStyle, L as LineStyle, ak as MarkerPoint, al as MarkerSeries, t as Millis, O as OHLCV, h as Pane, ao as PaneHint, ap as PaneKind, aq as PolylinePoint, ar as PriceLine, P as PriceStyle, av as Scene, l as ScenePatch, aw as SchemaPatch, ax as SeriesKind, ay as SeriesPoint, az as SeriesSpec, aA as SeriesValueDelta, aD as TableCell, aE as TableMerge, aF as TablePosition, aH as TradeExecution, aI as ValuePatch } from './options-BqGeFHtp.js';
|
|
5
5
|
export { i as iconMarkup, r as registerIcon } from './icons-BZYbJXSV.js';
|
|
6
6
|
export { a as KeyBindingDescriptor, R as ResolvedBinding } from './keymap-CGOz5F5f.js';
|
|
7
|
-
export { B as BarRange, D as DataProvider, M as MarketDataFeed, b as ProviderCapabilities, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo } from './DataProvider-
|
|
7
|
+
export { B as BarRange, D as DataProvider, M as MarketDataFeed, b as ProviderCapabilities, P as ProviderInfo, a as SymbolDescriptor, S as SymbolInfo } from './DataProvider-gJjN_0eh.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OHLCV, U as Unsubscribe } from '../options-
|
|
2
|
-
import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-
|
|
1
|
+
import { O as OHLCV, U as Unsubscribe } from '../options-BqGeFHtp.cjs';
|
|
2
|
+
import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-BNKtYU5V.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Binance market-data provider, built from scratch on the public REST + WebSocket
|