@orangecharts/wrun-chart-host 0.11.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/constants/feature-flags.constants.d.ts +3 -4
- package/dist/constants/feature-flags.constants.js +34 -52
- package/dist/constants/feature-limits.constants.d.ts +1 -1
- package/dist/constants/feature-limits.constants.js +5 -4
- package/dist/constants/interval.constants.d.ts +7 -0
- package/dist/constants/interval.constants.js +7 -0
- package/dist/constants/scriptEditor/cme-official-scripts.constants.d.ts +20 -149
- package/dist/constants/scriptEditor/cme-official-scripts.constants.js +20 -309
- package/dist/constants/stocks-compliance.constants.d.ts +15 -0
- package/dist/constants/stocks-compliance.constants.js +15 -0
- package/dist/host-env.d.ts +55 -3
- package/dist/host-env.js +6 -0
- package/dist/host-ports.types.d.ts +36 -3
- package/dist/index.d.ts +18 -0
- package/dist/index.js +19 -0
- package/dist/indicators/controls/tpo-session.util.d.ts +78 -15
- package/dist/indicators/controls/tpo-session.util.js +320 -242
- package/dist/instances/script-engine-worker-ohlcv-transfer.d.ts +6 -0
- package/dist/instances/script-engine-worker-ohlcv-transfer.js +16 -0
- package/dist/interfaces/cme-realtime.interface.d.ts +8 -0
- package/dist/interfaces/cme-realtime.interface.js +2 -1
- package/dist/interfaces/feed.interface.d.ts +15 -1
- package/dist/interfaces/replay.interface.d.ts +5 -0
- package/dist/interfaces/stocks-realtime.interface.d.ts +4 -3
- package/dist/interfaces/stocks-realtime.interface.js +5 -4
- package/dist/interfaces/wrun-runtime.interface.d.ts +97 -19
- package/dist/kscript-data/controls/live-ohlcv-merge.util.d.ts +17 -0
- package/dist/kscript-data/controls/live-ohlcv-merge.util.js +22 -0
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +46 -40
- package/dist/kscript-data/controls/live-trades-merge.util.js +80 -107
- package/dist/market-data/billing.interface.d.ts +9 -1
- package/dist/market-data/venue.d.ts +1 -1
- package/dist/market-data/venues/index.d.ts +4 -4
- package/dist/market-data/venues/stocks.contract.copy.json +4 -4
- package/dist/market-data/venues/stocks.d.ts +4 -4
- package/dist/market-data/venues/stocks.js +15 -13
- package/dist/settings-templates/frvp-fields.d.ts +12 -1
- package/dist/settings-templates/frvp-fields.js +15 -4
- package/dist/settings-templates/index.js +12 -5
- package/dist/settings-templates/indicator-fields.js +28 -2
- package/dist/settings-templates/tool-rules.d.ts +17 -8
- package/dist/settings-templates/tool-rules.js +15 -8
- package/dist/settings-templates/tool-tables.generated.js +4 -2
- package/dist/utility/auth/server-clock.util.d.ts +3 -1
- package/dist/utility/auth/server-clock.util.js +3 -1
- package/dist/utility/chart/book-live-bucket.util.js +2 -2
- package/dist/utility/chart/cache-alignment.util.d.ts +15 -7
- package/dist/utility/chart/cache-alignment.util.js +14 -7
- package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +2 -0
- package/dist/utility/chart/chart-data-fetch-generation.util.js +16 -0
- package/dist/utility/chart/cme-session-bucket.util.d.ts +18 -75
- package/dist/utility/chart/cme-session-bucket.util.js +25 -332
- package/dist/utility/chart/continuous-contracts.util.js +6 -5
- package/dist/utility/chart/display-offset.leaf.d.ts +24 -0
- package/dist/utility/chart/display-offset.leaf.js +41 -0
- package/dist/utility/chart/effective-chart-session.util.d.ts +2 -1
- package/dist/utility/chart/effective-chart-session.util.js +13 -5
- package/dist/utility/chart/feed-interval.util.d.ts +6 -20
- package/dist/utility/chart/feed-interval.util.js +13 -22
- package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +27 -7
- package/dist/utility/chart/fetch-dedupe-policy.util.js +86 -11
- package/dist/utility/chart/host-bar-placement.util.d.ts +7 -4
- package/dist/utility/chart/host-bar-placement.util.js +8 -2
- package/dist/utility/chart/indicator-inflight-registry.util.d.ts +32 -0
- package/dist/utility/chart/indicator-inflight-registry.util.js +52 -0
- package/dist/utility/chart/indicator-run-interval.util.d.ts +10 -4
- package/dist/utility/chart/indicator-run-interval.util.js +21 -12
- package/dist/utility/chart/interval-registry.util.d.ts +1 -1
- package/dist/utility/chart/interval-registry.util.js +1 -1
- package/dist/utility/chart/kscript-legend-entries.util.d.ts +12 -0
- package/dist/utility/chart/kscript-legend-entries.util.js +16 -0
- package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +1 -1
- package/dist/utility/chart/kscript-run-interval-projection.util.js +4 -2
- package/dist/utility/chart/kscript-venue-policy.util.d.ts +53 -62
- package/dist/utility/chart/kscript-venue-policy.util.js +85 -94
- package/dist/utility/chart/live-bucket.util.d.ts +39 -17
- package/dist/utility/chart/live-bucket.util.js +103 -57
- package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +58 -20
- package/dist/utility/chart/local-kscript-source-revalidation.util.js +98 -23
- package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +35 -11
- package/dist/utility/chart/local-kscript-warmup-depth.util.js +24 -3
- package/dist/utility/chart/market-session-schedule.util.d.ts +8 -0
- package/dist/utility/chart/market-session-schedule.util.js +39 -1
- package/dist/utility/chart/market-session.util.d.ts +136 -0
- package/dist/utility/chart/market-session.util.js +341 -0
- package/dist/utility/chart/market-sessions.util.d.ts +83 -0
- package/dist/utility/chart/market-sessions.util.js +220 -0
- package/dist/utility/chart/om-panel.util.d.ts +5 -3
- package/dist/utility/chart/om-panel.util.js +42 -7
- package/dist/utility/chart/om-target.util.d.ts +14 -1
- package/dist/utility/chart/om-target.util.js +22 -5
- package/dist/utility/chart/opra-read-access.leaf.d.ts +16 -1
- package/dist/utility/chart/opra-read-access.leaf.js +22 -0
- package/dist/utility/chart/profile-row-height.util.d.ts +49 -16
- package/dist/utility/chart/profile-row-height.util.js +74 -37
- package/dist/utility/chart/rth-session.util.d.ts +55 -20
- package/dist/utility/chart/rth-session.util.js +94 -46
- package/dist/utility/chart/session-interval.util.d.ts +2 -1
- package/dist/utility/chart/session-interval.util.js +1 -3
- package/dist/utility/chart/session-lattice.util.d.ts +150 -0
- package/dist/utility/chart/session-lattice.util.js +488 -0
- package/dist/utility/chart/trading-day.util.d.ts +40 -2
- package/dist/utility/chart/trading-day.util.js +84 -7
- package/dist/utility/chart/us-equities-session.util.d.ts +32 -11
- package/dist/utility/chart/us-equities-session.util.js +44 -15
- package/dist/utility/chart/window-geometry.leaf.d.ts +28 -7
- package/dist/utility/chart/window-geometry.leaf.js +57 -8
- package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +21 -14
- package/dist/utility/chart/wrun-bar-session-facts.util.js +32 -38
- package/dist/utility/chart/wrun-run-result.util.d.ts +29 -12
- package/dist/utility/chart/wrun-run-result.util.js +89 -25
- package/dist/utility/common/time.util.js +5 -4
- package/dist/utility/market-events/earnings-scope.util.d.ts +10 -5
- package/dist/utility/market-events/earnings-scope.util.js +17 -9
- package/dist/utility/market-events/market-events.util.d.ts +14 -7
- package/dist/utility/market-events/market-events.util.js +30 -17
- package/dist/utility/number-format.util.d.ts +14 -21
- package/dist/utility/number-format.util.js +38 -24
- package/dist/utility/options/option-venue-disclosure.util.d.ts +40 -6
- package/dist/utility/options/option-venue-disclosure.util.js +71 -11
- package/dist/utility/options/option-venue.util.d.ts +1 -1
- package/dist/utility/options/option-venue.util.js +1 -1
- package/dist/utility/pool-symbol.leaf.d.ts +7 -0
- package/dist/utility/pool-symbol.leaf.js +50 -5
- package/dist/utility/stocks/stock-display.util.d.ts +15 -0
- package/dist/utility/stocks/stock-display.util.js +37 -0
- package/dist/utility/symbol-selection/contract-expiry.util.js +5 -4
- package/dist/utility/v2/gate-plane.util.d.ts +6 -0
- package/dist/utility/v2/gate-plane.util.js +11 -1
- package/dist/utility/v2/gate-session-latch.util.d.ts +1 -1
- package/dist/utility/v2/gate-session-latch.util.js +3 -3
- package/dist/utility/v2/governed-tier.leaf.d.ts +17 -16
- package/dist/utility/v2/governed-tier.leaf.js +17 -16
- package/dist/utility/v2/stocks-governed.util.d.ts +5 -0
- package/dist/utility/v2/stocks-governed.util.js +14 -0
- package/dist/utility/v2/v2-enums.leaf.d.ts +13 -0
- package/dist/utility/v2/v2-enums.leaf.js +458 -0
- package/dist/utility/wrun/derived-roots.leaf.d.ts +21 -1
- package/dist/utility/wrun/derived-roots.leaf.js +27 -1
- package/dist/utility/wrun/derived-roots.util.d.ts +44 -32
- package/dist/utility/wrun/derived-roots.util.js +97 -56
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +4 -3
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +4 -3
- package/dist/utility/wrun/sources/lanes/option_daily.d.ts +2 -1
- package/dist/utility/wrun/sources/lanes/option_daily.js +2 -1
- package/dist/utility/wrun/sources/lanes/options_flow.d.ts +3 -0
- package/dist/utility/wrun/sources/lanes/options_flow.js +23 -5
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +3 -4
- package/dist/utility/wrun/sources/row-lane-registry.js +9 -4
- package/dist/utility/wrun/sources/row-lanes/dark_pool.d.ts +19 -0
- package/dist/utility/wrun/sources/row-lanes/dark_pool.js +104 -0
- package/dist/utility/wrun/sources/row-lanes/index.js +2 -0
- package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.d.ts +20 -0
- package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.js +103 -0
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -2
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +15 -13
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +49 -23
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +14 -9
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +75 -27
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +139 -82
- package/dist/utility/wrun/wrun-app-layer.leaf.d.ts +78 -0
- package/dist/utility/wrun/wrun-app-layer.leaf.js +89 -0
- package/dist/utility/wrun/wrun-bar-count.util.d.ts +11 -7
- package/dist/utility/wrun/wrun-bar-count.util.js +12 -8
- package/dist/utility/wrun/wrun-batched-kinds.leaf.d.ts +13 -0
- package/dist/utility/wrun/wrun-batched-kinds.leaf.js +18 -0
- package/dist/utility/wrun/wrun-batched-marks.util.d.ts +41 -22
- package/dist/utility/wrun/wrun-batched-marks.util.js +255 -59
- package/dist/utility/wrun/wrun-batched-readout.util.d.ts +26 -19
- package/dist/utility/wrun/wrun-batched-readout.util.js +81 -27
- package/dist/utility/wrun/wrun-book-bands.leaf.d.ts +8 -0
- package/dist/utility/wrun/wrun-book-bands.leaf.js +7 -0
- package/dist/utility/wrun/wrun-candle-equal.leaf.d.ts +19 -0
- package/dist/utility/wrun/wrun-candle-equal.leaf.js +40 -0
- package/dist/utility/wrun/wrun-canvas-readout.util.d.ts +4 -2
- package/dist/utility/wrun/wrun-canvases.util.js +7 -3
- package/dist/utility/wrun/wrun-chart-context-names.util.d.ts +6 -3
- package/dist/utility/wrun/wrun-chart-context-names.util.js +8 -4
- package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +47 -29
- package/dist/utility/wrun/wrun-chart-market-facts.util.js +201 -201
- package/dist/utility/wrun/wrun-child-overlay-id.util.js +2 -1
- package/dist/utility/wrun/wrun-cme-legs-note.util.d.ts +15 -0
- package/dist/utility/wrun/wrun-cme-legs-note.util.js +49 -0
- package/dist/utility/wrun/wrun-cme-root-specs.util.d.ts +38 -0
- package/dist/utility/wrun/wrun-cme-root-specs.util.js +81 -0
- package/dist/utility/wrun/wrun-coin-lane-live.util.js +3 -0
- package/dist/utility/wrun/wrun-color-settings.util.d.ts +6 -1
- package/dist/utility/wrun/wrun-color-settings.util.js +32 -7
- package/dist/utility/wrun/wrun-dark-pool.util.d.ts +50 -0
- package/dist/utility/wrun/wrun-dark-pool.util.js +127 -0
- package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +67 -12
- package/dist/utility/wrun/wrun-declared-warmup.util.js +165 -13
- package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +18 -8
- package/dist/utility/wrun/wrun-draft-legend-note.util.js +57 -11
- package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +14 -10
- package/dist/utility/wrun/wrun-draft-overlay.util.js +26 -14
- package/dist/utility/wrun/wrun-earnings-facts.util.js +3 -2
- package/dist/utility/wrun/wrun-etf-funds.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-etf-funds.util.js +4 -0
- package/dist/utility/wrun/wrun-held-lanes.util.js +8 -2
- package/dist/utility/wrun/wrun-history-as-of.util.d.ts +77 -0
- package/dist/utility/wrun/wrun-history-as-of.util.js +108 -0
- package/dist/utility/wrun/wrun-host.service.d.ts +64 -14
- package/dist/utility/wrun/wrun-host.service.js +137 -27
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +3 -3
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +12 -2
- package/dist/utility/wrun/wrun-inert-legend.util.d.ts +13 -0
- package/dist/utility/wrun/wrun-inert-legend.util.js +31 -3
- package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +7 -5
- package/dist/utility/wrun/wrun-input-requirements.leaf.js +16 -6
- package/dist/utility/wrun/wrun-install-pacer.util.d.ts +26 -0
- package/dist/utility/wrun/wrun-install-pacer.util.js +145 -0
- package/dist/utility/wrun/wrun-kit-refusal-stages.types.d.ts +22 -0
- package/dist/utility/wrun/wrun-kit-refusal-stages.types.js +1 -0
- package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +12 -5
- package/dist/utility/wrun/wrun-lane-refusal.leaf.js +23 -5
- package/dist/utility/wrun/wrun-lane-warmup.util.js +22 -4
- package/dist/utility/wrun/wrun-leg-close.util.d.ts +6 -5
- package/dist/utility/wrun/wrun-leg-close.util.js +11 -9
- package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +3 -1
- package/dist/utility/wrun/wrun-leg-fetch.util.js +9 -2
- package/dist/utility/wrun/wrun-levels-child.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-levels-child.util.js +6 -0
- package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +4 -0
- package/dist/utility/wrun/wrun-live-intake.util.d.ts +15 -6
- package/dist/utility/wrun/wrun-live-intake.util.js +167 -47
- package/dist/utility/wrun/wrun-live-tick.util.d.ts +52 -8
- package/dist/utility/wrun/wrun-live-tick.util.js +648 -97
- package/dist/utility/wrun/wrun-market-facts.util.d.ts +16 -2
- package/dist/utility/wrun/wrun-market-facts.util.js +32 -3
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +27 -27
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +28 -16
- package/dist/utility/wrun/wrun-market-size-defaults.util.js +34 -5
- package/dist/utility/wrun/wrun-oi-lane.util.d.ts +10 -7
- package/dist/utility/wrun/wrun-oi-lane.util.js +16 -10
- package/dist/utility/wrun/wrun-option-strike-flow.util.js +1 -1
- package/dist/utility/wrun/wrun-option-views.util.d.ts +2 -2
- package/dist/utility/wrun/wrun-option-views.util.js +5 -2
- package/dist/utility/wrun/wrun-options-flow-underlying.leaf.d.ts +5 -0
- package/dist/utility/wrun/wrun-options-flow-underlying.leaf.js +16 -0
- package/dist/utility/wrun/wrun-options-stop.util.d.ts +3 -2
- package/dist/utility/wrun/wrun-options-stop.util.js +6 -4
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +75 -11
- package/dist/utility/wrun/wrun-overlay-drivers.util.js +176 -43
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +20 -10
- package/dist/utility/wrun/wrun-overlay-park.util.d.ts +84 -0
- package/dist/utility/wrun/wrun-overlay-park.util.js +135 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +37 -4
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +26 -14
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +239 -24
- package/dist/utility/wrun/wrun-overlay-run.util.js +2204 -405
- package/dist/utility/wrun/wrun-pack.util.d.ts +8 -5
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +2 -1
- package/dist/utility/wrun/wrun-panel-mount.util.js +20 -14
- package/dist/utility/wrun/wrun-panel-style.util.d.ts +4 -2
- package/dist/utility/wrun/wrun-panel-style.util.js +3 -2
- package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +7 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.js +18 -4
- package/dist/utility/wrun/wrun-pin-venues.util.d.ts +26 -17
- package/dist/utility/wrun/wrun-pin-venues.util.js +43 -36
- package/dist/utility/wrun/wrun-pinned-lanes.util.d.ts +58 -0
- package/dist/utility/wrun/wrun-pinned-lanes.util.js +72 -0
- package/dist/utility/wrun/wrun-prefix-cohort.util.js +2 -1
- package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +22 -9
- package/dist/utility/wrun/wrun-prefix-lanes.util.js +145 -26
- package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +29 -0
- package/dist/utility/wrun/wrun-prefix-proof.util.js +23 -5
- package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +9 -1
- package/dist/utility/wrun/wrun-refusal-surface.util.js +15 -1
- package/dist/utility/wrun/wrun-refusal.util.d.ts +19 -1
- package/dist/utility/wrun/wrun-refusal.util.js +103 -16
- package/dist/utility/wrun/wrun-registry-errors.util.d.ts +20 -6
- package/dist/utility/wrun/wrun-registry-errors.util.js +20 -6
- package/dist/utility/wrun/wrun-replay-rows.util.js +6 -10
- package/dist/utility/wrun/wrun-run-health.util.d.ts +89 -2
- package/dist/utility/wrun/wrun-run-health.util.js +204 -1
- package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +2 -2
- package/dist/utility/wrun/wrun-run-interval-session.util.js +2 -2
- package/dist/utility/wrun/wrun-run-interval.util.d.ts +9 -8
- package/dist/utility/wrun/wrun-run-interval.util.js +13 -11
- package/dist/utility/wrun/wrun-sandbox-row-source.js +5 -2
- package/dist/utility/wrun/wrun-script-inputs.util.d.ts +13 -3
- package/dist/utility/wrun/wrun-script-inputs.util.js +51 -13
- package/dist/utility/wrun/wrun-session-composition.util.d.ts +81 -0
- package/dist/utility/wrun/wrun-session-composition.util.js +169 -0
- package/dist/utility/wrun/wrun-setting-words.util.d.ts +10 -7
- package/dist/utility/wrun/wrun-setting-words.util.js +25 -7
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +94 -28
- package/dist/utility/wrun/wrun-source-rows.util.js +738 -93
- package/dist/utility/wrun/wrun-stream-clock.util.d.ts +45 -0
- package/dist/utility/wrun/wrun-stream-clock.util.js +108 -0
- package/dist/utility/wrun/wrun-tape-coins.util.d.ts +116 -0
- package/dist/utility/wrun/wrun-tape-coins.util.js +110 -0
- package/dist/utility/wrun/wrun-tape-source.util.d.ts +62 -32
- package/dist/utility/wrun/wrun-tape-source.util.js +72 -34
- package/dist/utility/wrun/wrun-tier-grid.util.d.ts +13 -5
- package/dist/utility/wrun/wrun-tier-grid.util.js +23 -13
- package/dist/utility/wrun/wrun-tpo-rows.util.js +2 -1
- package/dist/utility/wrun/wrun-trades-lane.util.d.ts +73 -0
- package/dist/utility/wrun/wrun-trades-lane.util.js +82 -0
- package/dist/utility/wrun/wrun-twin-compute-inputs.util.d.ts +5 -0
- package/dist/utility/wrun/wrun-twin-compute-inputs.util.js +9 -2
- package/dist/utility/wrun/wrun-visibility-table.d.ts +13 -0
- package/dist/utility/wrun/wrun-visibility-table.js +9 -0
- package/dist/utility/wrun/wrun-volume-profile.util.js +44 -32
- package/dist/utils/replay/replay-buffer-math.d.ts +16 -6
- package/dist/utils/replay/replay-buffer-math.js +60 -30
- package/dist/workers/constants/socket-slots.d.ts +11 -7
- package/dist/workers/constants/socket-slots.js +6 -5
- package/package.json +11 -11
|
@@ -20,11 +20,12 @@ export interface WrunChartRthSession {
|
|
|
20
20
|
symbol?: unknown;
|
|
21
21
|
sessionType?: unknown;
|
|
22
22
|
}
|
|
23
|
-
/** The session the chart fetches a US listing's candles on
|
|
24
|
-
* reads it: 'extended' only while the
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
|
|
23
|
+
/** The session the chart fetches a US listing's candles on at `interval` (the chart's or the leg's,
|
|
24
|
+
* label or milliseconds), as the shared host's session calendar reads it: 'extended' only while the
|
|
25
|
+
* chart runs its extended session there (`isEquityExtendedSession`, the fetch's own decider: below a
|
|
26
|
+
* day), else 'regular', an unset session included (the browser never leaves it unstated; the package
|
|
27
|
+
* reads an unstated session as open plus the span). */
|
|
28
|
+
export declare function wrunChartSessionType(sessionType: unknown, interval: unknown): 'regular' | 'extended';
|
|
28
29
|
/** The chart a session read takes beside its persisted `sessionType`: its symbol and its interval (the chart's
|
|
29
30
|
* interval label or milliseconds), with which the session the chart rides is read (`wrunChartSession`). */
|
|
30
31
|
export interface WrunSessionChart {
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
* York stock: the daily at 16:00 New York, the week with its last session), read on the gateway's
|
|
45
45
|
* fixed 09:30 to 16:00 window (`regularWindowClose`: an NYSE early close keeps its after-hours
|
|
46
46
|
* prints until 16:00, so its candle closes there, never before its last print). An
|
|
47
|
-
* extended-hours chart fetches every print, so every leg there keeps open
|
|
47
|
+
* extended-hours chart fetches every print below a day, so every intraday leg there keeps open
|
|
48
|
+
* plus the span; from a day up its candles are the regular session's and close with it.
|
|
48
49
|
* - Every other leg (US_STOCKS among them, for now) keeps the leg core's open plus the span.
|
|
49
50
|
*
|
|
50
51
|
* What the browser still owns: the chart's session words (`wrunChartSession`: the session the chart
|
|
@@ -82,12 +83,13 @@ function legExchangeOf(leg, chartExchange) {
|
|
|
82
83
|
function legSymbolOf(leg, chartSymbol) {
|
|
83
84
|
return leg.market?.symbol ?? chartSymbol;
|
|
84
85
|
}
|
|
85
|
-
/** The session the chart fetches a US listing's candles on
|
|
86
|
-
* reads it: 'extended' only while the
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
/** The session the chart fetches a US listing's candles on at `interval` (the chart's or the leg's,
|
|
87
|
+
* label or milliseconds), as the shared host's session calendar reads it: 'extended' only while the
|
|
88
|
+
* chart runs its extended session there (`isEquityExtendedSession`, the fetch's own decider: below a
|
|
89
|
+
* day), else 'regular', an unset session included (the browser never leaves it unstated; the package
|
|
90
|
+
* reads an unstated session as open plus the span). */
|
|
91
|
+
export function wrunChartSessionType(sessionType, interval) {
|
|
92
|
+
return isEquityExtendedSession(sessionType, interval) ? 'extended' : 'regular';
|
|
91
93
|
}
|
|
92
94
|
/** The chart's session as the row builder reads it (`WrunChartSourceRows.session`): the chart's exchange, its
|
|
93
95
|
* symbol (`chart`, when the caller has it) and the session the chart rides. On a market with an RTH window (a
|
|
@@ -100,7 +102,7 @@ export function wrunChartSessionType(sessionType) {
|
|
|
100
102
|
* `wrunChartSessionType`: on a stock the word is the extended-hours flag. */
|
|
101
103
|
export function wrunChartSession(exchange, sessionType, chart) {
|
|
102
104
|
const symbol = typeof chart?.symbol === 'string' && chart.symbol !== '' ? chart.symbol : undefined;
|
|
103
|
-
const listing = wrunChartSessionType(sessionType);
|
|
105
|
+
const listing = wrunChartSessionType(sessionType, chart?.interval);
|
|
104
106
|
const rides = symbol !== undefined && hasRthWindow(symbol, exchange)
|
|
105
107
|
? effectiveChartSessionType(exchange, symbol, chart?.interval, sessionType)
|
|
106
108
|
: listing;
|
|
@@ -188,7 +190,7 @@ function nextRthBar(venue, instantMs, intervalMs) {
|
|
|
188
190
|
/** A US listing's candle close on a regular-session chart (the module doc): undefined on an
|
|
189
191
|
* extended-hours chart and on every other venue. */
|
|
190
192
|
function stockLegCandleClose(leg, chartExchange, sessionType) {
|
|
191
|
-
if (!(Number.isFinite(leg.legMs) && leg.legMs > 0) || wrunChartSessionType(sessionType) !== 'regular') {
|
|
193
|
+
if (!(Number.isFinite(leg.legMs) && leg.legMs > 0) || wrunChartSessionType(sessionType, leg.legMs) !== 'regular') {
|
|
192
194
|
return undefined;
|
|
193
195
|
}
|
|
194
196
|
const host = wrunChartHostEnv().sharedHost();
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* - A candle leg (a period leg's scalar views, a `candles` stream) asks from the earliest start
|
|
7
7
|
* its readings plan, `wrunLegFetchStart` per input over the window's head and the run's clock:
|
|
8
8
|
* two leg spans before the head on a leg coarser than the chart, one on an equal or finer
|
|
9
|
-
* leg, N more for view `offset` N, and `bars` deepening it from the leg bucket holding
|
|
9
|
+
* leg, N more for view `offset` N, and `bars` deepening it from the leg bucket holding the
|
|
10
|
+
* clock's as-of (`historyAsOfMs`: a live session's pin, so a later run of the session never asks
|
|
11
|
+
* it from a later start; a replay's present; else now, wrun-history-as-of.util); a
|
|
10
12
|
* `candles` input read with view "forming" (the live candle) asks two leg spans before the
|
|
11
13
|
* bucket holding now (`candles_forming`), one read with view "forming_open" (the open of the
|
|
12
14
|
* candle holding each row) one leg span before the head's leg bucket (`candles_forming_open`),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { historyReachMs } from '../chart/history-wall.util.js';
|
|
2
2
|
import { wrunChartHostEnv } from '../../host-env.js';
|
|
3
3
|
import { WRUN_LEG_HISTORY_CLAMPED_CODE } from './wrun-run-health.util.js';
|
|
4
|
+
import { wrunClockHistoryAsOfMs } from './wrun-history-as-of.util.js';
|
|
4
5
|
/** The leg candles a candle leg coarser than the chart asks before the window's head: a reading
|
|
5
6
|
* seeded on the first candle it sees (an EMA over 1h closes on a 1m chart, whose window holds
|
|
6
7
|
* about ten of them) then starts from history instead of the head (A23). The wall still cuts
|
|
@@ -84,13 +85,19 @@ export function planWrunLegFetch(input) {
|
|
|
84
85
|
const clamped = [];
|
|
85
86
|
// Every planned candle leg has a reading; a bare leg asks like a confirmed view.
|
|
86
87
|
const reads = input.reads.length > 0 ? input.reads : [{ inputName: leg.intervalKey, reading: 'confirmed' }];
|
|
88
|
+
// A declared depth (`bars`) counts back from the clock's as-of, never from a later run's now
|
|
89
|
+
// (wrun-history-as-of.util: a session's pin, a replay's present); the live candle's two spans
|
|
90
|
+
// around now and the wall still read the clock's now.
|
|
91
|
+
const historyAsOfMs = wrunClockHistoryAsOfMs(clock);
|
|
87
92
|
for (const read of reads) {
|
|
88
|
-
const askedStartMs = wrunChartHostEnv()
|
|
93
|
+
const askedStartMs = wrunChartHostEnv()
|
|
94
|
+
.sharedHost()
|
|
95
|
+
.wrunLegFetchStart({
|
|
89
96
|
reading: read.reading,
|
|
90
97
|
legMs: leg.legMs,
|
|
91
98
|
primaryMs: clock.intervalMs,
|
|
92
99
|
headMs,
|
|
93
|
-
nowMs: clock.nowMs,
|
|
100
|
+
nowMs: read.bars === undefined ? clock.nowMs : historyAsOfMs,
|
|
94
101
|
bars: read.bars,
|
|
95
102
|
offset: read.offset,
|
|
96
103
|
});
|
|
@@ -149,6 +149,8 @@ export declare const WRUN_LEVELS_WORD_REACH: {
|
|
|
149
149
|
readonly font_weight: "both";
|
|
150
150
|
readonly font_family: "both";
|
|
151
151
|
readonly label_place: "both";
|
|
152
|
+
readonly label_overflow: "both";
|
|
153
|
+
readonly label_limit: "both";
|
|
152
154
|
readonly hover: "both";
|
|
153
155
|
readonly poc_color: "both";
|
|
154
156
|
readonly poc_width: "both";
|
|
@@ -92,6 +92,8 @@ export const WRUN_LEVELS_WORD_REACH = {
|
|
|
92
92
|
font_weight: 'both',
|
|
93
93
|
font_family: 'both',
|
|
94
94
|
label_place: 'both',
|
|
95
|
+
label_overflow: 'both',
|
|
96
|
+
label_limit: 'both',
|
|
95
97
|
hover: 'both',
|
|
96
98
|
poc_color: 'both',
|
|
97
99
|
poc_width: 'both',
|
|
@@ -321,6 +323,10 @@ function styleSettings(level) {
|
|
|
321
323
|
out.label_font_family = family;
|
|
322
324
|
if (level.label_place !== undefined)
|
|
323
325
|
out.label_place = level.label_place;
|
|
326
|
+
if (level.label_overflow === true)
|
|
327
|
+
out.label_overflow = true;
|
|
328
|
+
if (typeof level.label_limit === 'number' && level.label_limit > 0)
|
|
329
|
+
out.label_limit = level.label_limit;
|
|
324
330
|
if (level.hover === true)
|
|
325
331
|
out.hover = true;
|
|
326
332
|
if (level.poc_color !== undefined)
|
|
@@ -32,6 +32,10 @@ export interface WrunRerunOptions {
|
|
|
32
32
|
* (`wrunRefusalAttemptOrigin`): retry and settings read as the user's, everything else as the
|
|
33
33
|
* chart's, because `switch` is also what every automatic refetch asks for. */
|
|
34
34
|
origin?: 'user' | 'system';
|
|
35
|
+
/** How long this rebuild episode already held for the pan (ms, the pacing clock): the live tick's settle gate held
|
|
36
|
+
* the backward extension's handoff that long, so the run's install hold waits at most the rest of the one ceiling
|
|
37
|
+
* (`HEAVY_APPLY_GESTURE_CEILING_MS` less this). Absent: nothing held yet, the full ceiling. */
|
|
38
|
+
gestureHeldMs?: number;
|
|
35
39
|
}
|
|
36
40
|
/** Why the lifecycle door will not run an overlay now; null means run. 'failed-deterministic': the
|
|
37
41
|
* last run of this overlay failed the row cap on the same window and settings, so a wave would
|
|
@@ -5,6 +5,7 @@ import { type WrunLegStreamLane } from './wrun-leg-stream-classes.js';
|
|
|
5
5
|
import type { WrunPollLaneId } from './sources/wrun-poll-lane.types.js';
|
|
6
6
|
import type { WrunRowLaneId } from './sources/wrun-row-lane.types.js';
|
|
7
7
|
import { type WrunTradesLegLane } from './wrun-trades-lane.util.js';
|
|
8
|
+
import { type WrunPinnedLaneId } from './wrun-pinned-lanes.util.js';
|
|
8
9
|
/** The lanes the row builder serves through its own branches, each with a named buffer on the
|
|
9
10
|
* live context. */
|
|
10
11
|
export type WrunBuiltinLiveLane = 'book' | 'trades'
|
|
@@ -16,9 +17,10 @@ export type WrunBuiltinLiveLane = 'book' | 'trades'
|
|
|
16
17
|
| 'tape';
|
|
17
18
|
/** A live lane: one of the row builder's own, a registry poll lane instance by its id
|
|
18
19
|
* (`poll:*`, `utility/wrun/sources/`; its buffer is `context.pollLaneRows[id]`), a row lane
|
|
19
|
-
* instance (`row:*`, `context.rowLaneRows[id]`),
|
|
20
|
-
* kit 0.77.0).
|
|
21
|
-
|
|
20
|
+
* instance (`row:*`, `context.rowLaneRows[id]`), a trades leg lane (`context.tradeLegRows[id]`,
|
|
21
|
+
* kit 0.77.0), or a pinned lane (`context.pinnedLaneRows[id]`, U9e: a book, oi, funding or
|
|
22
|
+
* liquidations input pinned to another market, wrun-pinned-lanes.util). */
|
|
23
|
+
export type WrunLiveLane = WrunBuiltinLiveLane | WrunPollLaneId | WrunRowLaneId | WrunTradesLegLane | WrunPinnedLaneId;
|
|
22
24
|
/** The `trades` SOURCE (K_TRADES) feeds the `tape` lane; the `trades` LANE is fed by `buy_sell_volume` (TRADE_AGG). */
|
|
23
25
|
export declare const WRUN_LIVE_LANE_OF_SCRIPT_SOURCE: Readonly<Record<string, WrunLiveLane | 'ohlcv'>>;
|
|
24
26
|
export declare const WRUN_PUSH_LANES: ReadonlySet<WrunLiveLane>;
|
|
@@ -226,7 +228,7 @@ export declare function foldWrunLegCandleRows(base: ReadonlyArray<ArrayLike<numb
|
|
|
226
228
|
* bar. Undefined where the history keeps the book's own bars (`wrunLaneHostGridsOf`: 30m and finer, ETH, a day and
|
|
227
229
|
* longer, a 24/7 market, a market served no book): every key is its own bar.
|
|
228
230
|
*/
|
|
229
|
-
export declare function wrunBookRowHostBarResolver(intervalMs: number, market: WrunLiveBucketMarket | null | undefined): ((rowTs: number, nowMs: number) => number | null) | undefined;
|
|
231
|
+
export declare function wrunBookRowHostBarResolver(intervalMs: number, market: WrunLiveBucketMarket | null | undefined, rowMarket?: WrunLiveBucketMarket | null | undefined): ((rowTs: number, nowMs: number) => number | null) | undefined;
|
|
230
232
|
/**
|
|
231
233
|
* The host bar a tape print lands in: the bar holding its own instant (the cell placement its history gets,
|
|
232
234
|
* `placeRowsInHostBars` with `cells`), null where no chart bar holds it. Undefined where the chart's bars are the
|
|
@@ -342,7 +344,10 @@ export declare function noteWrunLiveIntakeEvent(indicatorId: string, event: Wrun
|
|
|
342
344
|
/**
|
|
343
345
|
* Whether the push intake may feed this package on a chart of
|
|
344
346
|
* `chartInterval`. False when any input pins something the lane cannot
|
|
345
|
-
* ride: a market pin on
|
|
347
|
+
* ride: a market pin on a class the one table leaves out
|
|
348
|
+
* (`WRUN_BROWSER_PINNED_LANE_CLASSES`, the table the row builder's refusal
|
|
349
|
+
* and the run's admission read) or on the primary input, a pinned lane
|
|
350
|
+
* (trades, book, oi, funding, liquidations) with an interval of its own, an interval
|
|
346
351
|
* pin on a celled input or on a class other than `ohlcv`, `funding` or
|
|
347
352
|
* `oi`, a finer interval, one that is not a whole multiple of the chart's,
|
|
348
353
|
* or a word outside the vocabulary. An `ohlcv` pin COARSER than the chart
|
|
@@ -356,7 +361,11 @@ export declare function noteWrunLiveIntakeEvent(indicatorId: string, event: Wrun
|
|
|
356
361
|
* An `odds` input (the odds lane) is a poll-only leg outside the push set:
|
|
357
362
|
* its market (POLYMARKET|<condition id>) or interval pin never makes the
|
|
358
363
|
* package ineligible, even on the primary input, so a package pairing an
|
|
359
|
-
* odds input with a pinned ohlcv leg keeps that leg's push feed.
|
|
364
|
+
* odds input with a pinned ohlcv leg keeps that leg's push feed. A
|
|
365
|
+
* secondary trades, book, oi, funding or liquidations input pinned to another
|
|
366
|
+
* market is a lane of its own there (a trades leg, U9e's pinned lanes): its
|
|
367
|
+
* class's channel on that market feeds it (an oi lane is polled), and the
|
|
368
|
+
* chart's own push lanes stay valid.
|
|
360
369
|
* The full run refuses the ineligible pins by name before any fetch
|
|
361
370
|
* (`planWrunPinnedLegs`), so this only classifies.
|
|
362
371
|
*/
|