@luxalgo/vela 0.6.0 → 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.
Files changed (37) hide show
  1. package/dist/{DataProvider-DNx9ntBD.d.ts → DataProvider-BNKtYU5V.d.cts} +13 -3
  2. package/dist/{DataProvider-Ce6PuCzQ.d.cts → DataProvider-gJjN_0eh.d.ts} +13 -3
  3. package/dist/{chunk-CA3N3PYT.js → chunk-4MQEG67Z.js} +16 -12
  4. package/dist/{chunk-7ROONW6H.js → chunk-6LZJRO2S.js} +35 -7
  5. package/dist/{contributions-Dlc7ZWZz.d.cts → contributions-D64UA74H.d.cts} +2 -2
  6. package/dist/{contributions-DToMhiw3.d.ts → contributions-lPAgo9Cu.d.ts} +2 -2
  7. package/dist/{history-BZADxpKx.d.cts → history-CVoFDJ2D.d.ts} +21 -3
  8. package/dist/{history-BuHXJZJ2.d.ts → history-fSMXVLt1.d.cts} +21 -3
  9. package/dist/index.cjs +16 -12
  10. package/dist/index.d.cts +6 -6
  11. package/dist/index.d.ts +6 -6
  12. package/dist/index.js +1 -1
  13. package/dist/{options-BlQ00Fju.d.cts → options-BqGeFHtp.d.cts} +15 -1
  14. package/dist/{options-BlQ00Fju.d.ts → options-BqGeFHtp.d.ts} +15 -1
  15. package/dist/{plugin-BNPLOQO1.d.cts → plugin-D5ni4WEJ.d.cts} +3 -3
  16. package/dist/{plugin-BqjEa5r3.d.ts → plugin-o5HJH46Z.d.ts} +3 -3
  17. package/dist/plugin.d.cts +4 -4
  18. package/dist/plugin.d.ts +4 -4
  19. package/dist/providers/binance.d.cts +2 -2
  20. package/dist/providers/binance.d.ts +2 -2
  21. package/dist/providers/coinbase.d.cts +2 -2
  22. package/dist/providers/coinbase.d.ts +2 -2
  23. package/dist/providers/hyperliquid.d.cts +2 -2
  24. package/dist/providers/hyperliquid.d.ts +2 -2
  25. package/dist/ui.d.cts +1 -1
  26. package/dist/ui.d.ts +1 -1
  27. package/dist/vela.global.js +16 -12
  28. package/dist/vela.global.min.js +2 -2
  29. package/dist/widget.cjs +92 -19
  30. package/dist/widget.d.cts +18 -6
  31. package/dist/widget.d.ts +18 -6
  32. package/dist/widget.js +47 -6
  33. package/dist/workspace.cjs +94 -18
  34. package/dist/workspace.d.cts +20 -5
  35. package/dist/workspace.d.ts +20 -5
  36. package/dist/workspace.js +48 -4
  37. package/package.json +1 -1
@@ -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 DrawingLine as $, type AxisLongPressEvent as A, type Background as B, type CrosshairEvent as C, Drawing as D, type BoxVAlign as E, type CandleBarColor as F, type CandleSeries as G, type CandleStyle as H, type IChartRenderer as I, type DataWindowGroup as J, type DataWindowOHLC as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type DataWindowRow as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type DirtyRange as W, type DrawingBox as X, type DrawingExtend as Y, type DrawingIntent as Z, type DrawingLabel as _, type VisibleRange as a, type DrawingLinefill as a0, type DrawingMode as a1, type DrawingPoint as a2, type DrawingPolyline as a3, type DrawingStyle as a4, type DrawingTable as a5, type DrawingText as a6, type DrawingXLoc as a7, type DrawingsOption as a8, type Fill as a9, type SettingsField as aA, type SettingsSchema as aB, type TableCell as aC, type TableMerge as aD, type TablePosition as aE, type ToolbarGroupConfig as aF, type TradeExecution as aG, type ValuePatch as aH, buildToolbar as aI, defaultToolbar as aJ, type PaneInfo as aK, type FillGradientStop as aa, type IndicatorMeta as ab, type InputSchema as ac, type InputType as ad, type LabelStyle as ae, type LabelYLoc as af, type LineLikeKind as ag, type LineLikeSeries as ah, type LineLikeStyle as ai, type MarkerPoint as aj, type MarkerSeries as ak, type MarketSnapshot as al, type MarketSwitch as am, type PaneHint as an, type PaneKind as ao, type PolylinePoint as ap, type PriceLine as aq, type Projector as ar, type ProviderName as as, type RendererConstructor as at, type Scene as au, type SchemaPatch as av, type SeriesKind as aw, type SeriesPoint as ax, type SeriesSpec as ay, type SeriesValueDelta as az, type VelaOptions as b, type VelaTheme as c, type RendererDisplayOptions as d, type IndicatorRenderHandle as e, type IndicatorStatus as f, type Pane as g, type PaneAction as h, type MoveTarget as i, type IndicatorModel as j, type ScenePatch as k, type InputValue as l, type SymbolPickerFn as m, type LegendActionView as n, type InputChangeEvent as o, type ClickEvent as p, type DataWindowReadout as q, type IDrawingsRendererPort as r, type Millis as s, type SnapMode as t, type DrawingTypeKey as u, type ToolbarDefinition as v, type AddIndicatorOptions as w, type BoxFontFamily as x, type BoxHAlign as y, type BoxTextSize as z };
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 DrawingLine as $, type AxisLongPressEvent as A, type Background as B, type CrosshairEvent as C, Drawing as D, type BoxVAlign as E, type CandleBarColor as F, type CandleSeries as G, type CandleStyle as H, type IChartRenderer as I, type DataWindowGroup as J, type DataWindowOHLC as K, type LineStyle as L, type MarketConfig as M, type NativeBackend as N, type OHLCV as O, type PriceStyle as P, type DataWindowRow as Q, type RendererCapabilities as R, type SerializedDrawing as S, type ThemeName as T, type Unsubscribe as U, type VisibleRangePreset as V, type DirtyRange as W, type DrawingBox as X, type DrawingExtend as Y, type DrawingIntent as Z, type DrawingLabel as _, type VisibleRange as a, type DrawingLinefill as a0, type DrawingMode as a1, type DrawingPoint as a2, type DrawingPolyline as a3, type DrawingStyle as a4, type DrawingTable as a5, type DrawingText as a6, type DrawingXLoc as a7, type DrawingsOption as a8, type Fill as a9, type SettingsField as aA, type SettingsSchema as aB, type TableCell as aC, type TableMerge as aD, type TablePosition as aE, type ToolbarGroupConfig as aF, type TradeExecution as aG, type ValuePatch as aH, buildToolbar as aI, defaultToolbar as aJ, type PaneInfo as aK, type FillGradientStop as aa, type IndicatorMeta as ab, type InputSchema as ac, type InputType as ad, type LabelStyle as ae, type LabelYLoc as af, type LineLikeKind as ag, type LineLikeSeries as ah, type LineLikeStyle as ai, type MarkerPoint as aj, type MarkerSeries as ak, type MarketSnapshot as al, type MarketSwitch as am, type PaneHint as an, type PaneKind as ao, type PolylinePoint as ap, type PriceLine as aq, type Projector as ar, type ProviderName as as, type RendererConstructor as at, type Scene as au, type SchemaPatch as av, type SeriesKind as aw, type SeriesPoint as ax, type SeriesSpec as ay, type SeriesValueDelta as az, type VelaOptions as b, type VelaTheme as c, type RendererDisplayOptions as d, type IndicatorRenderHandle as e, type IndicatorStatus as f, type Pane as g, type PaneAction as h, type MoveTarget as i, type IndicatorModel as j, type ScenePatch as k, type InputValue as l, type SymbolPickerFn as m, type LegendActionView as n, type InputChangeEvent as o, type ClickEvent as p, type DataWindowReadout as q, type IDrawingsRendererPort as r, type Millis as s, type SnapMode as t, type DrawingTypeKey as u, type ToolbarDefinition as v, type AddIndicatorOptions as w, type BoxFontFamily as x, type BoxHAlign as y, type BoxTextSize as z };
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 { u as DrawingTypeKey, a4 as DrawingStyle, S as SerializedDrawing, D as Drawing, aw as SeriesKind, O as OHLCV, c as VelaTheme } from './options-BlQ00Fju.cjs';
2
- import { b as DataControl } from './contributions-Dlc7ZWZz.cjs';
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-Ce6PuCzQ.cjs';
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 { u as DrawingTypeKey, a4 as DrawingStyle, S as SerializedDrawing, D as Drawing, aw as SeriesKind, O as OHLCV, c as VelaTheme } from './options-BlQ00Fju.js';
2
- import { b as DataControl } from './contributions-DToMhiw3.js';
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-DNx9ntBD.js';
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-BNPLOQO1.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-Dlc7ZWZz.cjs';
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, x as BoxFontFamily, y as BoxHAlign, z as BoxTextSize, E as BoxVAlign, F as CandleBarColor, G as CandleSeries, H as CandleStyle, W as DirtyRange, X as DrawingBox, Y as DrawingExtend, _ as DrawingLabel, $ as DrawingLine, a0 as DrawingLinefill, a3 as DrawingPolyline, a5 as DrawingTable, u as DrawingTypeKey, a7 as DrawingXLoc, a9 as Fill, aa as FillGradientStop, ab as IndicatorMeta, j as IndicatorModel, ac as InputSchema, ad as InputType, l as InputValue, ae as LabelStyle, af as LabelYLoc, ag as LineLikeKind, ah as LineLikeSeries, ai as LineLikeStyle, L as LineStyle, aj as MarkerPoint, ak as MarkerSeries, s as Millis, O as OHLCV, g as Pane, an as PaneHint, ao as PaneKind, ap as PolylinePoint, aq as PriceLine, P as PriceStyle, au as Scene, k as ScenePatch, av as SchemaPatch, aw as SeriesKind, ax as SeriesPoint, ay as SeriesSpec, az as SeriesValueDelta, aC as TableCell, aD as TableMerge, aE as TablePosition, aG as TradeExecution, aH as ValuePatch } from './options-BlQ00Fju.cjs';
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-Ce6PuCzQ.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-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-BqjEa5r3.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-DToMhiw3.js';
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, x as BoxFontFamily, y as BoxHAlign, z as BoxTextSize, E as BoxVAlign, F as CandleBarColor, G as CandleSeries, H as CandleStyle, W as DirtyRange, X as DrawingBox, Y as DrawingExtend, _ as DrawingLabel, $ as DrawingLine, a0 as DrawingLinefill, a3 as DrawingPolyline, a5 as DrawingTable, u as DrawingTypeKey, a7 as DrawingXLoc, a9 as Fill, aa as FillGradientStop, ab as IndicatorMeta, j as IndicatorModel, ac as InputSchema, ad as InputType, l as InputValue, ae as LabelStyle, af as LabelYLoc, ag as LineLikeKind, ah as LineLikeSeries, ai as LineLikeStyle, L as LineStyle, aj as MarkerPoint, ak as MarkerSeries, s as Millis, O as OHLCV, g as Pane, an as PaneHint, ao as PaneKind, ap as PolylinePoint, aq as PriceLine, P as PriceStyle, au as Scene, k as ScenePatch, av as SchemaPatch, aw as SeriesKind, ax as SeriesPoint, ay as SeriesSpec, az as SeriesValueDelta, aC as TableCell, aD as TableMerge, aE as TablePosition, aG as TradeExecution, aH as ValuePatch } from './options-BlQ00Fju.js';
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-DNx9ntBD.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-gJjN_0eh.js';
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-BlQ00Fju.cjs';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-Ce6PuCzQ.cjs';
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
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-BlQ00Fju.js';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DNx9ntBD.js';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-BqGeFHtp.js';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-gJjN_0eh.js';
3
3
 
4
4
  /**
5
5
  * Binance market-data provider, built from scratch on the public REST + WebSocket
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-BlQ00Fju.cjs';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-Ce6PuCzQ.cjs';
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
  * Coinbase market-data provider, built from scratch on the public Exchange REST + WebSocket APIs
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-BlQ00Fju.js';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DNx9ntBD.js';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-BqGeFHtp.js';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-gJjN_0eh.js';
3
3
 
4
4
  /**
5
5
  * Coinbase market-data provider, built from scratch on the public Exchange REST + WebSocket APIs
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-BlQ00Fju.cjs';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-Ce6PuCzQ.cjs';
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
  * Hyperliquid market-data provider, built from scratch on the public info API — no
@@ -1,5 +1,5 @@
1
- import { O as OHLCV, U as Unsubscribe } from '../options-BlQ00Fju.js';
2
- import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-DNx9ntBD.js';
1
+ import { O as OHLCV, U as Unsubscribe } from '../options-BqGeFHtp.js';
2
+ import { D as DataProvider, P as ProviderInfo, B as BarRange, S as SymbolInfo, a as SymbolDescriptor } from '../DataProvider-gJjN_0eh.js';
3
3
 
4
4
  /**
5
5
  * Hyperliquid market-data provider, built from scratch on the public info API — no
package/dist/ui.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as VelaTheme } from './options-BlQ00Fju.cjs';
1
+ import { c as VelaTheme } from './options-BqGeFHtp.cjs';
2
2
  import { MachineSchema, Service, Machine } from '@zag-js/core';
3
3
  export { a as KeyBindingDescriptor, K as KeymapManager, b as KeymapOptions, R as ResolvedBinding } from './keymap-CGOz5F5f.cjs';
4
4
  import * as tooltip from '@zag-js/tooltip';
package/dist/ui.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as VelaTheme } from './options-BlQ00Fju.js';
1
+ import { c as VelaTheme } from './options-BqGeFHtp.js';
2
2
  import { MachineSchema, Service, Machine } from '@zag-js/core';
3
3
  export { a as KeyBindingDescriptor, K as KeymapManager, b as KeymapOptions, R as ResolvedBinding } from './keymap-CGOz5F5f.js';
4
4
  import * as tooltip from '@zag-js/tooltip';
@@ -7529,7 +7529,7 @@ var Vela = (function (exports) {
7529
7529
  * an in-flight `setMarket` immediately (the config mutates before the load). */
7530
7530
  marketSnapshot() {
7531
7531
  const m = this.config.market;
7532
- return { symbol: m.symbol, provider: parseSymbol(m.symbol ?? "").provider ?? void 0, timeframe: m.timeframe, bars: m.bars, offline: m.data !== void 0 };
7532
+ 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 };
7533
7533
  }
7534
7534
  /**
7535
7535
  * Switch the chart's market IN PLACE — no destroy/recreate. The renderer stays
@@ -7548,7 +7548,9 @@ var Vela = (function (exports) {
7548
7548
  */
7549
7549
  async setMarket(next) {
7550
7550
  const m = this.config.market;
7551
- const identityChanged = next.symbol !== void 0 && next.symbol !== m.symbol || next.timeframe !== void 0 && next.timeframe !== m.timeframe || next.data !== void 0;
7551
+ 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,
7552
+ // exactly like a timeframe change; the cache keys the sessions apart.
7553
+ next.session !== void 0 && next.session !== m.session || next.data !== void 0;
7552
7554
  const depthChanged = next.bars !== void 0 && next.bars !== m.bars;
7553
7555
  const depthOnly = depthChanged && !identityChanged && this.rawBars.length > 0 && !m.data?.length && ((next.bars ?? 0) <= this.rawBars.length || typeof this.feed.loadRange === "function");
7554
7556
  if (!identityChanged && !depthChanged) {
@@ -7570,6 +7572,7 @@ var Vela = (function (exports) {
7570
7572
  if (next.symbol !== void 0) m.symbol = next.symbol;
7571
7573
  if (next.timeframe !== void 0) m.timeframe = next.timeframe;
7572
7574
  if (next.bars !== void 0) m.bars = next.bars;
7575
+ if (next.session !== void 0) m.session = next.session;
7573
7576
  if (next.data !== void 0) m.data = next.data;
7574
7577
  else if (next.symbol !== void 0) delete m.data;
7575
7578
  m.visibleRange = next.visibleRange;
@@ -8934,8 +8937,8 @@ var Vela = (function (exports) {
8934
8937
  };
8935
8938
 
8936
8939
  // src/data/BarStore.ts
8937
- function seriesKey(provider, symbol, timeframe) {
8938
- return `${provider}|${symbol}|${timeframe}`;
8940
+ function seriesKey(provider, symbol, timeframe, session) {
8941
+ return `${provider}|${symbol}|${timeframe}${session && session !== "regular" ? `|${session}` : ""}`;
8939
8942
  }
8940
8943
  function symbolOf(key) {
8941
8944
  return key.split("|")[1] ?? "";
@@ -9018,9 +9021,9 @@ var Vela = (function (exports) {
9018
9021
  var sharedBarStore = new BarStore();
9019
9022
 
9020
9023
  // src/data/CachingDataFeed.ts
9021
- function cacheKey(symbol, timeframe) {
9024
+ function cacheKey(symbol, timeframe, session) {
9022
9025
  const { provider, ticker } = parseSymbol(symbol);
9023
- return seriesKey(provider ?? "", ticker, timeframe);
9026
+ return seriesKey(provider ?? "", ticker, timeframe, session);
9024
9027
  }
9025
9028
  var PAGE_BARS = 1e4;
9026
9029
  var SINGLE_FETCH_BARS = PAGE_BARS + 1;
@@ -9032,7 +9035,7 @@ var Vela = (function (exports) {
9032
9035
  async load(cfg) {
9033
9036
  if (cfg.data && cfg.data.length > 0) return this.inner.load(cfg);
9034
9037
  const symbol = cfg.symbol ?? "TEST";
9035
- const key = cacheKey(symbol, cfg.timeframe ?? "60");
9038
+ const key = cacheKey(symbol, cfg.timeframe ?? "60", cfg.session);
9036
9039
  this.store.retainSymbol(symbol);
9037
9040
  const cached = this.store.get(key);
9038
9041
  const n = cfg.bars ?? 500;
@@ -9061,7 +9064,7 @@ var Vela = (function (exports) {
9061
9064
  */
9062
9065
  async loadRange(cfg, range) {
9063
9066
  if (!this.inner.loadRange) return this.inner.load(cfg);
9064
- const key = cacheKey(cfg.symbol ?? "TEST", cfg.timeframe ?? "60");
9067
+ const key = cacheKey(cfg.symbol ?? "TEST", cfg.timeframe ?? "60", cfg.session);
9065
9068
  let cached = this.store.get(key);
9066
9069
  let newest = cached?.[cached.length - 1];
9067
9070
  if (range.to != null && newest && range.to < newest.time) {
@@ -9368,13 +9371,13 @@ var Vela = (function (exports) {
9368
9371
  const { provider: name, ticker } = parseSymbol(cfg.symbol ?? "");
9369
9372
  const provider = this.registry.get(name ?? "");
9370
9373
  if (!provider) return Promise.resolve([]);
9371
- return safeBars(provider, ticker, cfg.timeframe ?? "60", { limit: cfg.bars ?? 500 });
9374
+ return safeBars(provider, ticker, cfg.timeframe ?? "60", { limit: cfg.bars ?? 500, session: cfg.session });
9372
9375
  }
9373
9376
  loadRange(cfg, range) {
9374
9377
  const { provider: name, ticker } = parseSymbol(cfg.symbol ?? "");
9375
9378
  const provider = this.registry.get(name ?? "");
9376
9379
  if (!provider) return Promise.resolve([]);
9377
- return safeBars(provider, ticker, cfg.timeframe ?? "60", range);
9380
+ return safeBars(provider, ticker, cfg.timeframe ?? "60", { ...range, session: cfg.session });
9378
9381
  }
9379
9382
  subscribe(cfg, onBar) {
9380
9383
  const { provider: name, ticker } = parseSymbol(cfg.symbol ?? "");
@@ -9382,13 +9385,13 @@ var Vela = (function (exports) {
9382
9385
  if (!provider) return () => {
9383
9386
  };
9384
9387
  const tf = cfg.timeframe ?? "60";
9385
- if (provider.subscribe) return provider.subscribe(ticker, tf, onBar);
9388
+ if (provider.subscribe) return provider.subscribe(ticker, tf, onBar, cfg.session ? { session: cfg.session } : void 0);
9386
9389
  let stopped = false;
9387
9390
  let timer = null;
9388
9391
  const poll = async () => {
9389
9392
  if (stopped) return;
9390
9393
  try {
9391
- const bars = await provider.getBars(ticker, tf, { limit: 2 });
9394
+ const bars = await provider.getBars(ticker, tf, { limit: 2, session: cfg.session });
9392
9395
  if (stopped) return;
9393
9396
  for (const b of bars) onBar(b);
9394
9397
  } catch {
@@ -27669,6 +27672,7 @@ void main() {
27669
27672
  symbol: options.symbol,
27670
27673
  timeframe: options.timeframe,
27671
27674
  bars: options.bars,
27675
+ session: options.session,
27672
27676
  visibleRange: options.visibleRange,
27673
27677
  data: options.data
27674
27678
  },