@orangecharts/wrun-chart-host 0.11.1 → 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 +17 -0
- package/dist/index.js +18 -0
- package/dist/indicators/controls/tpo-session.util.d.ts +52 -12
- package/dist/indicators/controls/tpo-session.util.js +113 -16
- 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/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-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 +7 -3
- 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 +5 -5
|
@@ -324,6 +324,8 @@ export const INDICATOR_COMMON_FIELDS = [
|
|
|
324
324
|
['showVAHNaked', PREFERENCE],
|
|
325
325
|
['showVAL', PREFERENCE],
|
|
326
326
|
['showLevelsOnScale', PREFERENCE],
|
|
327
|
+
// The Options GEX surfaces' OI fallback % switch before 2026-11-01: no control reads it now (showOiFallback, at the
|
|
328
|
+
// end of this list, took its place), and the row stays because saved rows still carry the key.
|
|
327
329
|
['showBasisStamp', PREFERENCE],
|
|
328
330
|
// Options indicators: the picked option exchanges (crypto-options lane). Unset reads the chart's
|
|
329
331
|
// default venue, so overlays saved before the pick existed are unchanged.
|
|
@@ -667,13 +669,17 @@ export const INDICATOR_COMMON_FIELDS = [
|
|
|
667
669
|
['plotType', META_PREFERENCE],
|
|
668
670
|
['multipleStyles', META_PREFERENCE],
|
|
669
671
|
['aggregated', META_PREFERENCE],
|
|
670
|
-
// The look of the book, liquidation and TP/SL heatmaps.
|
|
672
|
+
// The look of the book, liquidation and TP/SL heatmaps. `crossSection` is the panel's Cross section switch (the
|
|
673
|
+
// companion pane with price on x): undeclared until 2026-11-01, so a template and a saved default dropped it.
|
|
671
674
|
['colors', META_PREFERENCE],
|
|
672
675
|
['showValues', META_PREFERENCE],
|
|
673
676
|
['display', META_PREFERENCE],
|
|
674
677
|
['showMagnifier', META_PREFERENCE],
|
|
675
678
|
['cellShape', META_PREFERENCE],
|
|
676
679
|
['sizeScale', META_PREFERENCE],
|
|
680
|
+
['crossSection', META_PREFERENCE],
|
|
681
|
+
// The Hyperliquid liquidation heatmap's Running total (its profile's cumulative arms); no other heatmap writes it.
|
|
682
|
+
['runningTotal', META_PREFERENCE],
|
|
677
683
|
// Order book depth bands (percent of price) and the depth and funding display modes.
|
|
678
684
|
['smallerThanPct', META_PREFERENCE],
|
|
679
685
|
['greaterThanPct', META_PREFERENCE],
|
|
@@ -696,6 +702,8 @@ export const INDICATOR_COMMON_FIELDS = [
|
|
|
696
702
|
// The volumetric size window is a volume in those same units.
|
|
697
703
|
['sizeCeil', META_MARKET_BOUND],
|
|
698
704
|
['venueChoice', META_VENUE_CHOICE],
|
|
705
|
+
// Both footprints' Row size mode ('auto' | 'manual'): kept so a default saved in Auto resizes on the next chart.
|
|
706
|
+
['rowSizeMode', META_PREFERENCE],
|
|
699
707
|
// Sierra parity (2026-10-21): every key absent = today's look. Appended as one block so the row-keys golden names
|
|
700
708
|
// them as one later addition (LATER_SHARED_ROW_KEYS in its spec).
|
|
701
709
|
// TPO look, structure and period keys the settings dialog and the period menu write.
|
|
@@ -761,6 +769,9 @@ export const INDICATOR_COMMON_FIELDS = [
|
|
|
761
769
|
['fullNumbers', PREFERENCE],
|
|
762
770
|
['showValueAreaBand', PREFERENCE],
|
|
763
771
|
['candleMarker', PREFERENCE],
|
|
772
|
+
// Footprint Candle Position (FOOTPRINT-CENTER, 2026-11-02), declared after the fixture in its own change: Left or
|
|
773
|
+
// Center, written either way once picked (a pick of Left must replace a saved Center); absent reads Left.
|
|
774
|
+
['candlePosition', PREFERENCE],
|
|
764
775
|
['footprintColumns', PREFERENCE],
|
|
765
776
|
// The Aggregated Volume Footprint's Trim empty tail rows (settings no-op audit, 2026-10-25): its template stamps
|
|
766
777
|
// the key on, and a row the user switched off must keep it off through a reload.
|
|
@@ -780,6 +791,15 @@ export const INDICATOR_COMMON_FIELDS = [
|
|
|
780
791
|
['openBlockColor', PREFERENCE],
|
|
781
792
|
['highlightClose', PREFERENCE],
|
|
782
793
|
['closeBlockColor', PREFERENCE],
|
|
794
|
+
// The Options GEX profile's and curve's Show OI fallback % switch (2026-11-01), declared after the fixture in its own
|
|
795
|
+
// change: it replaced showBasisStamp, whose default every mount had stamped into the row. Absent reads off, so only a
|
|
796
|
+
// user's pick is ever kept.
|
|
797
|
+
['showOiFallback', PREFERENCE],
|
|
798
|
+
// Liquidations `colors` hold [longs, shorts], not bar order (2026-11-01); without it a reload migrates a row again.
|
|
799
|
+
['colorsBySide', PREFERENCE],
|
|
800
|
+
// TPO's trading-hour stamp (2026-11-05, TPO_TRADING_HOUR_VERSION): without it a reload reads a picked All Hours as
|
|
801
|
+
// the old default and turns it into Chart.
|
|
802
|
+
['tradingHourVersion', PREFERENCE],
|
|
783
803
|
];
|
|
784
804
|
/**
|
|
785
805
|
* FEED (live series, docs/features/indicators/feeds.md): the rest of the C4 record beside `address`, `scope` and
|
|
@@ -795,6 +815,7 @@ const FEED_FIELDS = [
|
|
|
795
815
|
['plot', PREFERENCE],
|
|
796
816
|
['color', PREFERENCE],
|
|
797
817
|
['pane', PREFERENCE],
|
|
818
|
+
['column', PREFERENCE],
|
|
798
819
|
];
|
|
799
820
|
/**
|
|
800
821
|
* The metric profiles (metric-profile.util): the render keys the save door derives from `scope` and the row's display
|
|
@@ -812,6 +833,8 @@ const METRIC_PROFILE_FIELDS = [
|
|
|
812
833
|
['deltaLayout', PREFERENCE],
|
|
813
834
|
['levelBasis', PREFERENCE],
|
|
814
835
|
['rowDisplay', PREFERENCE],
|
|
836
|
+
// The Cluster labels row of a member with a cluster look; its suffix, floor and row sizes are engine-only defaults.
|
|
837
|
+
['clusterLabelCount', PREFERENCE],
|
|
815
838
|
];
|
|
816
839
|
/**
|
|
817
840
|
* The Symbol Comparison overlays (new price scale, same % scale, new pane): the name the user gave the series (`label`,
|
|
@@ -842,9 +865,12 @@ const OPTIONS_HEATMAP_FIELDS = [
|
|
|
842
865
|
['cellShape', PREFERENCE],
|
|
843
866
|
['lowNodes', PREFERENCE],
|
|
844
867
|
['dataSource', PREFERENCE],
|
|
845
|
-
// The node look knobs (NODE-KNOBS 2026-10-28): the smallest
|
|
868
|
+
// The node look knobs (NODE-KNOBS 2026-10-28): the smallest node and the faintest, percent sliders, and the biggest
|
|
869
|
+
// in px (`nodeMaxPx`, NODE-PX 2026-11-02). `nodeMaxSize` is the biggest node's legacy percent: kept so a save carries
|
|
870
|
+
// a saved value through for the production build, which still reads it from the settings store INT shares.
|
|
846
871
|
['nodeMinSize', PREFERENCE],
|
|
847
872
|
['nodeMaxSize', PREFERENCE],
|
|
873
|
+
['nodeMaxPx', PREFERENCE],
|
|
848
874
|
['nodeMinOpacity', PREFERENCE],
|
|
849
875
|
// 'user' once the user picked the basis in the settings dialog: a governed host's market switch and restore reset
|
|
850
876
|
// only a naive basis the old switch forced (the control's `governedBasisReset`), so the mark travels with `basis`.
|
|
@@ -30,8 +30,8 @@ export declare const TOOL_TEMPLATE_RULES: {
|
|
|
30
30
|
* `instanceKeys`: no template carries or writes them, Save as default and the style memory keep neither (web
|
|
31
31
|
* src/store/tool-style-memory.ts keeps the default lane), and a template applied to a drawing leaves its own. Until
|
|
32
32
|
* 2026-10-25 they rode both lanes, so a GhostFeed drawn after one on BTC drew BTC's volatility on any symbol.
|
|
33
|
-
* tests/
|
|
34
|
-
*
|
|
33
|
+
* tests/structure/settings-kept.spec.ts names each key here a panel shows in its ledger: a key added to or removed
|
|
34
|
+
* from this list changes what the default lane keeps, and that spec fails until its ledger says why.
|
|
35
35
|
*/
|
|
36
36
|
readonly instanceKeysByType: {
|
|
37
37
|
readonly GhostFeed: readonly ["averageHL", "variance"];
|
|
@@ -68,10 +68,11 @@ export declare const TOOL_TEMPLATE_RULES: {
|
|
|
68
68
|
readonly intervalBoundTypes: readonly ["GhostFeed", "BarPattern", "GannSquareFixed"];
|
|
69
69
|
/**
|
|
70
70
|
* Keys the engine reads but the registry defaultStyle does not list (web src/components/objects/tool-prop-sections.ts
|
|
71
|
-
* HELD_EXTRA_FIELDS: the
|
|
71
|
+
* HELD_EXTRA_FIELDS: the axis label flag of a horizontal line or ray (price label), a vertical line (time label) and
|
|
72
|
+
* a cross line (both), the fib pair's log-scale levels), each with
|
|
72
73
|
* the default the engine seeds (titan's tool classes), so a template, a seed and Save as default see every key. A
|
|
73
74
|
* key belongs in the registry: an extra stays here only while the registry cannot carry it as the editors show it
|
|
74
|
-
* (the
|
|
75
|
+
* (the axis label flag is the `highlight` field under a per-type label), or until the registry lists it (the fib
|
|
75
76
|
* pair's). A position's line width and style moved into the registry with chart-schema 0.5.1, and the generator
|
|
76
77
|
* refuses an extra the registry lists.
|
|
77
78
|
*/
|
|
@@ -82,6 +83,12 @@ export declare const TOOL_TEMPLATE_RULES: {
|
|
|
82
83
|
readonly HorizontalRay: {
|
|
83
84
|
readonly highlight: true;
|
|
84
85
|
};
|
|
86
|
+
readonly VerticalLine: {
|
|
87
|
+
readonly highlight: true;
|
|
88
|
+
};
|
|
89
|
+
readonly CrossLine: {
|
|
90
|
+
readonly highlight: true;
|
|
91
|
+
};
|
|
85
92
|
readonly FibonacciRetracement: {
|
|
86
93
|
readonly levelsOnLogScale: false;
|
|
87
94
|
};
|
|
@@ -91,11 +98,13 @@ export declare const TOOL_TEMPLATE_RULES: {
|
|
|
91
98
|
};
|
|
92
99
|
/**
|
|
93
100
|
* Style keys Save as default never keeps, and so neither does web's style memory (src/store/tool-style-memory.ts
|
|
94
|
-
* keeps the default lane):
|
|
95
|
-
*
|
|
96
|
-
*
|
|
101
|
+
* keeps the default lane): only a placed drawing's geometry (`rotation`). A key the user picks belongs in the lane:
|
|
102
|
+
* the position tools' account size, risk, risk mode and lot size are the user's sizing, and TradingView's Long and
|
|
103
|
+
* Short Position start the next drawing from the last ones set (checked 2026-11-01 on its Charting Library; until
|
|
104
|
+
* then this list held them, and every new position reset to a 1000 account at 25% risk).
|
|
105
|
+
* tests/packages/wrun-chart-host/settings-templates/default-lane.spec.ts fails on any other key here.
|
|
97
106
|
*/
|
|
98
|
-
readonly defaultExcludedKeys: readonly ["rotation"
|
|
107
|
+
readonly defaultExcludedKeys: readonly ["rotation"];
|
|
99
108
|
/**
|
|
100
109
|
* Types whose Save as default keeps nothing, and so neither does web's style memory: an Image is placed by a dialog
|
|
101
110
|
* that owns its source and opacity at confirm time.
|
|
@@ -30,8 +30,8 @@ export const TOOL_TEMPLATE_RULES = {
|
|
|
30
30
|
* `instanceKeys`: no template carries or writes them, Save as default and the style memory keep neither (web
|
|
31
31
|
* src/store/tool-style-memory.ts keeps the default lane), and a template applied to a drawing leaves its own. Until
|
|
32
32
|
* 2026-10-25 they rode both lanes, so a GhostFeed drawn after one on BTC drew BTC's volatility on any symbol.
|
|
33
|
-
* tests/
|
|
34
|
-
*
|
|
33
|
+
* tests/structure/settings-kept.spec.ts names each key here a panel shows in its ledger: a key added to or removed
|
|
34
|
+
* from this list changes what the default lane keeps, and that spec fails until its ledger says why.
|
|
35
35
|
*/
|
|
36
36
|
instanceKeysByType: {
|
|
37
37
|
GhostFeed: ['averageHL', 'variance'],
|
|
@@ -68,16 +68,21 @@ export const TOOL_TEMPLATE_RULES = {
|
|
|
68
68
|
intervalBoundTypes: ['GhostFeed', 'BarPattern', 'GannSquareFixed'],
|
|
69
69
|
/**
|
|
70
70
|
* Keys the engine reads but the registry defaultStyle does not list (web src/components/objects/tool-prop-sections.ts
|
|
71
|
-
* HELD_EXTRA_FIELDS: the
|
|
71
|
+
* HELD_EXTRA_FIELDS: the axis label flag of a horizontal line or ray (price label), a vertical line (time label) and
|
|
72
|
+
* a cross line (both), the fib pair's log-scale levels), each with
|
|
72
73
|
* the default the engine seeds (titan's tool classes), so a template, a seed and Save as default see every key. A
|
|
73
74
|
* key belongs in the registry: an extra stays here only while the registry cannot carry it as the editors show it
|
|
74
|
-
* (the
|
|
75
|
+
* (the axis label flag is the `highlight` field under a per-type label), or until the registry lists it (the fib
|
|
75
76
|
* pair's). A position's line width and style moved into the registry with chart-schema 0.5.1, and the generator
|
|
76
77
|
* refuses an extra the registry lists.
|
|
77
78
|
*/
|
|
78
79
|
heldExtras: {
|
|
79
80
|
HorizontalLine: { highlight: true },
|
|
80
81
|
HorizontalRay: { highlight: true },
|
|
82
|
+
// The time label (TradingView's Vertical Line "Time Label") and the cross line's price and time labels: titan from
|
|
83
|
+
// the release after 0.0.4-alpha.1213 keeps them at rest, on by default (VerticalLine, CrossLine classes).
|
|
84
|
+
VerticalLine: { highlight: true },
|
|
85
|
+
CrossLine: { highlight: true },
|
|
81
86
|
// "Fib levels based on log scale" (feedback 1815): titan from 3dcd6689 (the release after 0.0.4-alpha.1211) spaces
|
|
82
87
|
// the levels in log10 of the price while it is on; chart-schema 0.8.0's FIB_STYLE does not list it yet, and the
|
|
83
88
|
// generator refuses these two once it does.
|
|
@@ -86,11 +91,13 @@ export const TOOL_TEMPLATE_RULES = {
|
|
|
86
91
|
},
|
|
87
92
|
/**
|
|
88
93
|
* Style keys Save as default never keeps, and so neither does web's style memory (src/store/tool-style-memory.ts
|
|
89
|
-
* keeps the default lane):
|
|
90
|
-
*
|
|
91
|
-
*
|
|
94
|
+
* keeps the default lane): only a placed drawing's geometry (`rotation`). A key the user picks belongs in the lane:
|
|
95
|
+
* the position tools' account size, risk, risk mode and lot size are the user's sizing, and TradingView's Long and
|
|
96
|
+
* Short Position start the next drawing from the last ones set (checked 2026-11-01 on its Charting Library; until
|
|
97
|
+
* then this list held them, and every new position reset to a 1000 account at 25% risk).
|
|
98
|
+
* tests/packages/wrun-chart-host/settings-templates/default-lane.spec.ts fails on any other key here.
|
|
92
99
|
*/
|
|
93
|
-
defaultExcludedKeys: ['rotation'
|
|
100
|
+
defaultExcludedKeys: ['rotation'],
|
|
94
101
|
/**
|
|
95
102
|
* Types whose Save as default keeps nothing, and so neither does web's style memory: an Image is placed by a dialog
|
|
96
103
|
* that owns its source and opacity at confirm time.
|
|
@@ -103,7 +103,7 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
103
103
|
backgroundOpacity: 15,
|
|
104
104
|
},
|
|
105
105
|
Comment: { color: '#4DA3FF', fontColor: '#FFFFFF', fontSize: 12 },
|
|
106
|
-
CrossLine: { color: '#4DA3FF', lineWidth: 2, lineStyle: 'solid' },
|
|
106
|
+
CrossLine: { color: '#4DA3FF', lineWidth: 2, lineStyle: 'solid', highlight: true },
|
|
107
107
|
Curve: {
|
|
108
108
|
color: '#4DA3FF',
|
|
109
109
|
borderColor: '#4DA3FF',
|
|
@@ -975,6 +975,7 @@ export const TOOL_DEFAULT_STYLE = {
|
|
|
975
975
|
textVerticalPosition: 'top',
|
|
976
976
|
fontWeight: 400,
|
|
977
977
|
fontStyle: 'normal',
|
|
978
|
+
highlight: true,
|
|
978
979
|
},
|
|
979
980
|
Whisper: { color: '#656565', highlight: false, lineWidth: 2 },
|
|
980
981
|
XABCDPattern: {
|
|
@@ -1070,7 +1071,7 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1070
1071
|
'visibleIntervalsMs',
|
|
1071
1072
|
],
|
|
1072
1073
|
Comment: ['color', 'fontColor', 'fontSize', 'visibleIntervalsMs'],
|
|
1073
|
-
CrossLine: ['color', 'lineWidth', 'lineStyle', 'visibleIntervalsMs'],
|
|
1074
|
+
CrossLine: ['color', 'lineWidth', 'lineStyle', 'highlight', 'visibleIntervalsMs'],
|
|
1074
1075
|
Curve: [
|
|
1075
1076
|
'color',
|
|
1076
1077
|
'borderColor',
|
|
@@ -1735,6 +1736,7 @@ export const TOOL_TEMPLATE_KEYS = {
|
|
|
1735
1736
|
'textVerticalPosition',
|
|
1736
1737
|
'fontWeight',
|
|
1737
1738
|
'fontStyle',
|
|
1739
|
+
'highlight',
|
|
1738
1740
|
'text',
|
|
1739
1741
|
'visibleIntervalsMs',
|
|
1740
1742
|
],
|
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
* `APPLY_STEP_MS` or more and on every deadband crossing. The data worker
|
|
37
37
|
* receives exactly that correction through the WorkerManager mirror
|
|
38
38
|
* (`setServerClockOffsetMs`) on every move and in each worker's bootstrap,
|
|
39
|
-
* so `serverNowMs()` reads the same clock in both.
|
|
39
|
+
* so `serverNowMs()` reads the same clock in both. The Hyperliquid signer
|
|
40
|
+
* worker gets it through its own `hl-signer:server-clock` message; every
|
|
41
|
+
* other dedicated worker gets none, so `serverNowMs()` there is the device clock.
|
|
40
42
|
*
|
|
41
43
|
* Boot: nothing awaits an API response before the first chart request, so the
|
|
42
44
|
* last measured offset is kept in localStorage (a device's skew is stable for
|
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
* `APPLY_STEP_MS` or more and on every deadband crossing. The data worker
|
|
37
37
|
* receives exactly that correction through the WorkerManager mirror
|
|
38
38
|
* (`setServerClockOffsetMs`) on every move and in each worker's bootstrap,
|
|
39
|
-
* so `serverNowMs()` reads the same clock in both.
|
|
39
|
+
* so `serverNowMs()` reads the same clock in both. The Hyperliquid signer
|
|
40
|
+
* worker gets it through its own `hl-signer:server-clock` message; every
|
|
41
|
+
* other dedicated worker gets none, so `serverNowMs()` there is the device clock.
|
|
40
42
|
*
|
|
41
43
|
* Boot: nothing awaits an API response before the first chart request, so the
|
|
42
44
|
* last measured offset is kept in localStorage (a device's skew is stable for
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { Intervals } from '../../constants/interval.constants.js';
|
|
19
19
|
import { roundObTimestamp } from '../common/data-processing.util.js';
|
|
20
|
-
import {
|
|
20
|
+
import { venueSessionLatticeBucketMs } from './live-bucket.util.js';
|
|
21
21
|
/**
|
|
22
22
|
* The lattice bar an END-stamped book frame closes, or null off the lattice (another venue, a
|
|
23
23
|
* coin-aggregated book that passes no venue, an interval the gateway does not roll): the stamp is
|
|
@@ -27,7 +27,7 @@ import { cmeSessionLatticeBucketMs } from './live-bucket.util.js';
|
|
|
27
27
|
*/
|
|
28
28
|
export function cmeLatticeBookBucketMs(stampMs, intervalMs, venue) {
|
|
29
29
|
const closingMs = intervalMs === Intervals.WEEK ? stampMs : stampMs - 1;
|
|
30
|
-
return
|
|
30
|
+
return venueSessionLatticeBucketMs(closingMs, intervalMs, venue);
|
|
31
31
|
}
|
|
32
32
|
/** The bar a live book row is keyed on: the CME session lattice bar on a CME Group market, else
|
|
33
33
|
* `roundObTimestamp`'s END reading of the plain grid. */
|
|
@@ -108,7 +108,7 @@ export interface MainPlanAsk {
|
|
|
108
108
|
verbatim?: boolean;
|
|
109
109
|
/**
|
|
110
110
|
* Partial-bucket asks only: the end (ms bar open) of the receipt that
|
|
111
|
-
* holds the bucket's first
|
|
111
|
+
* holds the bucket's first slot and ends inside it, the instant through
|
|
112
112
|
* which the re-delivered overlap is wire-validated. The dispatcher hands it
|
|
113
113
|
* to the poison detector as the compare bound (`receiptFrontierTs`), so an
|
|
114
114
|
* island's overlap is compared even when the chain from the entry's first
|
|
@@ -117,7 +117,7 @@ export interface MainPlanAsk {
|
|
|
117
117
|
*/
|
|
118
118
|
coverEndMs?: number;
|
|
119
119
|
}
|
|
120
|
-
/** A bucket the planner judged on a receipt holding its first
|
|
120
|
+
/** A bucket the planner judged on a receipt holding its first slot (ring diagnostic). */
|
|
121
121
|
export interface MainPlanBucketCover {
|
|
122
122
|
/** The bucket start (unix seconds). */
|
|
123
123
|
bucket: number;
|
|
@@ -140,11 +140,14 @@ interface MainPlanPaint {
|
|
|
140
140
|
wireFrontierTs?: number;
|
|
141
141
|
/**
|
|
142
142
|
* The entry's coalesced wire receipts over the rows the read returned (ms
|
|
143
|
-
* bar opens; the read
|
|
144
|
-
* the
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
143
|
+
* bar opens; the read stops each tail at the last returned row, cuts a head
|
|
144
|
+
* at the first returned row only where it left an older held bar out, and
|
|
145
|
+
* coalesces them on the interval grid: `WireReceiptHead`,
|
|
146
|
+
* `clampWireReceiptsToBars` in ohlcv-cache.service), so a head may precede
|
|
147
|
+
* the first row where the wire answered a closure. The period lane judges
|
|
148
|
+
* every closed bucket on the ONE receipt holding its first slot
|
|
149
|
+
* (`receiptHoldingBucketStart`; the 2026-10-02 08:59Z dump), so an island
|
|
150
|
+
* past a hole counts for the buckets it covers whole.
|
|
148
151
|
*/
|
|
149
152
|
wireReceipts?: ReadonlyArray<readonly [fromTs: number, toTs: number]>;
|
|
150
153
|
/** The read belt (barsConsistentWithInterval, foreign-grid classifier) passed; false refuses every skip. */
|
|
@@ -260,6 +263,11 @@ export interface MainPlanResult {
|
|
|
260
263
|
unprovenMountBuckets?: number[];
|
|
261
264
|
reason: string;
|
|
262
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* The ONE receipt holding a canonical bucket's first slot, or undefined: the bucket is held from its start under it,
|
|
268
|
+
* a closure the wire answered before the entry's first row included (WireReceiptHead); a bar alone never holds it.
|
|
269
|
+
*/
|
|
270
|
+
export declare function receiptHoldingBucketStart(receipts: ReadonlyArray<readonly [fromTs: number, toTs: number]>, bucketStartMs: number): readonly [fromTs: number, toTs: number] | undefined;
|
|
263
271
|
/**
|
|
264
272
|
* The instant (ms) through which validated windows answer for a series past
|
|
265
273
|
* its tail bar (fix-forward U1): the end of the span that holds the tail bar
|
|
@@ -259,6 +259,13 @@ function paintReceipts(paint) {
|
|
|
259
259
|
? [[firstTs, wireFrontierTs]]
|
|
260
260
|
: [];
|
|
261
261
|
}
|
|
262
|
+
/**
|
|
263
|
+
* The ONE receipt holding a canonical bucket's first slot, or undefined: the bucket is held from its start under it,
|
|
264
|
+
* a closure the wire answered before the entry's first row included (WireReceiptHead); a bar alone never holds it.
|
|
265
|
+
*/
|
|
266
|
+
export function receiptHoldingBucketStart(receipts, bucketStartMs) {
|
|
267
|
+
return receipts.find(([fromTs, toTs]) => fromTs <= bucketStartMs && toTs >= bucketStartMs);
|
|
268
|
+
}
|
|
262
269
|
/**
|
|
263
270
|
* Whether a receipt covers the paint's last row: one of `wireReceipts` holds
|
|
264
271
|
* it, else (a frontier-only caller) the chain from the first row reaches it.
|
|
@@ -321,11 +328,9 @@ function unprovenMountHealAsks(input, receipts, reachFromSec, intervalSec) {
|
|
|
321
328
|
const end = Math.min(b + bucketSec, reachPieceEndSec);
|
|
322
329
|
if (pending.some((p) => p.from <= b && end <= p.from + p.period))
|
|
323
330
|
continue;
|
|
324
|
-
// The ONE receipt holding the bucket's first
|
|
331
|
+
// The ONE receipt holding the bucket's first slot (the period lane's rule):
|
|
325
332
|
// the rows it holds are proven, the ask starts at its last piece.
|
|
326
|
-
const cover = typeof firstTs === 'number'
|
|
327
|
-
? receipts.find(([from, to]) => from <= b * 1000 && to >= b * 1000)
|
|
328
|
-
: undefined;
|
|
333
|
+
const cover = typeof firstTs === 'number' ? receiptHoldingBucketStart(receipts, b * 1000) : undefined;
|
|
329
334
|
if (cover !== undefined) {
|
|
330
335
|
const start = Math.max(b, pieceFloorSec(Math.floor(cover[1] / 1000), pieceSec));
|
|
331
336
|
asks.push(...tailAsks(start, end, pieceSec, intervalSec, 'not-wire-validated').map((ask) => withCommitWindow({ ...ask, coverEndMs: cover[1] })));
|
|
@@ -694,11 +699,13 @@ export function planMainRefetchAsks(input) {
|
|
|
694
699
|
const bEnd = b + bucketSec;
|
|
695
700
|
const lastBarMs = (bEnd - intervalSec) * 1000;
|
|
696
701
|
const bucketHeldFromFirstRow = firstTs !== undefined && b * 1000 >= firstTs;
|
|
697
|
-
// The ONE receipt holding the bucket's first
|
|
702
|
+
// The ONE receipt holding the bucket's first slot: reaching the last bar
|
|
698
703
|
// it proves the bucket whole; ending inside it, it proves the bucket
|
|
699
704
|
// through its end only (a live-built tail, a hole split it). A receipt
|
|
700
|
-
// that starts after the first
|
|
701
|
-
|
|
705
|
+
// that starts after the first slot proves nothing about the bucket. A
|
|
706
|
+
// bucket opening before the entry's first row is held from its start only
|
|
707
|
+
// when that receipt answered the closure there (receiptHoldingBucketStart).
|
|
708
|
+
const cover = canSkip ? receiptHoldingBucketStart(receipts, b * 1000) : undefined;
|
|
702
709
|
if (cover !== undefined && cover[1] >= lastBarMs) {
|
|
703
710
|
skippedBuckets.push(b);
|
|
704
711
|
covers.push({ bucket: b, coverEndMs: cover[1], skipped: true });
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
/** Bumped by every cancelFetchDataOfChart (symbol/interval switch, refetch, teardown). */
|
|
8
8
|
export declare function bumpChartDataFetchGeneration(chartIndex: number): number;
|
|
9
|
+
/** Told the chart index whenever its dataset ends (every bump): work a reader owns for that dataset lets go of it. */
|
|
10
|
+
export declare function onChartDataFetchGenerationBump(listener: (chartIndex: number) => void): () => void;
|
|
9
11
|
/**
|
|
10
12
|
* Current data-fetch generation for a chart. Exported for callers that
|
|
11
13
|
* dispatch generation-scoped child fetches (an `IndicatorDataOptions.
|
|
@@ -5,12 +5,28 @@
|
|
|
5
5
|
* dragged that module's whole graph into each consumer. No imports here.
|
|
6
6
|
*/
|
|
7
7
|
const chartDataFetchGenerations = new Map();
|
|
8
|
+
const bumpListeners = new Set();
|
|
8
9
|
/** Bumped by every cancelFetchDataOfChart (symbol/interval switch, refetch, teardown). */
|
|
9
10
|
export function bumpChartDataFetchGeneration(chartIndex) {
|
|
10
11
|
const nextGeneration = (chartDataFetchGenerations.get(chartIndex) ?? 0) + 1;
|
|
11
12
|
chartDataFetchGenerations.set(chartIndex, nextGeneration);
|
|
13
|
+
for (const listener of bumpListeners) {
|
|
14
|
+
try {
|
|
15
|
+
listener(chartIndex);
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
// A listener's fault never stops the dataset's end.
|
|
19
|
+
}
|
|
20
|
+
}
|
|
12
21
|
return nextGeneration;
|
|
13
22
|
}
|
|
23
|
+
/** Told the chart index whenever its dataset ends (every bump): work a reader owns for that dataset lets go of it. */
|
|
24
|
+
export function onChartDataFetchGenerationBump(listener) {
|
|
25
|
+
bumpListeners.add(listener);
|
|
26
|
+
return () => {
|
|
27
|
+
bumpListeners.delete(listener);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
14
30
|
/**
|
|
15
31
|
* Current data-fetch generation for a chart. Exported for callers that
|
|
16
32
|
* dispatch generation-scoped child fetches (an `IndicatorDataOptions.
|
|
@@ -1,82 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The CME session lattice
|
|
3
|
-
*
|
|
4
|
-
* cme.go
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* - 1d: the trade date (the date flips at the 17:00 open), stamped at 00:00Z
|
|
15
|
-
* of that date, so an evening print belongs to TOMORROW's bar. A weekday
|
|
16
|
-
* holiday's session belongs to the next trade date on the CME calendar
|
|
17
|
-
* (cme-trade-calendar.util, !2154): Labor Day trades are 9/8's;
|
|
18
|
-
* - 3d: a year's trade dates in threes from its first (`DayGroupStart`), the
|
|
19
|
-
* way TradingView groups them, labeled by the first, so Thu-Fri-Mon is one
|
|
20
|
-
* bar and a holiday never leaves one short;
|
|
21
|
-
* - 1w: the Monday of the trade-date week, 00:00Z (Sunday's open starts it);
|
|
22
|
-
* - 1M 3M 6M 1Y: the months of the trade dates, stamped on the first month's
|
|
23
|
-
* 1st at 00:00Z (29dda19, intervals part 4); a weekend day joins the Friday
|
|
24
|
-
* before, so a month opens at the 17:00 Chicago open before its first trade
|
|
25
|
-
* date.
|
|
26
|
-
*
|
|
27
|
-
* The rollup covers explicit CME-group plans only (every exchange CME, CBOT,
|
|
28
|
-
* NYMEX or COMEX) for TRADE_AGG, TRADE_SIDE_AGNOSTIC_AGG, and the per-symbol
|
|
29
|
-
* VOLUME_PROFILE_AGG / BLOCK_BOOK_SNAPSHOT_AGG; open interest, settlement and
|
|
30
|
-
* coin-aggregated series stay on UTC buckets. A live writer that floored CME
|
|
31
|
-
* frames on the UTC grid instead split the forming bar (a 04:00 ET candle
|
|
32
|
-
* beside the 02:00 ET one) and titan dropped the frames keyed before it.
|
|
33
|
-
*
|
|
34
|
-
* Pure and worker-safe: Intl only, no dayjs.
|
|
2
|
+
* The CME session lattice by its CME names: the CME Group profile of
|
|
3
|
+
* session-lattice.util (the client mirror of tsdb-gateway's `cmeSession`,
|
|
4
|
+
* pkg/tsdb/selects/cme.go: 17:00 America/Chicago on the CME trade calendar,
|
|
5
|
+
* for CME, CBOT, NYMEX and COMEX). The lattice math, the forex profile and
|
|
6
|
+
* the venue-generic API (`sessionLatticeOf`, `sessionLatticeBucketMs`,
|
|
7
|
+
* `sessionLatticeBarEndMs`, `sessionLatticeBarOpenMs`) live there; a reader
|
|
8
|
+
* that keys a SERIES' own market on its lattice reads the generic API
|
|
9
|
+
* (live-bucket.util `venueSessionLatticeBucketMs`), never this module, so a
|
|
10
|
+
* venue the gateway adds to its profiles needs no new call site. These names
|
|
11
|
+
* stay for the readers that mean CME Group itself (the CME-underlying option
|
|
12
|
+
* anchors, the per-order tape floor, the wrun host ABI) and for the kit's
|
|
13
|
+
* host entry, which exports the same names.
|
|
35
14
|
*/
|
|
15
|
+
export { sessionGridStartMs } from './session-lattice.util.js';
|
|
16
|
+
/** The venues the gateway rolls up on the CME lattice (`isCMEGroupExchange`); GLOBEX is a metadata alias with no gate mapping. */
|
|
36
17
|
export declare function isCmeSessionLatticeExchange(exchange: unknown): boolean;
|
|
37
|
-
/** The intervals the gateway serves on the
|
|
18
|
+
/** The intervals the gateway serves on the CME lattice: the intraday widths, 1d, 3d, 1w and the calendar rungs. */
|
|
38
19
|
export declare function isCmeSessionLatticeIntervalMs(intervalMs: unknown): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* The first trade date (00:00Z) of the 3d session bar holding the trade date
|
|
41
|
-
* `dayMs` (gateway `sessionGridStart`, session_grid.go): trade dates are
|
|
42
|
-
* counted in weekdays from 2000-01-03, a Monday, three to a bar; a weekend
|
|
43
|
-
* date counts as the Friday before it. The regular US equities session only
|
|
44
|
-
* (the gateway's NYSE calendar is not wired yet); CME rides the trade
|
|
45
|
-
* calendar, every other market's 3d is the calendar floor.
|
|
46
|
-
*/
|
|
47
|
-
export declare function sessionGridStartMs(dayMs: number): number;
|
|
48
|
-
/**
|
|
49
|
-
* The bar key the gateway stamps for the CME session bar holding `tsMs`: the
|
|
50
|
-
* intraday bucket start, or the trade-date label (00:00Z of the trade date,
|
|
51
|
-
* not the 17:00 open instant) at 1d, the first trade date of its 3d group,
|
|
52
|
-
* the Monday of its week at 1w, and the 1st of its trade date's month,
|
|
53
|
-
* quarter, half or year at a calendar length. Null when the interval is not a
|
|
54
|
-
* session-lattice interval or the input is not a number.
|
|
55
|
-
*/
|
|
20
|
+
/** The bar key the gateway stamps for the CME session bar holding `tsMs` (`sessionLatticeBucketMs` on the CME profile). */
|
|
56
21
|
export declare function cmeSessionBucketMs(tsMs: number, intervalMs: number): number | null;
|
|
57
|
-
/**
|
|
58
|
-
* The instant the CME session bar stamped `barMs` (a key `cmeSessionBucketMs` stamps) stops
|
|
59
|
-
* taking source rows: the end of the last source row the lattice books to it, for a reader that
|
|
60
|
-
* must never take a bar before it closes (a pinned wrun leg). At 1d, 3d and 1w the key only
|
|
61
|
-
* advances with the session day, so the bar ends at the first source row booked elsewhere: a 3d
|
|
62
|
-
* bar runs to the 17:00 Chicago open of the next group's first session, a weekend or a weekday
|
|
63
|
-
* holiday inside it (Thursday, Friday and Monday close at Monday's 17:00), and a 1d bar to the
|
|
64
|
-
* 17:00 open that starts the next session day. An intraday bar ends at its stamp plus its width,
|
|
65
|
-
* except across a DST change: on the fall-back Sunday a bucket reaching the repeated hour holds
|
|
66
|
-
* its rows an hour longer (the 01:00 4h bar runs five real hours), and the 45m lattice books
|
|
67
|
-
* rows of the repeated hour back to an earlier stamp, so the end is the end of the LAST row
|
|
68
|
-
* booked to it within its width and an hour. A calendar bar runs to the next one's open (July 2026
|
|
69
|
-
* to Sunday 8/2 at 17:00 CDT). Null off the lattice intervals, or for a stamp the lattice books no
|
|
70
|
-
* row to.
|
|
71
|
-
*/
|
|
22
|
+
/** When the CME session bar stamped `barMs` stops taking source rows (`sessionLatticeBarEndMs` on the CME profile). */
|
|
72
23
|
export declare function cmeSessionBarEndMs(barMs: number, intervalMs: number): number | null;
|
|
73
|
-
/**
|
|
74
|
-
* The instant the CME session bar holding `tsMs` opens, for a fetch window
|
|
75
|
-
* that must cover the whole bar: the intraday bucket start, or the 17:00
|
|
76
|
-
* Chicago open before the trade date (1d), the 3d group's first trade date
|
|
77
|
-
* and the week's Monday (1w), where the bar key is a 00:00Z label that runs
|
|
78
|
-
* ahead of the open, and a calendar bar's first trade date (August 2026 opens
|
|
79
|
-
* Sunday 8/2). A 1d or 3d bar after a weekday holiday opens with the holiday's
|
|
80
|
-
* session (9/8 opens Sunday 9/6). Null off the lattice intervals.
|
|
81
|
-
*/
|
|
24
|
+
/** When the CME session bar holding `tsMs` opens (`sessionLatticeBarOpenMs` on the CME profile). */
|
|
82
25
|
export declare function cmeSessionBarOpenMs(tsMs: number, intervalMs: number): number | null;
|