@orangecharts/wrun-chart-host 0.4.0 → 0.6.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 +17 -5
- package/dist/constants/exchange-names.leaf.d.ts +8 -0
- package/dist/constants/exchange-names.leaf.js +101 -0
- package/dist/constants/feature-flags.constants.js +7 -2
- package/dist/constants/kscript-data-interval-restrictions.constants.d.ts +15 -0
- package/dist/constants/kscript-data-interval-restrictions.constants.js +40 -0
- package/dist/constants/opra-compliance.constants.d.ts +19 -0
- package/dist/constants/opra-compliance.constants.js +19 -0
- package/dist/constants/replay-ladder.leaf.d.ts +30 -0
- package/dist/constants/replay-ladder.leaf.js +99 -0
- package/dist/constants/scriptEditor/cme-official-scripts.constants.d.ts +168 -0
- package/dist/constants/scriptEditor/cme-official-scripts.constants.js +398 -0
- package/dist/constants/scriptEditor/converted-script-id.leaf.d.ts +8 -0
- package/dist/constants/scriptEditor/converted-script-id.leaf.js +10 -0
- package/dist/constants/scriptEditor/execution.constants.d.ts +4 -0
- package/dist/constants/scriptEditor/execution.constants.js +14 -0
- package/dist/constants/wrun-prefix-safe.constants.d.ts +23 -0
- package/dist/constants/wrun-prefix-safe.constants.js +26 -0
- package/dist/host-env.d.ts +301 -22
- package/dist/host-env.js +15 -0
- package/dist/host-ports.types.d.ts +853 -29
- package/dist/index.d.ts +140 -2
- package/dist/index.js +140 -2
- package/dist/instances/script-engine-worker-ohlcv-transfer.d.ts +31 -0
- package/dist/instances/script-engine-worker-ohlcv-transfer.js +164 -0
- package/dist/interfaces/market-event.interface.d.ts +231 -0
- package/dist/interfaces/market-event.interface.js +15 -0
- package/dist/interfaces/opra-realtime.interface.d.ts +70 -134
- package/dist/interfaces/opra-realtime.interface.js +34 -59
- package/dist/interfaces/replay.interface.d.ts +285 -0
- package/dist/interfaces/replay.interface.js +1 -0
- package/dist/interfaces/wrun-runtime.interface.d.ts +88 -13
- package/dist/interfaces/wrun-runtime.interface.js +17 -3
- package/dist/kscript-data/controls/live-ohlcv-merge.util.d.ts +1 -0
- package/dist/kscript-data/controls/live-ohlcv-merge.util.js +93 -0
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +5 -1
- package/dist/kscript-data/controls/live-trades-merge.util.js +2 -2
- package/dist/market-data/billing.interface.d.ts +219 -0
- package/dist/market-data/billing.interface.js +58 -0
- package/dist/market-data/venue-governed.util.d.ts +2 -0
- package/dist/market-data/venue-governed.util.js +10 -0
- package/dist/market-data/venue.d.ts +122 -0
- package/dist/market-data/venue.js +1 -0
- package/dist/market-data/venues/index.d.ts +97 -0
- package/dist/market-data/venues/index.js +33 -0
- package/dist/market-data/venues/opra.contract.copy.json +35 -0
- package/dist/market-data/venues/opra.d.ts +70 -0
- package/dist/market-data/venues/opra.js +74 -0
- package/dist/replay/replayIndicatorRows.d.ts +31 -0
- package/dist/replay/replayIndicatorRows.js +117 -0
- package/dist/replay/replayLadder.d.ts +85 -0
- package/dist/replay/replayLadder.js +388 -0
- package/dist/utility/auth/server-clock.util.d.ts +81 -0
- package/dist/utility/auth/server-clock.util.js +238 -0
- package/dist/utility/chart/builtin-identity.util.d.ts +18 -0
- package/dist/utility/chart/builtin-identity.util.js +51 -0
- package/dist/utility/chart/cache-alignment.util.d.ts +454 -0
- package/dist/utility/chart/cache-alignment.util.js +926 -0
- package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +15 -0
- package/dist/utility/chart/chart-data-fetch-generation.util.js +22 -0
- package/dist/utility/chart/chart-mount-epoch.util.d.ts +17 -0
- package/dist/utility/chart/chart-mount-epoch.util.js +61 -0
- package/dist/utility/chart/chart-time-domain.util.d.ts +12 -0
- package/dist/utility/chart/chart-time-domain.util.js +23 -0
- package/dist/utility/chart/color-customization.leaf.d.ts +10 -0
- package/dist/utility/chart/color-customization.leaf.js +16 -0
- package/dist/utility/chart/footprint-tick-grid.util.d.ts +106 -0
- package/dist/utility/chart/footprint-tick-grid.util.js +167 -0
- package/dist/utility/chart/gesture-timing.leaf.d.ts +29 -0
- package/dist/utility/chart/gesture-timing.leaf.js +29 -0
- package/dist/utility/chart/governed-contract-coin.util.d.ts +22 -0
- package/dist/utility/chart/governed-contract-coin.util.js +39 -0
- package/dist/utility/chart/host-bar-placement.util.d.ts +107 -0
- package/dist/utility/chart/host-bar-placement.util.js +447 -0
- package/dist/utility/chart/index-host-tier.util.d.ts +31 -0
- package/dist/utility/chart/index-host-tier.util.js +118 -0
- package/dist/utility/chart/index-mode-admission.util.d.ts +34 -0
- package/dist/utility/chart/index-mode-admission.util.js +67 -0
- package/dist/utility/chart/indicator-error-message.util.d.ts +35 -0
- package/dist/utility/chart/indicator-error-message.util.js +44 -0
- package/dist/utility/chart/kscript-apply-fingerprint.util.d.ts +65 -0
- package/dist/utility/chart/kscript-apply-fingerprint.util.js +357 -0
- package/dist/utility/chart/kscript-chart-flush.leaf.d.ts +22 -0
- package/dist/utility/chart/kscript-chart-flush.leaf.js +13 -0
- package/dist/utility/chart/kscript-data-interval-restriction.leaf.d.ts +6 -0
- package/dist/utility/chart/kscript-data-interval-restriction.leaf.js +27 -0
- package/dist/utility/chart/kscript-integration-decision.leaf.d.ts +89 -0
- package/dist/utility/chart/kscript-integration-decision.leaf.js +80 -0
- package/dist/utility/chart/kscript-live-coalesce.util.d.ts +76 -0
- package/dist/utility/chart/kscript-live-coalesce.util.js +156 -0
- package/dist/utility/chart/kscript-live-rest-pace.util.d.ts +34 -0
- package/dist/utility/chart/kscript-live-rest-pace.util.js +134 -0
- package/dist/utility/chart/kscript-live-source-identity.util.d.ts +98 -0
- package/dist/utility/chart/kscript-live-source-identity.util.js +121 -0
- package/dist/utility/chart/kscript-mounted-plot-set.leaf.d.ts +48 -0
- package/dist/utility/chart/kscript-mounted-plot-set.leaf.js +145 -0
- package/dist/utility/chart/kscript-perf-tracker.util.d.ts +243 -0
- package/dist/utility/chart/kscript-perf-tracker.util.js +522 -0
- package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +43 -0
- package/dist/utility/chart/kscript-run-interval-projection.util.js +471 -0
- package/dist/utility/chart/kscript-run-result-equality.util.d.ts +38 -0
- package/dist/utility/chart/kscript-run-result-equality.util.js +89 -0
- package/dist/utility/chart/kscript-settings-revision.leaf.d.ts +2 -0
- package/dist/utility/chart/kscript-settings-revision.leaf.js +12 -0
- package/dist/utility/chart/kscript-source-degrade.leaf.d.ts +63 -0
- package/dist/utility/chart/kscript-source-degrade.leaf.js +68 -0
- package/dist/utility/chart/kscript-source-retention.util.d.ts +134 -0
- package/dist/utility/chart/kscript-source-retention.util.js +218 -0
- package/dist/utility/chart/kscript-standin-identity.leaf.d.ts +57 -0
- package/dist/utility/chart/kscript-standin-identity.leaf.js +61 -0
- package/dist/utility/chart/kscript-titancharts-preparation.util.d.ts +15 -0
- package/dist/utility/chart/kscript-titancharts-preparation.util.js +376 -0
- package/dist/utility/chart/kscript-titancharts-render-keys.constants.d.ts +9 -0
- package/dist/utility/chart/kscript-titancharts-render-keys.constants.js +130 -0
- package/dist/utility/chart/kscript-venue-policy.util.d.ts +217 -0
- package/dist/utility/chart/kscript-venue-policy.util.js +324 -0
- package/dist/utility/chart/live-cadence.util.d.ts +38 -0
- package/dist/utility/chart/live-cadence.util.js +37 -0
- package/dist/utility/chart/live-feed-series-match.leaf.d.ts +13 -0
- package/dist/utility/chart/live-feed-series-match.leaf.js +21 -0
- package/dist/utility/chart/local-engine-self-heal-backoff.util.d.ts +46 -0
- package/dist/utility/chart/local-engine-self-heal-backoff.util.js +46 -0
- package/dist/utility/chart/local-engine-uninit.leaf.d.ts +21 -0
- package/dist/utility/chart/local-engine-uninit.leaf.js +22 -0
- package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +62 -0
- package/dist/utility/chart/local-kscript-source-revalidation.util.js +123 -0
- package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +214 -0
- package/dist/utility/chart/local-kscript-warmup-depth.util.js +376 -0
- package/dist/utility/chart/local-technical-script-live-apply-coalescer.util.d.ts +85 -0
- package/dist/utility/chart/local-technical-script-live-apply-coalescer.util.js +197 -0
- package/dist/utility/chart/local-technical-script-range.leaf.d.ts +72 -0
- package/dist/utility/chart/local-technical-script-range.leaf.js +126 -0
- package/dist/utility/chart/mixed-mode.util.d.ts +167 -0
- package/dist/utility/chart/mixed-mode.util.js +139 -0
- package/dist/utility/chart/ohlcv-row-readiness.util.d.ts +36 -0
- package/dist/utility/chart/ohlcv-row-readiness.util.js +90 -0
- package/dist/utility/chart/opra-user-scripts-gate.util.d.ts +19 -0
- package/dist/utility/chart/opra-user-scripts-gate.util.js +32 -0
- package/dist/utility/chart/overlay-execution-guard-key.leaf.d.ts +8 -0
- package/dist/utility/chart/overlay-execution-guard-key.leaf.js +10 -0
- package/dist/utility/chart/price-precision.util.d.ts +40 -0
- package/dist/utility/chart/price-precision.util.js +70 -0
- package/dist/utility/chart/profile-block-size.util.d.ts +64 -0
- package/dist/utility/chart/profile-block-size.util.js +141 -0
- package/dist/utility/chart/protected-kscript-degenerate-rows.leaf.d.ts +11 -0
- package/dist/utility/chart/protected-kscript-degenerate-rows.leaf.js +29 -0
- package/dist/utility/chart/protected-kscript-empty-output.util.d.ts +28 -0
- package/dist/utility/chart/protected-kscript-empty-output.util.js +84 -0
- package/dist/utility/chart/run-interval-unservable.leaf.d.ts +9 -0
- package/dist/utility/chart/run-interval-unservable.leaf.js +20 -0
- package/dist/utility/chart/run-interval-warmup.leaf.d.ts +19 -0
- package/dist/utility/chart/run-interval-warmup.leaf.js +35 -0
- package/dist/utility/chart/titan-constants.pin.d.ts +9 -5
- package/dist/utility/chart/titan-constants.pin.js +18 -5
- package/dist/utility/chart/warmup-backfill-retry.leaf.d.ts +9 -0
- package/dist/utility/chart/warmup-backfill-retry.leaf.js +9 -0
- package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +11 -2
- package/dist/utility/chart/wrun-bar-session-facts.util.js +10 -3
- package/dist/utility/chart/wrun-run-result.util.d.ts +5 -1
- package/dist/utility/chart/wrun-run-result.util.js +20 -14
- package/dist/utility/common/data-processing.util.d.ts +138 -0
- package/dist/utility/common/data-processing.util.js +346 -0
- package/dist/utility/common/visible-timeout.util.d.ts +13 -4
- package/dist/utility/common/visible-timeout.util.js +23 -8
- package/dist/utility/exchange-format.leaf.d.ts +1 -0
- package/dist/utility/exchange-format.leaf.js +47 -0
- package/dist/utility/market-events/earnings-scope.util.d.ts +60 -0
- package/dist/utility/market-events/earnings-scope.util.js +92 -0
- package/dist/utility/market-events/market-events.util.d.ts +147 -0
- package/dist/utility/market-events/market-events.util.js +392 -0
- package/dist/utility/market-events/zoned-clock.util.d.ts +1 -0
- package/dist/utility/market-events/zoned-clock.util.js +11 -0
- package/dist/utility/options/option-venue-disclosure.util.d.ts +43 -0
- package/dist/utility/options/option-venue-disclosure.util.js +56 -0
- package/dist/utility/scriptEditor/package-semver.util.d.ts +51 -0
- package/dist/utility/scriptEditor/package-semver.util.js +120 -0
- package/dist/utility/scriptEditor/temp-script-id.util.d.ts +18 -0
- package/dist/utility/scriptEditor/temp-script-id.util.js +25 -0
- package/dist/utility/symbol-selection/markets-request-from-symbols.leaf.d.ts +20 -0
- package/dist/utility/symbol-selection/markets-request-from-symbols.leaf.js +81 -0
- package/dist/utility/v2/governed-tier.leaf.d.ts +103 -0
- package/dist/utility/v2/governed-tier.leaf.js +113 -0
- package/dist/utility/watchlist/import/import-request.leaf.d.ts +10 -0
- package/dist/utility/watchlist/import/import-request.leaf.js +10 -0
- package/dist/utility/wrun/sources/lanes/series.js +2 -2
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +4 -4
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +5 -6
- package/dist/utility/wrun/wrun-alert-outputs.registry.d.ts +166 -0
- package/dist/utility/wrun/wrun-alert-outputs.registry.js +219 -0
- package/dist/utility/wrun/wrun-bar-count.util.d.ts +94 -0
- package/dist/utility/wrun/wrun-bar-count.util.js +274 -0
- package/dist/utility/wrun/wrun-chart-context-names.util.d.ts +84 -0
- package/dist/utility/wrun/wrun-chart-context-names.util.js +186 -0
- package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +253 -0
- package/dist/utility/wrun/wrun-chart-market-facts.util.js +731 -0
- package/dist/utility/wrun/wrun-cloud-opra-stamp.util.d.ts +28 -0
- package/dist/utility/wrun/wrun-cloud-opra-stamp.util.js +45 -0
- package/dist/utility/wrun/wrun-coin-lane-live.util.d.ts +18 -0
- package/dist/utility/wrun/wrun-coin-lane-live.util.js +47 -0
- package/dist/utility/wrun/wrun-deadline.util.js +2 -1
- package/dist/utility/wrun/wrun-debug-output.util.d.ts +39 -0
- package/dist/utility/wrun/wrun-debug-output.util.js +63 -0
- package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +113 -0
- package/dist/utility/wrun/wrun-declared-warmup.util.js +181 -0
- package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +43 -0
- package/dist/utility/wrun/wrun-draft-legend-note.util.js +158 -0
- package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +181 -0
- package/dist/utility/wrun/wrun-draft-overlay.util.js +357 -0
- package/dist/utility/wrun/wrun-draw-skipped.leaf.d.ts +16 -0
- package/dist/utility/wrun/wrun-draw-skipped.leaf.js +16 -0
- package/dist/utility/wrun/wrun-earnings-facts.util.d.ts +42 -0
- package/dist/utility/wrun/wrun-earnings-facts.util.js +131 -0
- package/dist/utility/wrun/wrun-first-run-depth.util.d.ts +32 -0
- package/dist/utility/wrun/wrun-first-run-depth.util.js +118 -0
- package/dist/utility/wrun/wrun-gate-plane-readers.util.d.ts +24 -0
- package/dist/utility/wrun/wrun-gate-plane-readers.util.js +31 -0
- package/dist/utility/wrun/wrun-held-lanes.util.d.ts +32 -0
- package/dist/utility/wrun/wrun-held-lanes.util.js +94 -0
- package/dist/utility/wrun/wrun-host-visible-clock.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-host-visible-clock.util.js +17 -0
- package/dist/utility/wrun/wrun-host.service.d.ts +330 -0
- package/dist/utility/wrun/wrun-host.service.js +855 -0
- package/dist/utility/wrun/wrun-hover.util.d.ts +3 -0
- package/dist/utility/wrun/wrun-hover.util.js +25 -4
- package/dist/utility/wrun/wrun-inert-legend.util.d.ts +33 -0
- package/dist/utility/wrun/wrun-inert-legend.util.js +125 -0
- package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +155 -0
- package/dist/utility/wrun/wrun-input-requirements.leaf.js +450 -0
- package/dist/utility/wrun/wrun-integration-route.util.d.ts +51 -0
- package/dist/utility/wrun/wrun-integration-route.util.js +59 -0
- package/dist/utility/wrun/wrun-latest-history.leaf.d.ts +8 -0
- package/dist/utility/wrun/wrun-latest-history.leaf.js +8 -0
- package/dist/utility/wrun/wrun-legend-hover.lazy.d.ts +12 -0
- package/dist/utility/wrun/wrun-legend-hover.lazy.js +96 -0
- package/dist/utility/wrun/wrun-lifecycle-runtime.util.d.ts +21 -0
- package/dist/utility/wrun/wrun-lifecycle-runtime.util.js +21 -0
- package/dist/utility/wrun/wrun-live-hidden-hold.util.d.ts +23 -0
- package/dist/utility/wrun/wrun-live-hidden-hold.util.js +13 -0
- package/dist/utility/wrun/wrun-live-intake.util.d.ts +374 -0
- package/dist/utility/wrun/wrun-live-intake.util.js +2027 -0
- package/dist/utility/wrun/wrun-live-patch.util.d.ts +116 -0
- package/dist/utility/wrun/wrun-live-patch.util.js +523 -0
- package/dist/utility/wrun/wrun-live-tick.util.d.ts +619 -0
- package/dist/utility/wrun/wrun-live-tick.util.js +4974 -0
- package/dist/utility/wrun/wrun-loading-owner.util.d.ts +58 -0
- package/dist/utility/wrun/wrun-loading-owner.util.js +89 -0
- package/dist/utility/wrun/wrun-official-scope.leaf.d.ts +29 -0
- package/dist/utility/wrun/wrun-official-scope.leaf.js +36 -0
- package/dist/utility/wrun/wrun-oi-lane.util.d.ts +27 -0
- package/dist/utility/wrun/wrun-oi-lane.util.js +42 -0
- package/dist/utility/wrun/wrun-options-stop.util.d.ts +52 -0
- package/dist/utility/wrun/wrun-options-stop.util.js +123 -0
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +719 -0
- package/dist/utility/wrun/wrun-overlay-drivers.util.js +1180 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.d.ts +50 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.js +131 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.d.ts +118 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +466 -0
- package/dist/utility/wrun/wrun-overlay-metadata.util.d.ts +45 -0
- package/dist/utility/wrun/wrun-overlay-metadata.util.js +112 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +114 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +971 -0
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +858 -0
- package/dist/utility/wrun/wrun-overlay-run.util.js +11013 -0
- package/dist/utility/wrun/wrun-pack.util.d.ts +2 -1
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +24 -9
- package/dist/utility/wrun/wrun-panel-mount.util.js +138 -43
- package/dist/utility/wrun/wrun-param-map.util.d.ts +19 -4
- package/dist/utility/wrun/wrun-param-map.util.js +40 -47
- package/dist/utility/wrun/wrun-param-values.util.d.ts +9 -3
- package/dist/utility/wrun/wrun-param-values.util.js +5 -5
- package/dist/utility/wrun/wrun-prefix-cohort.util.d.ts +93 -0
- package/dist/utility/wrun/wrun-prefix-cohort.util.js +484 -0
- package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +114 -0
- package/dist/utility/wrun/wrun-prefix-lanes.util.js +486 -0
- package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +317 -0
- package/dist/utility/wrun/wrun-prefix-proof.util.js +630 -0
- package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +73 -0
- package/dist/utility/wrun/wrun-refusal-surface.util.js +380 -0
- package/dist/utility/wrun/wrun-refusal-text.util.d.ts +15 -0
- package/dist/utility/wrun/wrun-refusal-text.util.js +40 -0
- package/dist/utility/wrun/wrun-registry-errors.util.d.ts +5 -3
- package/dist/utility/wrun/wrun-replay-lane.util.d.ts +139 -0
- package/dist/utility/wrun/wrun-replay-lane.util.js +520 -0
- package/dist/utility/wrun/wrun-replay-rows.util.d.ts +21 -0
- package/dist/utility/wrun/wrun-replay-rows.util.js +172 -0
- package/dist/utility/wrun/wrun-row-source-factory.d.ts +53 -0
- package/dist/utility/wrun/wrun-row-source-factory.js +435 -0
- package/dist/utility/wrun/wrun-run-cells.util.d.ts +36 -0
- package/dist/utility/wrun/wrun-run-cells.util.js +46 -0
- package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +133 -0
- package/dist/utility/wrun/wrun-run-interval-session.util.js +121 -0
- package/dist/utility/wrun/wrun-run-interval.util.d.ts +98 -0
- package/dist/utility/wrun/wrun-run-interval.util.js +207 -0
- package/dist/utility/wrun/wrun-run-retained.util.d.ts +122 -0
- package/dist/utility/wrun/wrun-run-retained.util.js +255 -0
- package/dist/utility/wrun/wrun-sandbox-row-source.d.ts +184 -0
- package/dist/utility/wrun/wrun-sandbox-row-source.js +444 -0
- package/dist/utility/wrun/wrun-script-inputs.util.js +4 -4
- package/dist/utility/wrun/wrun-series-stream.util.d.ts +86 -0
- package/dist/utility/wrun/wrun-series-stream.util.js +537 -0
- package/dist/utility/wrun/wrun-sha256.leaf.d.ts +13 -0
- package/dist/utility/wrun/wrun-sha256.leaf.js +84 -0
- package/dist/utility/wrun/wrun-sheet-remembered.util.d.ts +21 -0
- package/dist/utility/wrun/wrun-sheet-remembered.util.js +36 -0
- package/dist/utility/wrun/wrun-signal-sound-reasons.leaf.d.ts +7 -0
- package/dist/utility/wrun/wrun-signal-sound-reasons.leaf.js +12 -0
- package/dist/utility/wrun/wrun-socket-row-source.js +4 -2
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +175 -3
- package/dist/utility/wrun/wrun-source-rows.util.js +294 -8
- package/dist/utility/wrun/wrun-stats-strip.util.d.ts +46 -0
- package/dist/utility/wrun/wrun-stats-strip.util.js +87 -0
- package/dist/utility/wrun/wrun-table-chrome.util.d.ts +163 -0
- package/dist/utility/wrun/wrun-table-chrome.util.js +557 -0
- package/dist/utility/wrun/wrun-text-params.util.d.ts +11 -6
- package/dist/utility/wrun/wrun-text-params.util.js +19 -30
- package/dist/utility/wrun/wrun-transient-rerun.util.d.ts +64 -0
- package/dist/utility/wrun/wrun-transient-rerun.util.js +317 -0
- package/dist/utility/wrun/wrun-twin-lookback.util.d.ts +10 -0
- package/dist/utility/wrun/wrun-twin-lookback.util.js +43 -0
- package/dist/utility/wrun/wrun-warmup-head-store.util.d.ts +41 -0
- package/dist/utility/wrun/wrun-warmup-head-store.util.js +120 -0
- package/dist/utility/wrun-alert-params.leaf.d.ts +24 -0
- package/dist/utility/wrun-alert-params.leaf.js +24 -0
- package/dist/utils/replay/replay-buffer-math.d.ts +148 -0
- package/dist/utils/replay/replay-buffer-math.js +684 -0
- package/dist/workers/wrun/wrun-abi-host.d.ts +203 -0
- package/dist/workers/wrun/wrun-abi-host.js +1220 -0
- package/dist/workers/wrun/wrun-engine-handler.d.ts +20 -0
- package/dist/workers/wrun/wrun-engine-handler.js +380 -0
- package/package.json +3 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A seam between the wrun sheet memory (wrun-overlay-metadata.util's
|
|
3
|
+
* `rememberWrunOverlayMetadata`, where every loader registers a mounted
|
|
4
|
+
* overlay's sheet: the registry loader at its driver registration, which the
|
|
5
|
+
* add, draft and rehydrate paths pass, a hosted doc adopted over its
|
|
6
|
+
* placeholder, a cloud batch's compiled sheet, the dev loader) and whoever
|
|
7
|
+
* reads a sheet's declarations off the chart. The anchor history demand in
|
|
8
|
+
* instances/titan-charts reads the sheets' `time` params, which exist only
|
|
9
|
+
* from here: after a reload the boot-tail rehydrate registers the sheet after
|
|
10
|
+
* the boot landing already read the chart without it. The memory never
|
|
11
|
+
* imports the instance module for it, and a listener that throws never
|
|
12
|
+
* reaches the loader.
|
|
13
|
+
*/
|
|
14
|
+
const listeners = new Set();
|
|
15
|
+
/** Subscribe to remembered sheets (by overlay id); returns the unsubscribe. */
|
|
16
|
+
export function onWrunSheetRemembered(listener) {
|
|
17
|
+
listeners.add(listener);
|
|
18
|
+
return () => {
|
|
19
|
+
listeners.delete(listener);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/** Announce the sheet just remembered for `indicatorId`; a throwing listener is dropped for this call only. */
|
|
23
|
+
export function notifyWrunSheetRemembered(indicatorId) {
|
|
24
|
+
for (const listener of listeners) {
|
|
25
|
+
try {
|
|
26
|
+
listener(indicatorId);
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
// The sheet is remembered; a listener's failure is its own.
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/** Test seam: forget every listener. */
|
|
34
|
+
export function __resetWrunSheetRememberedListenersForTests() {
|
|
35
|
+
listeners.clear();
|
|
36
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The reconcile reasons that may sound (a leaf of utility/wrun/wrun-signal-sounds-live.util.ts; P2/inventory.md section
|
|
3
|
+
* 1.1): the one name the live tick reads from the Sounds tab's live half besides its members. The audio check stays web
|
|
4
|
+
* behind `ui.beginSignalSoundCheck` and `ui.overlayPlaysSignalSounds`; this leaf holds one immutable lookup table and
|
|
5
|
+
* imports nothing, so it moves into the chart-host package with the phase 2 closure. The old module re-exports it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function wrunLiveReconcileMaySound(reasons: ReadonlyArray<string>): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The reconcile reasons that may sound (a leaf of utility/wrun/wrun-signal-sounds-live.util.ts; P2/inventory.md section
|
|
3
|
+
* 1.1): the one name the live tick reads from the Sounds tab's live half besides its members. The audio check stays web
|
|
4
|
+
* behind `ui.beginSignalSoundCheck` and `ui.overlayPlaysSignalSounds`; this leaf holds one immutable lookup table and
|
|
5
|
+
* imports nothing, so it moves into the chart-host package with the phase 2 closure. The old module re-exports it.
|
|
6
|
+
*/
|
|
7
|
+
/** Reconcile reasons on the routine cadence: their drain also folds the pushed frames, so it may sound. The
|
|
8
|
+
* recoveries (session-start, main-jump, wake, tape-lost) only move the baseline. */
|
|
9
|
+
const ROUTINE_RECONCILE_REASONS = new Set(['poll-due', 'late-input', 'pinned-close']);
|
|
10
|
+
export function wrunLiveReconcileMaySound(reasons) {
|
|
11
|
+
return reasons.length > 0 && reasons.every((reason) => ROUTINE_RECONCILE_REASONS.has(reason));
|
|
12
|
+
}
|
|
@@ -1381,7 +1381,8 @@ export function routeWrunSocketFactsNeeded(chartIndex, indicatorId, needsFacts)
|
|
|
1381
1381
|
if (handed || claim?.() !== true)
|
|
1382
1382
|
return;
|
|
1383
1383
|
try {
|
|
1384
|
-
|
|
1384
|
+
// The lifecycle door is a package module since 0.5.0 (the host's `run.loadOverlayLifecycleDoor` retired).
|
|
1385
|
+
const { requestWrunOverlayRerun } = await import('./wrun-overlay-lifecycle.lazy.js');
|
|
1385
1386
|
await (requestWrunOverlayRerun(chartIndex, indicatorId, 'source-recovery') || undefined);
|
|
1386
1387
|
}
|
|
1387
1388
|
catch (error) {
|
|
@@ -1436,7 +1437,8 @@ async function wrunChartCoinOf(chartIndex) {
|
|
|
1436
1437
|
* open or the surface did not load. Never rejects. */
|
|
1437
1438
|
export async function wrunSocketAttemptIdOf(chartIndex, indicatorId) {
|
|
1438
1439
|
try {
|
|
1439
|
-
|
|
1440
|
+
// The refusal surface is a package module since 0.5.0 (the host's `run.loadRefusalSurface` retired).
|
|
1441
|
+
const { liveWrunRefusalAttempt } = await import('./wrun-refusal-surface.util.js');
|
|
1440
1442
|
const token = liveWrunRefusalAttempt(chartIndex, indicatorId);
|
|
1441
1443
|
return token !== null ? `${token.key}#${token.generation}` : undefined;
|
|
1442
1444
|
}
|
|
@@ -342,14 +342,16 @@
|
|
|
342
342
|
* tail build gives the same answer.
|
|
343
343
|
*/
|
|
344
344
|
import { type WrunPinnedInterval } from './wrun-pinned-interval.util.js';
|
|
345
|
+
import type { LiveBucketVenue } from '../chart/live-bucket.util.js';
|
|
345
346
|
import { type WrunBarVenue } from '../chart/wrun-bar-session-facts.util.js';
|
|
346
347
|
import type { WrunIndicatorMetadata, WrunInputSource, WrunInputView, WrunMetadataParam } from '../../interfaces/wrun-runtime.interface.js';
|
|
347
348
|
import type { WrunInputCarry as WrunHostInputCarry, WrunLegRowBounds } from '@orangecharts/indicator-kit/host';
|
|
348
349
|
import type { WrunPollLaneInstance } from './sources/wrun-poll-lane.types.js';
|
|
349
350
|
import type { WrunRowLaneInstance } from './sources/wrun-row-lane.types.js';
|
|
351
|
+
import { type WrunTradesLane } from './wrun-trades-lane.util.js';
|
|
350
352
|
import { type WrunSourceBlendField } from './wrun-market-facts.util.js';
|
|
351
353
|
import type { WrunInputRow } from './wrun-pack.util.js';
|
|
352
|
-
import { type WrunLegStreamLane } from './wrun-leg-stream-classes.js';
|
|
354
|
+
import { type WrunLaneStreamClassName, type WrunLegStreamLane } from './wrun-leg-stream-classes.js';
|
|
353
355
|
/** True for the derived ohlcv fields, the blends hl2 / hlc3 / ohlc4 / hlcc4
|
|
354
356
|
* (the `param.source` menu's words no candle stores, WRUN-GAPS-1005): any
|
|
355
357
|
* ohlcv input may read one, as its declared field, a source default or a
|
|
@@ -456,9 +458,14 @@ export interface WrunChartSourceRows {
|
|
|
456
458
|
* read by the trades inputs that ask `currency: "USD"` (wrunSourceLane
|
|
457
459
|
* `trades_usd`); optional when none does. */
|
|
458
460
|
buySellVolumeUsdRows?: ReadonlyArray<ArrayLike<number>>;
|
|
459
|
-
/** The trades leg lanes (kit 0.77.0) by leg lane id, [ts, buy, sell] on the leg's market
|
|
460
|
-
* never asked holds none (its inputs read their fill).
|
|
461
|
+
/** The trades leg lanes (kit 0.77.0) by leg lane id, [ts, buy, sell] on the leg's market at its own interval
|
|
462
|
+
* (`tradeLegIntervals`) and on its own bar grid; a leg never asked holds none (its inputs read their fill). The
|
|
463
|
+
* builder lands each row in the chart bar holding it (`wrunLegRowsOnHostBars`, summed per bar) before the join. */
|
|
461
464
|
tradeLegRows?: Readonly<Record<string, ReadonlyArray<ArrayLike<number>>>>;
|
|
465
|
+
/** The interval (ms) each trades leg lane's rows ride, by leg lane id: the tier that fits the chart's bars (the
|
|
466
|
+
* lane's acquisition, `wrunLaneAcquisitionIntervalMs`), so every row nests inside one chart bar; a lane without
|
|
467
|
+
* one rides the chart's interval. */
|
|
468
|
+
tradeLegIntervals?: Readonly<Record<string, number>>;
|
|
462
469
|
/** kScript open_interest lane rows [ts, open, high, low, close]; optional
|
|
463
470
|
* when no `oi` input is declared. */
|
|
464
471
|
openInterestRows?: ReadonlyArray<ArrayLike<number>>;
|
|
@@ -570,6 +577,15 @@ export interface WrunChartSourceRows {
|
|
|
570
577
|
fromTs: number;
|
|
571
578
|
rows: ReadonlyArray<ArrayLike<number>>;
|
|
572
579
|
};
|
|
580
|
+
/** The span of the rows a grid leg asked at a tier rides (`WrunPinnedLeg.tierMs`), by the leg's fetch key: the
|
|
581
|
+
* builder lands that leg's rows with it (`wrunLegRowsOnHostBars`), never the leg's own interval. */
|
|
582
|
+
pinnedLegTierMs?: Readonly<Record<string, number>>;
|
|
583
|
+
/** The chart's forming bar while the chart is live: the bar holding the server clock's now on the chart's bar
|
|
584
|
+
* grid (`liveBucketStartMs` over `venue.barGrid`). A grid leg's row still forming past the chart's newest bar
|
|
585
|
+
* lands in the bar holding its open when that bar is this one, so the forming bar reads the leg's latest
|
|
586
|
+
* value (`wrunLegRowsOnHostBars`). Absent or null (a historical chart, a build no live session runs):
|
|
587
|
+
* such a row lands nowhere. */
|
|
588
|
+
formingBarTs?: number | null;
|
|
573
589
|
/** The chart's series (exchange, symbol and bar interval) the
|
|
574
590
|
* `time.trade_date` and `time.session` inputs read their facts for
|
|
575
591
|
* (contract C3, never the chart's RTH/extended mode); required when
|
|
@@ -677,7 +693,22 @@ export interface WrunPinnedLeg {
|
|
|
677
693
|
* candle leg and every distinct lane identity on the same market and interval is a leg of its own.
|
|
678
694
|
* Absent: a candle leg (the chart's candle lane). */
|
|
679
695
|
stream?: WrunLegStreamLane;
|
|
696
|
+
/** Set by the full run on a leg it asked on dataFetch's native-rows path (the leg's rows at their own stamps, never
|
|
697
|
+
* placed on the chart's bars by the fetch): a leg on an index-mode market or chart (`wrunLegRidesNativeRows`), and
|
|
698
|
+
* every leg whose rows straddle the chart's bars, which the row builder places itself (`wrunLegRowsOnHostBars`).
|
|
699
|
+
* The live session's reconcile asks the leg the same way, so its history, its reconciles and its live folds all
|
|
700
|
+
* carry the leg's own stamps. */
|
|
701
|
+
nativeRows?: true;
|
|
702
|
+
/** Set by the full run on a GRID leg asked at a tier finer than the chart's interval (`indexHostFetchTierMs` over
|
|
703
|
+
* the chart's grid and the leg's): its own bars at the chart's interval do not nest in the chart's bars (a 24/7
|
|
704
|
+
* market's 12h bars end at 12:00 and 24:00 UTC, outside every 13:30 to 20:00 UTC session bar of a stock's 12h
|
|
705
|
+
* chart), while its tier rows do. The row builder folds them into the bars holding them by the leg's merge
|
|
706
|
+
* (`pinnedLegTierMs`, `WRUN_LEG_ROW_HOST_MERGE`), so each bar reads the leg's own candle over the bar's span with
|
|
707
|
+
* no look-ahead; the live session folds the leg's frames and asks its reconciles at the same tier. */
|
|
708
|
+
tierMs?: number;
|
|
680
709
|
}
|
|
710
|
+
/** The tier each grid leg asked at a tier rides (`WrunPinnedLeg.tierMs`), by fetch key: `pinnedLegTierMs`. */
|
|
711
|
+
export declare function wrunPinnedLegTierMs(legs: ReadonlyArray<Pick<WrunPinnedLeg, 'fetchKey' | 'tierMs'>> | undefined): Record<string, number>;
|
|
681
712
|
/** The fetch-key suffix a leg rides under a caller's prefix: the interval
|
|
682
713
|
* alone for an own-market period leg (the round-2 shape), the market
|
|
683
714
|
* appended for a foreign leg, `grid-` / `intrabar-` prefixed by kind,
|
|
@@ -794,6 +825,147 @@ export type WrunPinnedWire = {
|
|
|
794
825
|
/** View `offset` only: the closed buckets back from the held one (1..500). */
|
|
795
826
|
offset?: number;
|
|
796
827
|
};
|
|
828
|
+
/** A leg's row shape, by the lane its rows ride: the chart's candle lane (`ohlcv`: every candle leg, a period, grid
|
|
829
|
+
* or intrabar leg or a `candles` stream), an odds market's candles (`odds`), a lane stream's own lane
|
|
830
|
+
* (`oi_candles`, `volume_profile_candles`) or a trades leg's buy/sell lane (`trades`, `trades_usd`). */
|
|
831
|
+
export type WrunLegRowClass = 'ohlcv' | 'odds' | WrunLaneStreamClassName | WrunTradesLane;
|
|
832
|
+
/**
|
|
833
|
+
* How one chart bar merges the rows of a leg on another bar grid that land in it (`placeRowsInHostBars`), by the
|
|
834
|
+
* leg's row shape: OHLC rows open on the first, span the extremes, close on the last and sum the volume
|
|
835
|
+
* (`candle`); additive rows sum (`flow`); celled rows keep the bar's last row whole (`level`: the flow merge sums
|
|
836
|
+
* numeric columns and has no cell merge). One entry per row class the source layer knows: a class without one
|
|
837
|
+
* fails the typecheck, and wrun-source-rows.grid-legs.spec.ts holds the table to the stream classes and the trades
|
|
838
|
+
* lanes.
|
|
839
|
+
*/
|
|
840
|
+
export declare const WRUN_LEG_ROW_HOST_MERGE: Readonly<{
|
|
841
|
+
readonly ohlcv: "candle";
|
|
842
|
+
readonly odds: "candle";
|
|
843
|
+
readonly oi_candles: "candle";
|
|
844
|
+
readonly volume_profile_candles: "level";
|
|
845
|
+
readonly trades: "flow";
|
|
846
|
+
readonly trades_usd: "flow";
|
|
847
|
+
}>;
|
|
848
|
+
/** A pinned leg's row class (`WRUN_LEG_ROW_HOST_MERGE`). */
|
|
849
|
+
export declare function wrunLegRowClassOf(leg: Pick<WrunPinnedLeg, 'odds' | 'stream'>): WrunLegRowClass;
|
|
850
|
+
/**
|
|
851
|
+
* The rows each pinned wire's reader is handed (`wrunHostRunOf`): `host-bars` for a reader the shared host joins on
|
|
852
|
+
* the chart's own rows by timestamp (its exact cursor: a grid leg read row for row), so the leg's rows are first
|
|
853
|
+
* placed in the chart bars that hold them (`wrunLegRowsOnHostBars`), and a leg on another bar grid (a 24/7
|
|
854
|
+
* market's :00 hours under a stock's 09:30-anchored bars) lands; `native` for a reader that meets the chart's rows
|
|
855
|
+
* by a candle's close or its bucket (the confirmed cursor, the forming fold, the candles stream, the intrabar
|
|
856
|
+
* slicer) and reads the leg's own rows; `none` for a wire that reads no leg. A wire kind without an entry fails the
|
|
857
|
+
* typecheck: a new reader says which rows it joins before it reads one.
|
|
858
|
+
*/
|
|
859
|
+
export declare const WRUN_PINNED_WIRE_ROWS: Readonly<{
|
|
860
|
+
readonly own_period: "none";
|
|
861
|
+
readonly period: "native";
|
|
862
|
+
readonly forming: "native";
|
|
863
|
+
readonly grid: "host-bars";
|
|
864
|
+
readonly intrabar: "native";
|
|
865
|
+
readonly candles: "native";
|
|
866
|
+
readonly typed: "none";
|
|
867
|
+
}>;
|
|
868
|
+
/** A leg's rows as `wrunLegRowsOnHostBars` lands them: their own span (the leg's interval, a trades leg's tier) and
|
|
869
|
+
* their row class (`WRUN_LEG_ROW_HOST_MERGE`: how one chart bar merges them). */
|
|
870
|
+
export interface WrunLegRowsSpan {
|
|
871
|
+
legMs: number;
|
|
872
|
+
rowClass: WrunLegRowClass;
|
|
873
|
+
}
|
|
874
|
+
/** The interval (ms) a lane's acquisition was asked at (its `interval` word, the payload field the K control asks
|
|
875
|
+
* by), undefined when it names none: a trades leg's tier (`WrunChartSourceRows.tradeLegIntervals`). */
|
|
876
|
+
export declare function wrunLaneAcquisitionIntervalMs(acquisition: Readonly<Record<string, unknown>> | undefined): number | undefined;
|
|
877
|
+
/** Each trades leg lane's row interval (ms) by its acquisition (`wrunLaneAcquisitionIntervalMs`: the tier its ask
|
|
878
|
+
* named, else the interval the fetch stamped on it): `WrunChartSourceRows.tradeLegIntervals`. */
|
|
879
|
+
export declare function wrunTradeLegIntervals(acquisition: Readonly<Record<string, Readonly<Record<string, unknown>> | undefined>>): Record<string, number>;
|
|
880
|
+
/** The backend's cache bucket, in rows of the asked interval: one wire ask of a tiered lane holds at most this many
|
|
881
|
+
* (`wrunWireRowPieces`), the overlays' tiered asks' rule. */
|
|
882
|
+
export declare const WRUN_WIRE_PIECE_ROWS = 250;
|
|
883
|
+
/**
|
|
884
|
+
* `[fromMs, toMs)` as the wire asks of a lane asked at `rowMs` (a trades leg's tier finer than the chart's bars),
|
|
885
|
+
* sized in the rows the wire returns: one piece when the span holds at most `WRUN_WIRE_PIECE_ROWS` rows, else
|
|
886
|
+
* ascending pieces of at most that many, each inner edge on the tier's bucket grid (a multiple of
|
|
887
|
+
* `WRUN_WIRE_PIECE_ROWS * rowMs` from the epoch, so a piece is one backend cache bucket), the first and last
|
|
888
|
+
* partial and the span never widened. A 12h stock chart's window is about a year: at 30m that is 17,520 rows of a
|
|
889
|
+
* 24/7 venue, and asked whole the gateway fails it.
|
|
890
|
+
*/
|
|
891
|
+
export declare function wrunWireRowPieces(fromMs: number, toMs: number, rowMs: number): Array<{
|
|
892
|
+
fromMs: number;
|
|
893
|
+
toMs: number;
|
|
894
|
+
}>;
|
|
895
|
+
/** One piece's answer (`wrunAskWirePieces`): its rows, and whether the chart's fetch answered the piece whole
|
|
896
|
+
* (`wrunSourceVerdictWhole`). */
|
|
897
|
+
export interface WrunWirePieceAnswer<Row> {
|
|
898
|
+
rows: ReadonlyArray<Row>;
|
|
899
|
+
whole: boolean;
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* Whether the chart's fetch answered an ask whole, by the verdict it reports (`onSourceVerdict`): a genuine
|
|
903
|
+
* end-of-stream over the whole window (`complete`), or a row-cache hit (that cache keeps only such answers). A
|
|
904
|
+
* synthetic completion (a kicked session, a connection that could not open), a trimmed or refused window, and an ask
|
|
905
|
+
* that reported no verdict at all are not whole: their rows (none, or the ones collected so far) look like data.
|
|
906
|
+
*/
|
|
907
|
+
export declare function wrunSourceVerdictWhole(verdict: {
|
|
908
|
+
complete: boolean;
|
|
909
|
+
source: string;
|
|
910
|
+
} | undefined): boolean;
|
|
911
|
+
/** A window asked in pieces whose piece the chart's fetch did not answer whole (`wrunAskWirePieces`): nothing of the
|
|
912
|
+
* window commits, since that piece's missing rows would read as quiet bars, and to a reconcile as absence. */
|
|
913
|
+
export declare class WrunWirePiecesIncomplete extends Error {
|
|
914
|
+
readonly fromMs: number;
|
|
915
|
+
readonly toMs: number;
|
|
916
|
+
constructor(fromMs: number, toMs: number);
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* A window's rows asked in its pieces (`wrunWireRowPieces`), newest first (the bars at the chart's right edge, as the
|
|
920
|
+
* overlays' tiered families run) and at most three on the wire at once, as one ascending answer: a row two pieces
|
|
921
|
+
* both answer (the fetch pads a piece's end by one row) is kept once, the later piece's. The pieces are one family
|
|
922
|
+
* with one commit: a piece that fails, or that the fetch did not answer whole (`WrunWirePiecesIncomplete`), fails the
|
|
923
|
+
* whole ask and no further piece is asked, since a window missing a piece reads that piece's bars as quiet (and a
|
|
924
|
+
* reconcile reads them as absence, dropping rows it holds). One piece is the one ask's answer as it came: no piece
|
|
925
|
+
* of it can be missing in the middle. `abandoned` (the lane's budget ran out, its run no longer waits on it) asks no
|
|
926
|
+
* further piece; the pieces already out finish into the fetch's cache.
|
|
927
|
+
*/
|
|
928
|
+
export declare function wrunAskWirePieces<Row extends ArrayLike<unknown>>(pieces: ReadonlyArray<{
|
|
929
|
+
fromMs: number;
|
|
930
|
+
toMs: number;
|
|
931
|
+
}>, ask: (fromMs: number, toMs: number) => Promise<WrunWirePieceAnswer<Row>>, abandoned?: AbortSignal): Promise<Row[]>;
|
|
932
|
+
/** The chart's bars a grid leg's rows land on (`wrunLegRowsOnHostBars`). */
|
|
933
|
+
export interface WrunHostBarGrid {
|
|
934
|
+
/** The opens of the rows the build evaluates, ascending: the chart's own, or the dense grid a primary rides. */
|
|
935
|
+
opens: readonly number[];
|
|
936
|
+
/** The chart's bar span (the run's interval). */
|
|
937
|
+
intervalMs: number;
|
|
938
|
+
/** The chart's bar grid (`WrunBarVenue.barGrid`, `liveBucketVenueOf(metadata)`); absent: the UTC floor. */
|
|
939
|
+
barGrid?: LiveBucketVenue | null;
|
|
940
|
+
/** The chart's forming bar while it is live (`WrunChartSourceRows.formingBarTs`), else null. */
|
|
941
|
+
formingBarTs?: number | null;
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* The chart bar a grid leg's row stamped `rowTs` lands in, for one row and with no forming bar
|
|
945
|
+
* (`wrunLegRowsOnHostBars`'s rule for a closed row): its own stamp when that opens a chart bar, else the bar
|
|
946
|
+
* holding its last instant (by its open on a calendar span); null when no bar holds it (off the chart's
|
|
947
|
+
* session). `barOf` is the chart's bucket function at its own interval (`hostBucketResolverFor` over its bar
|
|
948
|
+
* grid). The live session reads it to tell which committed bar a revised leg row reaches.
|
|
949
|
+
*/
|
|
950
|
+
export declare function wrunLegRowHostBar(rowTs: number, legMs: number, barOf: (tsMs: number) => number | null): number | null;
|
|
951
|
+
/**
|
|
952
|
+
* A grid leg's rows as the shared host's exact cursor reads them (`WRUN_PINNED_WIRE_ROWS`): each row in the chart
|
|
953
|
+
* bar holding its LAST instant (`placeRowsInHostBars` over the leg's own span, merged by the leg's row shape,
|
|
954
|
+
* `WRUN_LEG_ROW_HOST_MERGE`), so a leg on another bar grid lands on the chart's bars with no look-ahead. A closed
|
|
955
|
+
* chart bar holds only the rows that closed inside it: a 24/7 hour [14:00, 15:00) New York lands in a stock's 14:30
|
|
956
|
+
* bar and the 15:30 stub holds the [15:00, 16:00) hour; a stock's [13:30Z, 14:30Z) hour lands in a 24/7 chart's
|
|
957
|
+
* 14:00Z bar. A row still forming past the chart's newest bar lands in the bar holding its open when that bar is
|
|
958
|
+
* the chart's forming one (`formingBarTs`, a live chart's), else nowhere. A leg on the chart's own grid comes back
|
|
959
|
+
* as the same rows (the same array when every row is on a chart bar's open). The rows that closed before the first
|
|
960
|
+
* chart bar stay in front as they are: no bar holds them, and the last of them is the seed an odds leg carries a
|
|
961
|
+
* wire with before its first observation. A calendar span has no fixed length to find a row's last instant with:
|
|
962
|
+
* such a row lands in the bar holding its open.
|
|
963
|
+
*
|
|
964
|
+
* `afterTs` (a tail build's or a carry advance's carry `throughTs`): the pass reads the rows after it alone, so
|
|
965
|
+
* only the bars after it are landed, from the rows that can reach them (a live tick never lands the whole
|
|
966
|
+
* window again).
|
|
967
|
+
*/
|
|
968
|
+
export declare function wrunLegRowsOnHostBars(rows: ReadonlyArray<ArrayLike<number>>, host: WrunHostBarGrid, leg: WrunLegRowsSpan, afterTs?: number): ReadonlyArray<ArrayLike<number>>;
|
|
797
969
|
/**
|
|
798
970
|
* Classify every declared pin against the chart BEFORE any fetch: the legs
|
|
799
971
|
* a run must fetch (one per market + interval: period legs at the pinned
|