@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,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The legend's note after the args, painted in the muted args grey after the name through the run's
|
|
3
|
+
* define (wrun-run-result.util `legendNote`, every full run and every live tick, so a tick never flips
|
|
4
|
+
* it), resolved at call time against the active locale, never captured at module load:
|
|
5
|
+
* - an editor draft's word (Kyle's decision, 2026-10-08): "draft · only in this browser"; a package
|
|
6
|
+
* overlay, a hosted (Cloud) run and every non-draft answer none;
|
|
7
|
+
* - the delay of an options chain the run read on the OPRA plane's delayed reader, the line a stock
|
|
8
|
+
* chart's native options overlays carry (`optionsOverlayDisclosure`): OPRA's delay notice verbatim
|
|
9
|
+
* (`OPRA_DELAY_NOTICE`, never translated). The tier rides the chain lane's acquisition (`chainServedTier`,
|
|
10
|
+
* wrun-options-chain.util: the tier the viewer was served when the run read it), so a real-time
|
|
11
|
+
* read names none; a CME chain names none either, as the native CME overlays name none (its
|
|
12
|
+
* chart's own delay badge describes the tier every CME read on it rides). Any other OPRA source
|
|
13
|
+
* lane (a poll lane's `opra`, a row lane's `governed: 'opra'`) names the tier its ask was routed to
|
|
14
|
+
* by the same rule and the same words (its acquisition's `servedTier`, wrun-opra-lane.util), once
|
|
15
|
+
* for every OPRA read the run made.
|
|
16
|
+
* The note lands in the define's custom title, which the overlay's settings keep: every reader of the
|
|
17
|
+
* inputs alone (the indicator menu, the settings headers) drops it through `wrunWithoutLegendNote`, the
|
|
18
|
+
* one stripper of whatever `wrunOverlayLegendNote` appends, in today's words and in every wording a saved
|
|
19
|
+
* title can still hold (`WRUN_LEGACY_LEGEND_NOTES`).
|
|
20
|
+
*/
|
|
21
|
+
import { wrunChartHostEnv } from '../../host-env.js';
|
|
22
|
+
import { optionVenueForExchange } from '../options/option-venue.util.js';
|
|
23
|
+
import { optionVenueDelayMinutes, optionVenueDisclosure } from '../options/option-venue-disclosure.util.js';
|
|
24
|
+
import { isWrunDraftOverlaySettings } from './wrun-draft-overlay.util.js';
|
|
25
|
+
import { isWrunOpraLaneAcquisition, wrunOpraLaneServedTier } from './wrun-opra-lane.util.js';
|
|
26
|
+
export function wrunDraftLegendNote(settings) {
|
|
27
|
+
if (!settings || typeof settings !== 'object' || !isWrunDraftOverlaySettings(settings))
|
|
28
|
+
return undefined;
|
|
29
|
+
return wrunChartHostEnv().t('wrun.draft.legend');
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The served tier of the chain a run's options_chain lane read (its acquisition record), named only
|
|
33
|
+
* when that read was delayed: the OPRA venue's delayed line (`optionVenueDisclosure`, OPRA's delay
|
|
34
|
+
* notice). Undefined for a real-time read, for any other chain, or a lane the run did not read.
|
|
35
|
+
*/
|
|
36
|
+
export function wrunChainServedTierNote(acquisition) {
|
|
37
|
+
if (acquisition?.chainVenue !== 'opra' || acquisition.chainServedTier !== 'delayed')
|
|
38
|
+
return undefined;
|
|
39
|
+
const venue = optionVenueForExchange(typeof acquisition.chainExchange === 'string' ? acquisition.chainExchange : '');
|
|
40
|
+
if (!venue)
|
|
41
|
+
return undefined;
|
|
42
|
+
let access;
|
|
43
|
+
try {
|
|
44
|
+
access = wrunChartHostEnv().market.cmeServedAccess(venue.exchanges[0]);
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
access = undefined;
|
|
48
|
+
}
|
|
49
|
+
return optionVenueDisclosure(venue, 'delayed', optionVenueDelayMinutes(venue, access), wrunChartHostEnv().t);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* The routed tier of the OPRA source lanes a run read (their acquisitions: `wrunPlane: 'opra'` and the
|
|
53
|
+
* `servedTier` the ask named, wrun-opra-lane.util), named only when one rode the delayed reader, in the
|
|
54
|
+
* chain's own words (so `wrunWithoutLegendNote`, which reads the OPRA provenance the run stamped, strips it
|
|
55
|
+
* alike). Undefined when every OPRA read rode real-time, or none was made.
|
|
56
|
+
*/
|
|
57
|
+
export function wrunOpraLanesServedTierNote(acquisitions) {
|
|
58
|
+
for (const acquisition of acquisitions ?? []) {
|
|
59
|
+
if (isWrunOpraLaneAcquisition(acquisition) && wrunOpraLaneServedTier(acquisition) === 'delayed') {
|
|
60
|
+
return wrunChainServedTierNote({ chainVenue: 'opra', chainExchange: 'OPRA', chainServedTier: 'delayed' });
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
/** The whole note a run's legend carries: the draft's word, then the served tier of its OPRA reads (the chain's,
|
|
66
|
+
* else any OPRA lane's among `acquisitions`, the run's record by lane), joined by " · "; undefined when neither
|
|
67
|
+
* applies. */
|
|
68
|
+
export function wrunOverlayLegendNote(settings, chainAcquisition, acquisitions) {
|
|
69
|
+
const opra = wrunChainServedTierNote(chainAcquisition) ??
|
|
70
|
+
(acquisitions === undefined ? undefined : wrunOpraLanesServedTierNote(Object.values(acquisitions)));
|
|
71
|
+
const notes = [wrunDraftLegendNote(settings), opra].filter((note) => typeof note === 'string' && note.trim() !== '');
|
|
72
|
+
return notes.length > 0 ? notes.join(' · ') : undefined;
|
|
73
|
+
}
|
|
74
|
+
/** The chain fact an overlay's settings keep for its note: the OPRA provenance its run stamps on them
|
|
75
|
+
* (`metaExchange`, options-overlay-provenance.util `setOptionsOverlayOpraProvenance`) names a chain read
|
|
76
|
+
* on the OPRA plane; the tier is the one a note names (delayed), since a real-time read appended none. */
|
|
77
|
+
function wrunChainOfProvenance(settings) {
|
|
78
|
+
const exchange = settings !== null && typeof settings === 'object'
|
|
79
|
+
? settings.metaExchange
|
|
80
|
+
: undefined;
|
|
81
|
+
if (typeof exchange !== 'string' || optionVenueForExchange(exchange)?.id !== 'opra')
|
|
82
|
+
return undefined;
|
|
83
|
+
return { chainVenue: 'opra', chainExchange: exchange, chainServedTier: 'delayed' };
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Every wording a legend note can hold in a SAVED title that today's words do not produce: the title is
|
|
87
|
+
* written by the run and kept in the overlay's settings, so a title written under an older build or another
|
|
88
|
+
* locale keeps the words of that build and locale, while `wrunDraftLegendNote` and `wrunChainServedTierNote`
|
|
89
|
+
* answer in this build's words and the active locale only. Without this list such a title keeps its note in
|
|
90
|
+
* every inputs reader. Append, never remove: a wording leaves only when no saved title can hold it.
|
|
91
|
+
* - `opraTier`: the OPRA tier note as it shipped in each locale before OPRA's delay notice replaced it
|
|
92
|
+
* (2026-10-13 a744c0f601 to the notice): `cmeRealtimeData.exchanges.opra` then
|
|
93
|
+
* `symbolSelection.optionChain.servedDelayed`, `{minutes}` the figure the run named. If the notice itself
|
|
94
|
+
* is ever reworded (a legal event), the old notice joins this list.
|
|
95
|
+
* - `draft`: the draft's word (`wrun.draft.legend`) in every locale the app ships, today's and any older one.
|
|
96
|
+
* tests/utility/wrun/wrun-draft-legend-note.legacy-notes.spec.ts fails when a bundle's word is missing here.
|
|
97
|
+
*/
|
|
98
|
+
export const WRUN_LEGACY_LEGEND_NOTES = {
|
|
99
|
+
opraTier: [
|
|
100
|
+
'OPRA (US equity and index options) · Delayed {minutes} min',
|
|
101
|
+
'OPRA(美国股票与指数期权) · 延迟 {minutes} 分钟',
|
|
102
|
+
'OPRA(米国株式・指数オプション) · {minutes} 分遅延',
|
|
103
|
+
'OPRA (미국 주식 및 지수 옵션) · {minutes}분 지연',
|
|
104
|
+
'OPRA (опционы на акции и индексы США) · задержка {minutes} мин',
|
|
105
|
+
'OPRA (US स्टॉक और इंडेक्स ऑप्शंस) · {minutes} मिनट विलंबित',
|
|
106
|
+
'OPRA (opciones sobre acciones e índices de EE. UU.) · {minutes} min de retraso',
|
|
107
|
+
'OPRA (ABD hisse ve endeks opsiyonları) · {minutes} dakika gecikmeli',
|
|
108
|
+
],
|
|
109
|
+
draft: [
|
|
110
|
+
'draft · only in this browser',
|
|
111
|
+
'草稿 · 仅在此浏览器中',
|
|
112
|
+
'下書き · このブラウザのみ',
|
|
113
|
+
'초안 · 이 브라우저에서만',
|
|
114
|
+
'черновик · только в этом браузере',
|
|
115
|
+
'ड्राफ़्ट · केवल इस ब्राउज़र में',
|
|
116
|
+
'borrador · solo en este navegador',
|
|
117
|
+
'taslak · yalnızca bu tarayıcıda',
|
|
118
|
+
],
|
|
119
|
+
};
|
|
120
|
+
const escapeRegExp = (text) => text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
121
|
+
/** A pinned wording as the tail it leaves on a title: ` · <wording>` at the end, `{minutes}` any whole figure. */
|
|
122
|
+
const legacyTail = (wording) => new RegExp(`${escapeRegExp(` · ${wording}`).replace(escapeRegExp('{minutes}'), '\\d+')}$`);
|
|
123
|
+
const LEGACY_TAILS = {
|
|
124
|
+
opraTier: WRUN_LEGACY_LEGEND_NOTES.opraTier.map(legacyTail),
|
|
125
|
+
draft: WRUN_LEGACY_LEGEND_NOTES.draft.map(legacyTail),
|
|
126
|
+
};
|
|
127
|
+
/** `suffix` without the first of `notes` (today's words, the longest first) or `legacy` it ends with. */
|
|
128
|
+
function withoutTrailingNote(suffix, notes, legacy) {
|
|
129
|
+
const current = notes
|
|
130
|
+
.filter((note) => typeof note === 'string' && note.trim() !== '')
|
|
131
|
+
.sort((a, b) => b.length - a.length);
|
|
132
|
+
for (const note of current) {
|
|
133
|
+
const tail = ` · ${note}`;
|
|
134
|
+
if (suffix.endsWith(tail))
|
|
135
|
+
return suffix.slice(0, -tail.length);
|
|
136
|
+
}
|
|
137
|
+
for (const tail of legacy) {
|
|
138
|
+
const match = tail.exec(suffix);
|
|
139
|
+
if (match)
|
|
140
|
+
return suffix.slice(0, match.index);
|
|
141
|
+
}
|
|
142
|
+
return suffix;
|
|
143
|
+
}
|
|
144
|
+
/** A legend title suffix (the define's custom title, as the overlay's settings keep it) without the note
|
|
145
|
+
* `wrunOverlayLegendNote` appended to it, recomputed from the settings alone: the draft's word and the
|
|
146
|
+
* delayed tier of the OPRA chain the settings' provenance names. The run that wrote the title may have read
|
|
147
|
+
* that chain real-time (no tier note) or delayed, which the settings cannot tell, so the tier note is tried
|
|
148
|
+
* off the end first (only on settings with OPRA provenance), then the draft's word (only on a draft), each in
|
|
149
|
+
* today's words and in every pinned wording a saved title can hold (`WRUN_LEGACY_LEGEND_NOTES`). A suffix
|
|
150
|
+
* that ends with none of them is returned as it is. */
|
|
151
|
+
export function wrunWithoutLegendNote(suffix, settings) {
|
|
152
|
+
const chain = wrunChainOfProvenance(settings);
|
|
153
|
+
const draft = wrunDraftLegendNote(settings);
|
|
154
|
+
let rest = chain ? withoutTrailingNote(suffix, [wrunChainServedTierNote(chain)], LEGACY_TAILS.opraTier) : suffix;
|
|
155
|
+
if (draft !== undefined)
|
|
156
|
+
rest = withoutTrailingNote(rest, [draft], LEGACY_TAILS.draft);
|
|
157
|
+
return rest;
|
|
158
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editor-built Indicator overlays (the TypeScript draft lane): identity and the
|
|
3
|
+
* NAMED PERSISTENCE SKIP, the twin of wrun-dev-overlay.util.ts.
|
|
4
|
+
*
|
|
5
|
+
* A draft overlay is a TECHNICAL_SCRIPT record the registry loader mounts from
|
|
6
|
+
* bytes the in-browser compiler just produced (services/wrun-registry-loader
|
|
7
|
+
* mountDraftPackage). Its identity is `settings.wrunDraftRef`
|
|
8
|
+
* ({scriptDocId, sourceDigest, position}) under the synthetic customScriptId
|
|
9
|
+
* `wrun-draft-<key>` (the script doc id when the tab is saved, the tab id
|
|
10
|
+
* otherwise).
|
|
11
|
+
*
|
|
12
|
+
* Session-only by decision: `wrunDraftRef` is deliberately NOT in
|
|
13
|
+
* `settingsToSave`, and every persistence seam (the workspace serializer, the
|
|
14
|
+
* PUT payload builder, the addIndicator workspace append, the hydration
|
|
15
|
+
* sanitizer) skips these overlays by the predicate below, exactly like the
|
|
16
|
+
* wrun-dev overlays and temp editor drafts. The only thing that can compute a
|
|
17
|
+
* draft is the editor tab that built it: a persisted record would restore
|
|
18
|
+
* with a `wrun-draft-*` id that names no script-service doc and would toast a
|
|
19
|
+
* failed doc fetch on every reload. THIS BROWSER brings it back instead: the
|
|
20
|
+
* pane remembers it in the draft ledger (wrun-draft-ledger.util) and the
|
|
21
|
+
* restore coordinator (wrun-draft-restore.util) runs it again from its editor
|
|
22
|
+
* tab once the pane is back on the glass; the saved script doc stays the
|
|
23
|
+
* durable artifact everywhere else.
|
|
24
|
+
*
|
|
25
|
+
* The settings dialog still opens on a draft: it resolves the row from the
|
|
26
|
+
* engine meta (utility/chart/overlay-settings-target.util.ts), and a save
|
|
27
|
+
* edits the running draft and writes no workspace row. THIS BROWSER keeps the
|
|
28
|
+
* values the save leaves off their declared defaults in the pane's draft
|
|
29
|
+
* ledger entry (wrun-draft-settings.util), so the draft's next mount starts
|
|
30
|
+
* from them: a reload, a layout switch back, the next Run (a value whose row
|
|
31
|
+
* the code removed or changed kind is dropped; a row the user never changed
|
|
32
|
+
* follows the code's current default) and the package a publish swaps in. A
|
|
33
|
+
* Reset to defaults keeps nothing, and a removal forgets them with the entry.
|
|
34
|
+
*
|
|
35
|
+
* Leaf module (no imports) so production persistence code can read it without
|
|
36
|
+
* pulling the compiler or the wasm host into its graph.
|
|
37
|
+
*/
|
|
38
|
+
export declare const WRUN_DRAFT_SCRIPT_ID_PREFIX = "wrun-draft-";
|
|
39
|
+
/** What a draft overlay carries under `settings.wrunDraftRef`. */
|
|
40
|
+
export interface WrunDraftRef {
|
|
41
|
+
/** The backing script doc, absent for a never-saved tab. */
|
|
42
|
+
scriptDocId?: string;
|
|
43
|
+
/** sha256 hex of the compiled entry (src/indicator.ts): the sheet's
|
|
44
|
+
* `source_digest`, the registry's identity for the package source. A
|
|
45
|
+
* multi-file document's libs are not in it. */
|
|
46
|
+
sourceDigest: string;
|
|
47
|
+
/** sha256 hex over the entry and every `//@file` lib section (the
|
|
48
|
+
* compiler's `workspaceDigest`, its cache key): the build that was
|
|
49
|
+
* mounted, lib edits included. Equal to `sourceDigest` for a one-file
|
|
50
|
+
* document. */
|
|
51
|
+
workspaceDigest?: string;
|
|
52
|
+
position: 'onchart' | 'offchart';
|
|
53
|
+
}
|
|
54
|
+
/** Synthetic customScriptId for a draft: `wrun-draft-<key>`, every
|
|
55
|
+
* non-alphanumeric run in the key collapsed to one dash (the registry slug
|
|
56
|
+
* discipline, so ids stay legend/DOM safe). */
|
|
57
|
+
export declare function wrunDraftSlugFor(draftKey: string): string;
|
|
58
|
+
export declare function isWrunDraftScriptId(scriptId: unknown): boolean;
|
|
59
|
+
/** True for settings minted by the draft mount. Keyed on the id prefix like
|
|
60
|
+
* the dev skip (so a stray persisted record without its ref is still
|
|
61
|
+
* recognized on the way in) OR on the ref itself; the `wrunRef` guard keeps
|
|
62
|
+
* marketplace overlays safe, whose `wrun-<package>-<version>` slugs could
|
|
63
|
+
* legitimately start with `draft-` (a marketplace overlay always carries
|
|
64
|
+
* `wrunRef`). */
|
|
65
|
+
export declare function isWrunDraftOverlaySettings(settings: object | null | undefined): boolean;
|
|
66
|
+
/** The sheet slice the slot charge reads. */
|
|
67
|
+
export interface WrunSourceCountMetadataLike {
|
|
68
|
+
/** The sheet's `inputSources` map; each value is read structurally (its
|
|
69
|
+
* `source` class and the keys its mapping names), any other key ignored. */
|
|
70
|
+
inputSources?: Readonly<Record<string, object | undefined>> | null;
|
|
71
|
+
/** Not read (no input-count fallback); kept so a whole sheet passes. */
|
|
72
|
+
inputs?: readonly unknown[] | null;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A payload key of the mapping table, read off an entry and canonicalized:
|
|
76
|
+
* - `market`: the market the entry reads, its symbol and exchange pin (an
|
|
77
|
+
* absent half is the chart's own);
|
|
78
|
+
* - `odds`: an odds entry's market, the condition id lower-cased (the chart
|
|
79
|
+
* lane's own spelling) on POLYMARKET, in the `market` slot (kScript reads a
|
|
80
|
+
* prediction market as `ohlcv(symbol=<id>, exchange="POLYMARKET")`);
|
|
81
|
+
* - `interval`: a candle leg's interval, the short spellings folded to the
|
|
82
|
+
* kit's words (`4h` = FOUR_HOURS); absent on the grid of the chart;
|
|
83
|
+
* - `expiries`: whether the entry narrows its read to the contracts expiring
|
|
84
|
+
* today (`0dte`) or not (`all`: every other word folds on the chart's bars);
|
|
85
|
+
* - `delta`: the skew quote (absent reads the standard 25, the lane's rule);
|
|
86
|
+
* - `venue`: the options flow venue (absent reads deribit, the lanes' rule);
|
|
87
|
+
* - `fund`, `publisher`, `series`, `token`, `asset`: the series the knob
|
|
88
|
+
* names, as written (an absent asset is the chart's coin);
|
|
89
|
+
* - `ref`: the feed a `series` input reads (`@scope/name`), as written;
|
|
90
|
+
* - `min_size`, `history`: the tape's filter and depth (absent: 0 and "0");
|
|
91
|
+
* - `scope`, `dte`, `moneyness`: the options flow's rows (absent: "ticker", "all" and "all");
|
|
92
|
+
* - `stream_currency`: a lane stream's quote (`oi_candles`, `volume_profile_candles`: absent or any word but "USD"
|
|
93
|
+
* reads Coin, the streams' default), one leg fetch per quote;
|
|
94
|
+
* - `ticks_per_bar`: a profile stream's bucket size as the profile lane normalizes it (a whole number 1 to 500,
|
|
95
|
+
* absent or invalid 1); an unresolved `"@<param>"` reads as written (its param resolves it before the run).
|
|
96
|
+
*/
|
|
97
|
+
export type WrunKScriptPayloadKey = 'market' | 'odds' | 'interval' | 'expiries' | 'delta' | 'venue' | 'fund' | 'publisher' | 'series' | 'token' | 'asset' | 'ref' | 'min_size' | 'history' | 'scope' | 'dte' | 'moneyness' | 'chain_venue' | 'book' | 'stream_currency' | 'ticks_per_bar';
|
|
98
|
+
/** How a wrun source class reads as a kScript source call. */
|
|
99
|
+
export interface WrunKScriptSourceMapping {
|
|
100
|
+
/** The kScript-equivalent source type (a SOURCE_TYPE_CONFIG key, or a K data
|
|
101
|
+
* type the engine has no source config for, which weighs 1); null when the
|
|
102
|
+
* class has no kScript type (it keys on its own class name). */
|
|
103
|
+
readonly type: string | null;
|
|
104
|
+
/** The type per field, for a class whose fields ride different K types. */
|
|
105
|
+
readonly typeByField?: Readonly<Record<string, string>>;
|
|
106
|
+
/** The entry's fetch-shaping keys. */
|
|
107
|
+
readonly payload: readonly WrunKScriptPayloadKey[];
|
|
108
|
+
/** Never charged: no fetch at all. */
|
|
109
|
+
readonly free?: true;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* The class-to-kScript mapping table, checked against the chart's own fetch
|
|
113
|
+
* code (the lane each class rides: wrun-overlay-run.util, wrun-live-tick.util
|
|
114
|
+
* LANE_FETCH, wrun-source-rows.util for the legs, sources/lanes/* for the
|
|
115
|
+
* poll lanes, wrun-option-summary-lane.util) and SOURCE_TYPE_CONFIG's params:
|
|
116
|
+
*
|
|
117
|
+
* - The candle family is kScript `ohlcv`: `ohlcv` (the chart spine when
|
|
118
|
+
* unpinned with no interval: free; a market pin is that market's grid leg;
|
|
119
|
+
* an interval pin is a `request()` leg, one per market + interval), the
|
|
120
|
+
* `candles` stream (the leg a period view of the same market and interval
|
|
121
|
+
* fetches), `intrabar` (kScript `ltf()`, whose payload is the same market +
|
|
122
|
+
* interval) and `odds` (a Polymarket market's candles).
|
|
123
|
+
* - The lane streams ride their lane's kScript type at the leg's interval:
|
|
124
|
+
* `oi_candles` an `open_interest` leg, `volume_profile_candles` a
|
|
125
|
+
* `volume_profile` leg, one per market, interval and quote, and a profile
|
|
126
|
+
* stream one per bucket size too: each identity is its own leg fetch
|
|
127
|
+
* (wrunLaneStreamLegFetchKey), as kScript's own sources take `currency` and
|
|
128
|
+
* `ticksPerBar` params.
|
|
129
|
+
* - The chart's own feeds, one lane fetch each (market pins are payload for
|
|
130
|
+
* the hosted lane; the chart lane serves them on ohlcv alone): `trades` is
|
|
131
|
+
* the buy/sell volume lane (both sides one fetch), `tape` the raw trade
|
|
132
|
+
* lane, `book` the order book (block_size and max_depth shape the cells,
|
|
133
|
+
* not the fetch), `volume_profile` the package's ONE profile lane
|
|
134
|
+
* (wrun_volume_profile_one_lane refuses two, so ticks_per_bar and currency
|
|
135
|
+
* shape that fetch and never add one), `oi` and `funding` (an interval pin
|
|
136
|
+
* buckets the lane's own rows, kScript's htf() resample: no fetch).
|
|
137
|
+
* - The Deribit option summary reads the chart's coin: implied volatility is
|
|
138
|
+
* ONE ask for every tenor (the tenors are fields of the one kScript
|
|
139
|
+
* source), skew one ask per delta.
|
|
140
|
+
* - The poll lanes ride their K types: one fetch per distinct knob value
|
|
141
|
+
* (fund, publisher + series, venue, asset); bitfinex_funding's four fields
|
|
142
|
+
* are four K types (no engine source config: 1 each).
|
|
143
|
+
* - No kScript type: `options_chain` (the package's ONE chain,
|
|
144
|
+
* wrun_options_chain_one_venue), `token_supply` (one per token),
|
|
145
|
+
* `series` (one per feed, its `ref`: the lane's own relay fetch) and the
|
|
146
|
+
* OPRA scalar classes (`options_flow` one per scope, dte, moneyness and
|
|
147
|
+
* venue: its knobs shape the acquisition). Any other
|
|
148
|
+
* class (metric, a class this table does not know) charges 1 per distinct
|
|
149
|
+
* entry, keyed on every key but the read modifiers.
|
|
150
|
+
* - The row lanes (sources/row-lanes/*) have no kScript type either:
|
|
151
|
+
* - `option_strikes`: the package's ONE strike chain (acquisitions 'one'),
|
|
152
|
+
* keyed by its venue word and book.
|
|
153
|
+
* - `option_contract_state`: one chain read per chart market, venue and
|
|
154
|
+
* book (expiries and strike_window_pct filter that read).
|
|
155
|
+
* - `option_surface`: one surface read per chart market, venue and book (the
|
|
156
|
+
* run's bar span picks its tier), keyed as the lane plans its instances:
|
|
157
|
+
* the options chain's venue word (absent reads `auto`) and the book
|
|
158
|
+
* (absent or `auto` reads `auto`, a series name upper case).
|
|
159
|
+
*/
|
|
160
|
+
export declare const WRUN_KSCRIPT_SOURCE_CLASSES: Readonly<Record<string, WrunKScriptSourceMapping>>;
|
|
161
|
+
/** The kScript source weights (SOURCE_TYPE_CONFIG's `weight`; a type absent
|
|
162
|
+
* here weighs 1). A spec pins the copy. */
|
|
163
|
+
export declare const WRUN_KSCRIPT_SOURCE_WEIGHTS: Readonly<Record<string, number>>;
|
|
164
|
+
/** One input-source entry as the kScript source call it is equivalent to. */
|
|
165
|
+
export interface WrunKScriptSource {
|
|
166
|
+
/** The kScript-equivalent type; null when the class has none. */
|
|
167
|
+
type: string | null;
|
|
168
|
+
/** The dedupe key: the type (`wrun:<class>` without one) and the canonical payload. */
|
|
169
|
+
key: string;
|
|
170
|
+
weight: number;
|
|
171
|
+
}
|
|
172
|
+
/** The kScript weight of a source type (1 for anything SOURCE_TYPE_CONFIG
|
|
173
|
+
* does not weigh, and for no type). */
|
|
174
|
+
export declare function wrunKScriptSourceWeight(type: string | null): number;
|
|
175
|
+
/** The kScript source an input-source entry reads, or null when it reads
|
|
176
|
+
* nothing chargeable (the chart spine, the bar clock, no class at all). */
|
|
177
|
+
export declare function wrunKScriptSourceOf(value: unknown): WrunKScriptSource | null;
|
|
178
|
+
/** The slot charge of a sheet in kScript's unit (the rule above): the
|
|
179
|
+
* weighted count of the distinct kScript sources its entries read, never
|
|
180
|
+
* below 1. */
|
|
181
|
+
export declare function wrunMetadataSourceCount(metadata: WrunSourceCountMetadataLike): number;
|