@orangecharts/wrun-chart-host 0.3.0 → 0.5.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 +23 -6
- package/dist/constants/exchange-names.leaf.d.ts +8 -0
- package/dist/constants/exchange-names.leaf.js +101 -0
- 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/builtin-script-snippets.d.ts +133 -0
- package/dist/constants/scriptEditor/builtin-script-snippets.js +451 -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 +321 -24
- package/dist/host-env.js +15 -0
- package/dist/host-ports.types.d.ts +857 -35
- package/dist/index.d.ts +149 -2
- package/dist/index.js +149 -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/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 +5 -0
- package/dist/utility/chart/chart-mount-epoch.util.js +29 -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/date-labelled-interval.leaf.d.ts +15 -0
- package/dist/utility/chart/date-labelled-interval.leaf.js +19 -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/indicator-run-interval.util.d.ts +130 -0
- package/dist/utility/chart/indicator-run-interval.util.js +268 -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/window-geometry.leaf.d.ts +119 -0
- package/dist/utility/chart/window-geometry.leaf.js +391 -0
- package/dist/utility/chart/window-owner.leaf.d.ts +19 -0
- package/dist/utility/chart/window-owner.leaf.js +24 -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/html-escape.leaf.d.ts +11 -0
- package/dist/utility/html-escape.leaf.js +20 -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/option_daily.d.ts +43 -15
- package/dist/utility/wrun/sources/lanes/option_daily.js +78 -20
- package/dist/utility/wrun/sources/lanes/option_stats_10m.d.ts +14 -10
- package/dist/utility/wrun/sources/lanes/option_stats_10m.js +5 -4
- package/dist/utility/wrun/sources/lanes/series.js +2 -2
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +22 -3
- package/dist/utility/wrun/sources/opra-option-lanes.util.js +38 -7
- package/dist/utility/wrun/sources/registry.js +31 -1
- package/dist/utility/wrun/sources/row-lane-registry.js +5 -5
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +49 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +75 -20
- package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +49 -0
- package/dist/utility/wrun/sources/row-lanes/option_strikes.js +57 -47
- package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +36 -4
- package/dist/utility/wrun/sources/row-lanes/option_surface.js +6 -12
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +37 -3
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +128 -2
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +233 -51
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +0 -8
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +26 -24
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +85 -104
- 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 +83 -0
- package/dist/utility/wrun/wrun-bar-count.util.js +259 -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 +266 -0
- package/dist/utility/wrun/wrun-host.service.js +655 -0
- 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-opra-stats.leaf.d.ts +29 -10
- package/dist/utility/wrun/wrun-opra-stats.leaf.js +29 -10
- 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-panel-mount.lazy.d.ts +10 -0
- package/dist/utility/wrun/wrun-panel-mount.lazy.js +68 -0
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +392 -0
- package/dist/utility/wrun/wrun-panel-mount.util.js +2346 -0
- 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-pause-dim.util.d.ts +52 -0
- package/dist/utility/wrun/wrun-pause-dim.util.js +153 -0
- package/dist/utility/wrun/wrun-plot-gate.types.d.ts +23 -0
- package/dist/utility/wrun/wrun-plot-gate.types.js +7 -0
- 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-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-projection.types.d.ts +14 -0
- package/dist/utility/wrun/wrun-run-interval-projection.types.js +1 -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-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 +190 -0
- package/dist/workers/wrun/wrun-abi-host.js +1201 -0
- package/dist/workers/wrun/wrun-engine-handler.d.ts +37 -0
- package/dist/workers/wrun/wrun-engine-handler.js +211 -0
- package/package.json +3 -3
|
@@ -26,11 +26,21 @@
|
|
|
26
26
|
* (`wrunPollLaneFetchOptions`), the full run's window start and end
|
|
27
27
|
* (`wrunPollLaneFetchFrom`, `wrunPollLaneFetchTo`) and the reconcile's start
|
|
28
28
|
* (`wrunPollLaneReconcileFrom`).
|
|
29
|
+
* - a `chain` lane's plane per instance (`wrunPollLaneChainPlane`), the fields its asks name for it
|
|
30
|
+
* (`wrunPollLaneChainAsk`), the governed exchange its reconcile window and stop read
|
|
31
|
+
* (`wrunPollLaneChainGovernedExchange`), whether it reads OPRA (`wrunPollLaneInstanceReadsOpra`, the provenance
|
|
32
|
+
* stamp) and whether its acquisition moved (`wrunPollLaneMovedInstance`): the run's and the live tick's one rule.
|
|
33
|
+
* - the rules both planners keep (this one and wrun-row-lanes.util `planWrunRowLanes`), written once here: the chart's
|
|
34
|
+
* OPRA plane facts (`wrunChartOpraPlane`), a chain lane's OPRA wall and stop before its chain is resolved
|
|
35
|
+
* (`wrunChainLaneStop`), a lane's refusal that the chart has no option chain (`wrunLaneNoChainRefusal`), and what an
|
|
36
|
+
* input the chart does not serve does (`wrunUnservedLaneInput`: a declared fill drops it with a note, any other
|
|
37
|
+
* refuses by name).
|
|
29
38
|
*/
|
|
30
39
|
import type { WrunIndicatorMetadata, WrunInputSource } from '../../../interfaces/wrun-runtime.interface.js';
|
|
31
40
|
import type { OpraReadFacts } from '../../chart/opra-read-access.leaf.js';
|
|
32
41
|
import type { OpraOptionPlaneStop } from '../../../host-ports.types.js';
|
|
33
42
|
import { type WrunPollLane, type WrunPollLaneContext, type WrunPollLaneId, type WrunPollLaneInstance } from './wrun-poll-lane.types.js';
|
|
43
|
+
import { type WrunLaneChainPlane } from './wrun-row-lane.types.js';
|
|
34
44
|
import type { WrunMissingFeed } from '../wrun-run-health.util.js';
|
|
35
45
|
import type { LiveBucketVenue } from '../../chart/live-bucket.util.js';
|
|
36
46
|
/** One input of a registry class under the static plan. */
|
|
@@ -73,6 +83,69 @@ export interface WrunPollLaneRunFacts extends OpraReadFacts {
|
|
|
73
83
|
}
|
|
74
84
|
/** The technical words of an OPRA lane a known stop keeps off the chart (Copy details), by the stop's reason. */
|
|
75
85
|
export declare function wrunOpraPlaneStopDetail(stop: OpraOptionPlaneStop): string;
|
|
86
|
+
/** The chart's OPRA plane facts as both planners read them, once per plan (`wrunChartOpraPlane`). */
|
|
87
|
+
export interface WrunChartOpraPlane {
|
|
88
|
+
/** The chart's options ride the OPRA plane (a US stock or ETF chart while the `opra` flag is lit, an OPRA contract
|
|
89
|
+
* chart). */
|
|
90
|
+
onPlane: boolean;
|
|
91
|
+
/** Off the plane, the known reason a chart whose options list on OPRA rides none (opra-options-gate.util
|
|
92
|
+
* `opraOptionPlaneStop`: the flag check's `flag-off`, the plane router's `chart-kind`); absent, none is known. */
|
|
93
|
+
stop?: OpraOptionPlaneStop;
|
|
94
|
+
}
|
|
95
|
+
/** The chart's OPRA plane facts, off the predicates the run injects (`isOpraPlaneExchange`: absent, no chart rides
|
|
96
|
+
* the plane; `opraPlaneStop`, asked only off the plane). */
|
|
97
|
+
export declare function wrunChartOpraPlane(exchange: string, facts: Pick<WrunPollLaneRunFacts, 'isOpraPlaneExchange' | 'opraPlaneStop'> | undefined): WrunChartOpraPlane;
|
|
98
|
+
/**
|
|
99
|
+
* Why one input of a lane the chart does not serve is not served, as `wrunUnservedLaneInput` reads it: the planner's
|
|
100
|
+
* own words after the input's label (`words`, with the `stop` when a known stop keeps the chart's OPRA options off the
|
|
101
|
+
* plane), or the lane's own refusal that the chart has no option chain (`noChain`, `wrunLaneNoChainRefusal`).
|
|
102
|
+
*/
|
|
103
|
+
export type WrunUnservedLaneWhy = {
|
|
104
|
+
words: string;
|
|
105
|
+
stop?: OpraOptionPlaneStop;
|
|
106
|
+
} | {
|
|
107
|
+
noChain: Error;
|
|
108
|
+
};
|
|
109
|
+
/** One input the chart does not serve: its name and class (every note and refusal names them), the feed its note
|
|
110
|
+
* names (the lane key) and its declared `missing` policy. */
|
|
111
|
+
export interface WrunUnservedLaneInput {
|
|
112
|
+
inputName: string;
|
|
113
|
+
sourceClass: string;
|
|
114
|
+
feed: string;
|
|
115
|
+
missing: unknown;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* The ONE rule for an input of a lane the chart does not serve, both planners' (`planWrunPollLanes` with
|
|
119
|
+
* `WRUN_POLL_LANE_UNSERVED_FILLS`, wrun-row-lanes.util `planWrunRowLanes` with a celled input's `empty`), whatever keeps
|
|
120
|
+
* it unserved (an index-mode chart, an OPRA lane off the plane, a chain lane stopped off it, a chart with no option
|
|
121
|
+
* chain): an input that declared one of `fills` is dropped from planning and named in `missing` under its feed, one
|
|
122
|
+
* entry per feed with its inputs in declaration order (the run draws, the row builder hands it an empty lane, a note
|
|
123
|
+
* says which feed and why); any other refuses by name (the default `carry` policy has nothing to carry). Throws, or
|
|
124
|
+
* records the note.
|
|
125
|
+
*
|
|
126
|
+
* The words: a known stop (`stop`) says that reason, the note and the refusal alike (`options-stopped`), never "this
|
|
127
|
+
* market has no such feed"; a chart with no option chain (`noChain`) puts the chain decision's own words in the note's
|
|
128
|
+
* details under the market's note (an options feed is missing on every market alike, a crypto one too), and an input
|
|
129
|
+
* with no fill refuses with that decision itself (`no-options` / `chain`); any other is the feed-missing record, saying
|
|
130
|
+
* "it comes from crypto markets" only on a chart provably no crypto venue (`cryptoVenue` false).
|
|
131
|
+
*/
|
|
132
|
+
export declare function wrunUnservedLaneInput(missing: Map<string, WrunMissingFeed>, input: WrunUnservedLaneInput, fills: readonly string[], why: WrunUnservedLaneWhy, cryptoVenue: boolean | undefined): void;
|
|
133
|
+
/**
|
|
134
|
+
* Whether a lane's refusal says the chart has no option chain: its record's seed is `no-options` / `chain` (the chain
|
|
135
|
+
* decision's `no-chain`, opra-option-lanes.util `wrunLaneChainRefusalSeed`, and the OPRA-only lanes' "OPRA lists no
|
|
136
|
+
* options here"), read off the seed, never the words. Such a chart (a LINK perp, a forex pair, a stock listing no
|
|
137
|
+
* options) does not serve the feed: both planners hand the refusal to `wrunUnservedLaneInput`, so a declared fill reads.
|
|
138
|
+
*/
|
|
139
|
+
export declare function wrunLaneNoChainRefusal(error: unknown): error is Error;
|
|
140
|
+
/**
|
|
141
|
+
* A chain lane's input before its chain is resolved, both planners' one rule: where the chart's options list on OPRA
|
|
142
|
+
* (riding the plane, or kept off it by a known stop) the OPRA wall first (`opra-official-only:<class>`), every chain it
|
|
143
|
+
* would read there being OPRA's; then, kept off the plane by a known stop (the `opra` flag dark, an index chart), why
|
|
144
|
+
* the input is unserved (the stop's words and the stop, for `wrunUnservedLaneInput`), so no chain is resolved past the
|
|
145
|
+
* stop. Undefined: the lane resolves its chain (its instance then meets its own plane's wall,
|
|
146
|
+
* `assertWrunLaneChainPlaneReadable`).
|
|
147
|
+
*/
|
|
148
|
+
export declare function wrunChainLaneStop(plane: WrunChartOpraPlane, run: OpraReadFacts | undefined, ctx: Pick<WrunPollLaneContext, 'inputName' | 'sourceClass'>): WrunUnservedLaneWhy | undefined;
|
|
76
149
|
/** The run's plan against the chart (WRUN-REFUSALS contract): the lane instances to fetch, and
|
|
77
150
|
* the feeds the chart's fetch never serves to inputs that declared a missing fill (one entry per
|
|
78
151
|
* lane key, its inputs in declaration order). */
|
|
@@ -125,6 +198,21 @@ export type WrunPollLanePlanResult = WrunPollLanePlan & WrunPollLaneInstance[];
|
|
|
125
198
|
* note and in the refusal (`options-stopped`), never "this market has no such feed".
|
|
126
199
|
* The run's facts reach an `opra` lane's `plan` as `ctx.official` and `ctx.opraUserScripts`.
|
|
127
200
|
*
|
|
201
|
+
* A `chain` lane (the chart's options chain on whichever plane it lists on) is admitted on every chart its options are
|
|
202
|
+
* not stopped on: its `plan` resolves the chain through the one chain resolver. It meets the OPRA wall before its
|
|
203
|
+
* `plan` runs where the chart's options list on OPRA (every chain it reads there is OPRA's), and each instance then
|
|
204
|
+
* meets its own plane's wall (`assertWrunLaneChainPlaneReadable`: OPRA's, the CME display wall, none for a crypto
|
|
205
|
+
* chain). On a chart whose options list on OPRA but ride no plane for a known reason (`run.opraPlaneStop`) it keeps an
|
|
206
|
+
* `opra` lane's rules (`wrunChainLaneStop`, the row lanes' one rule): a declared fill drops the input with the stop's
|
|
207
|
+
* note, any other input refuses with it, and no chain is resolved past the stop. Its context carries the run's OPRA
|
|
208
|
+
* facts (the chain decision's `auto` reads them), the chart's category, the plane verdict (`opraPlane`: a lane reading
|
|
209
|
+
* by coin there reads no chain directory) and the plan's `runScope` (its inputs share one chart resolution).
|
|
210
|
+
*
|
|
211
|
+
* A chart with no option chain (a LINK perp, a forex pair, a stock listing no options) does not serve an options feed:
|
|
212
|
+
* an input whose lane's `plan` refuses so (`wrunLaneNoChainRefusal`: the record's `no-options` / `chain`) meets the
|
|
213
|
+
* same rule as an input an index-mode chart does not serve (`wrunUnservedLaneInput`), its note naming the feed with the
|
|
214
|
+
* chain decision's words, its refusal the decision's own.
|
|
215
|
+
*
|
|
128
216
|
* An input the market leaves undemanded (its `needed_by` leaves the market out, wrunSheetWithLaneDemand) is planned
|
|
129
217
|
* nowhere, before all of the above: no wall, no admission, no `plan`, no fetch, no note; the row builder reads its
|
|
130
218
|
* fill on every bar.
|
|
@@ -134,11 +222,49 @@ export type WrunPollLanePlanResult = WrunPollLanePlan & WrunPollLaneInstance[];
|
|
|
134
222
|
* import graphs; without one no chart reads as index-mode, and without the other the venue is
|
|
135
223
|
* unknown (the neutral words).
|
|
136
224
|
*/
|
|
137
|
-
export declare function planWrunPollLanes(metadata: WrunIndicatorMetadata, chart: Pick<WrunPollLaneContext, 'coin' | 'exchange' | 'symbol' | 'intervalMs'
|
|
225
|
+
export declare function planWrunPollLanes(metadata: WrunIndicatorMetadata, chart: Pick<WrunPollLaneContext, 'coin' | 'exchange' | 'symbol' | 'intervalMs'> & {
|
|
226
|
+
category?: unknown;
|
|
227
|
+
}, isIndexModeExchange?: (exchange: string) => boolean, isCryptoVenueExchange?: (exchange: string) => boolean, run?: WrunPollLaneRunFacts): Promise<WrunPollLanePlanResult>;
|
|
138
228
|
/** The lane instances of `planWrunPollLanes` alone (the array every caller that plans no notes
|
|
139
229
|
* reads): the same plan, the same refusals by name, an input that declared a missing fill on an
|
|
140
230
|
* index-mode chart dropped. */
|
|
141
|
-
export declare function planWrunPollLaneInstances(metadata: WrunIndicatorMetadata, chart: Pick<WrunPollLaneContext, 'coin' | 'exchange' | 'symbol' | 'intervalMs'
|
|
231
|
+
export declare function planWrunPollLaneInstances(metadata: WrunIndicatorMetadata, chart: Pick<WrunPollLaneContext, 'coin' | 'exchange' | 'symbol' | 'intervalMs'> & {
|
|
232
|
+
category?: unknown;
|
|
233
|
+
}, isIndexModeExchange?: (exchange: string) => boolean, isCryptoVenueExchange?: (exchange: string) => boolean, run?: WrunPollLaneRunFacts): Promise<WrunPollLaneInstance[]>;
|
|
234
|
+
/**
|
|
235
|
+
* A chain instance against its own plane's wall, by the plane and the exchange its chain lists on: an OPRA chain the
|
|
236
|
+
* OPRA wall (`mayReadOpra`), a CME chain the CME display wall (OpenMarket's own packages only, the run door's rule on
|
|
237
|
+
* a CME chart, kscript-venue-policy.util; the `opra-user-scripts` flag never opens it), a crypto chain (`plain`)
|
|
238
|
+
* none. The row lanes keep the same rule (wrun-row-lanes.util), in the same words.
|
|
239
|
+
*/
|
|
240
|
+
export declare function assertWrunLaneChainPlaneReadable(plane: WrunLaneChainPlane | undefined, exchange: string, run: OpraReadFacts | undefined, ctx: Pick<WrunPollLaneContext, 'inputName' | 'sourceClass'>): void;
|
|
241
|
+
/** The exchange a chain-lane instance's chain lists on (the payload field its `chain` names); '' for any other lane
|
|
242
|
+
* or a payload naming none. */
|
|
243
|
+
export declare function wrunPollLaneChainExchange(lane: Pick<WrunPollLane, 'chain'>, extras: Readonly<Record<string, unknown>>): string;
|
|
244
|
+
/** The plane a chain-lane instance reads, by its chain's exchange (`wrunLaneChainPlaneOf`, off the governed exchange
|
|
245
|
+
* sets); undefined for any other lane (its plane, if any, is its descriptor's `opra`). */
|
|
246
|
+
export declare function wrunPollLaneChainPlane(lane: Pick<WrunPollLane, 'chain'>, extras: Readonly<Record<string, unknown>>): WrunLaneChainPlane | undefined;
|
|
247
|
+
/** Whether one poll-lane instance reads the OPRA plane (the provenance stamp and the legend note follow it): every
|
|
248
|
+
* instance of an `opra` lane, a chain lane's whose chain lists on OPRA. */
|
|
249
|
+
export declare function wrunPollLaneInstanceReadsOpra(lane: Pick<WrunPollLane, 'opra' | 'chain'>, extras: Readonly<Record<string, unknown>>): boolean;
|
|
250
|
+
/** The governed exchange a chain-lane instance reads beside its chart's own market (the exchange its served access,
|
|
251
|
+
* and so its delayed window and its gate session, is read under): its chain's when a gate governs it (OPRA, a CME
|
|
252
|
+
* Group exchange); null for a crypto chain and for any other lane. */
|
|
253
|
+
export declare function wrunPollLaneChainGovernedExchange(lane: Pick<WrunPollLane, 'chain'>, extras: Readonly<Record<string, unknown>>): string | null;
|
|
254
|
+
/**
|
|
255
|
+
* A chain instance's ask (the full run's and the reconcile's, re-read on every ask): its payload with the fields its
|
|
256
|
+
* plane names beside it. An OPRA chain names the plane and its routed tier (`wrunOpraLanePayloadFields`: Door C judges
|
|
257
|
+
* it an OPRA ask, the legend names a delayed tier); a CME chain its routed tier alone (`servedTier`, so no source cache
|
|
258
|
+
* serves one tier's rows to the other; the chart's own badge names the delay); a crypto chain nothing. Any other
|
|
259
|
+
* lane's payload as it is. `tierOf` is the routing's rule (governed-route.util `governedMarketDataTier`), handed in so
|
|
260
|
+
* this module stays off the routing graph, and asked only for a governed exchange: it answers delayed for any
|
|
261
|
+
* exchange no gate governs.
|
|
262
|
+
*/
|
|
263
|
+
export declare function wrunPollLaneChainAsk(lane: Pick<WrunPollLane, 'chain'>, extras: Readonly<Record<string, unknown>>, tierOf: (exchange: string) => 'realtime' | 'delayed'): Readonly<Record<string, unknown>>;
|
|
264
|
+
/** The first poll-lane instance of a session whose acquisition moved since the run planned it (its lane's
|
|
265
|
+
* `acquisitionMoved` over the run's record of it, else over the instance's payload), or undefined: the live tick
|
|
266
|
+
* rebuilds the session then, as for a row lane's (wrun-row-lanes.util `wrunRowLaneMovedInstance`). */
|
|
267
|
+
export declare function wrunPollLaneMovedInstance(instances: ReadonlyArray<Pick<WrunPollLaneInstance, 'key' | 'laneKey' | 'extras'>> | undefined, acquisition: Readonly<Partial<Record<WrunPollLaneId, Readonly<Record<string, unknown>>>>>): WrunPollLaneId | undefined;
|
|
142
268
|
/**
|
|
143
269
|
* Whether a lane must answer rows for the package: true when any input reading it (`reads`)
|
|
144
270
|
* rides the default carry policy (an absent series has nothing to carry, so an empty lane
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { wrunOptionsStopSeed } from '../wrun-refusal.util.js';
|
|
2
|
-
import { wrunPollLaneGlobalClasses, wrunPollLanes, wrunPollLanesOfClass } from './registry.js';
|
|
1
|
+
import { wrunOptionsStopSeed, wrunRefusalSeedOf } from '../wrun-refusal.util.js';
|
|
2
|
+
import { wrunPollLaneByKey, wrunPollLaneGlobalClasses, wrunPollLanes, wrunPollLanesOfClass } from './registry.js';
|
|
3
3
|
import { refuseWrunPollInput, WRUN_POLL_LANE_ID_PREFIX, } from './wrun-poll-lane.types.js';
|
|
4
|
+
import { wrunLaneChainPlaneOf } from './wrun-row-lane.types.js';
|
|
4
5
|
import { WRUN_DAILY_LANE_INTERVAL_KEY, wrunDailyLaneFetchFrom, wrunDailyLaneFetchTo, wrunDailyLaneReconcileFrom, wrunDailyLaneReconcileTo, } from '../wrun-daily-lane.util.js';
|
|
5
|
-
import { assertWrunOpraLaneReadable } from '../wrun-opra-lane.util.js';
|
|
6
|
+
import { assertWrunOpraLaneReadable, wrunOpraLanePayloadFields } from '../wrun-opra-lane.util.js';
|
|
6
7
|
import { wrunHostGridAsks, wrunHostGridFetchTo, wrunLandScalarRowsOnHostBars } from '../wrun-tier-grid.util.js';
|
|
7
8
|
/**
|
|
8
9
|
* The static plan: every input whose class the registry serves, in declaration order, with the
|
|
@@ -92,6 +93,102 @@ export function wrunOpraPlaneStopDetail(stop) {
|
|
|
92
93
|
? 'is not served for this account yet: the opra flag is off, so no US options data is read on any chart'
|
|
93
94
|
: 'is not served on this chart: an index chart does not ride the OPRA plane yet, so no US options data is read for it';
|
|
94
95
|
}
|
|
96
|
+
/** The chart's OPRA plane facts, off the predicates the run injects (`isOpraPlaneExchange`: absent, no chart rides
|
|
97
|
+
* the plane; `opraPlaneStop`, asked only off the plane). */
|
|
98
|
+
export function wrunChartOpraPlane(exchange, facts) {
|
|
99
|
+
if (facts?.isOpraPlaneExchange?.(exchange) === true)
|
|
100
|
+
return { onPlane: true };
|
|
101
|
+
const stop = facts?.opraPlaneStop?.(exchange);
|
|
102
|
+
return stop !== undefined ? { onPlane: false, stop } : { onPlane: false };
|
|
103
|
+
}
|
|
104
|
+
/** The fills a scalar input reads on every bar of a feed the chart does not serve (`missing: "nan"` or `"zero"`). */
|
|
105
|
+
const WRUN_POLL_LANE_UNSERVED_FILLS = Object.freeze(['nan', 'zero']);
|
|
106
|
+
/**
|
|
107
|
+
* The ONE rule for an input of a lane the chart does not serve, both planners' (`planWrunPollLanes` with
|
|
108
|
+
* `WRUN_POLL_LANE_UNSERVED_FILLS`, wrun-row-lanes.util `planWrunRowLanes` with a celled input's `empty`), whatever keeps
|
|
109
|
+
* it unserved (an index-mode chart, an OPRA lane off the plane, a chain lane stopped off it, a chart with no option
|
|
110
|
+
* chain): an input that declared one of `fills` is dropped from planning and named in `missing` under its feed, one
|
|
111
|
+
* entry per feed with its inputs in declaration order (the run draws, the row builder hands it an empty lane, a note
|
|
112
|
+
* says which feed and why); any other refuses by name (the default `carry` policy has nothing to carry). Throws, or
|
|
113
|
+
* records the note.
|
|
114
|
+
*
|
|
115
|
+
* The words: a known stop (`stop`) says that reason, the note and the refusal alike (`options-stopped`), never "this
|
|
116
|
+
* market has no such feed"; a chart with no option chain (`noChain`) puts the chain decision's own words in the note's
|
|
117
|
+
* details under the market's note (an options feed is missing on every market alike, a crypto one too), and an input
|
|
118
|
+
* with no fill refuses with that decision itself (`no-options` / `chain`); any other is the feed-missing record, saying
|
|
119
|
+
* "it comes from crypto markets" only on a chart provably no crypto venue (`cryptoVenue` false).
|
|
120
|
+
*/
|
|
121
|
+
export function wrunUnservedLaneInput(missing, input, fills, why, cryptoVenue) {
|
|
122
|
+
const fill = typeof input.missing === 'string' && fills.includes(input.missing) ? input.missing : undefined;
|
|
123
|
+
if (fill === undefined) {
|
|
124
|
+
if ('noChain' in why)
|
|
125
|
+
throw why.noChain;
|
|
126
|
+
return refuseWrunPollInput(input, why.words, why.stop !== undefined
|
|
127
|
+
? wrunOptionsStopSeed(why.stop, { severity: 'paused' })
|
|
128
|
+
: {
|
|
129
|
+
cls: 'feed-missing',
|
|
130
|
+
variant: cryptoVenue === false ? 'crypto-only' : 'market-paused',
|
|
131
|
+
params: { feed: input.feed },
|
|
132
|
+
severity: 'paused',
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
const said = 'noChain' in why ? why.noChain.message : `Input '${input.inputName}' (${input.sourceClass}) ${why.words}`;
|
|
136
|
+
const details = `${said}; it declares missing: "${fill}", so it reads ${fill === 'empty' ? 'an empty block' : 'that fill'} on every bar`;
|
|
137
|
+
const entry = missing.get(input.feed);
|
|
138
|
+
if (entry !== undefined) {
|
|
139
|
+
entry.inputNames.push(input.inputName);
|
|
140
|
+
entry.details = `${entry.details}\n${details}`;
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const stop = 'stop' in why ? why.stop : undefined;
|
|
144
|
+
missing.set(input.feed, {
|
|
145
|
+
inputNames: [input.inputName],
|
|
146
|
+
feed: input.feed,
|
|
147
|
+
variant: !('noChain' in why) && cryptoVenue === false ? 'crypto-only' : 'market',
|
|
148
|
+
details,
|
|
149
|
+
...(stop !== undefined ? { stop } : {}),
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Whether a lane's refusal says the chart has no option chain: its record's seed is `no-options` / `chain` (the chain
|
|
154
|
+
* decision's `no-chain`, opra-option-lanes.util `wrunLaneChainRefusalSeed`, and the OPRA-only lanes' "OPRA lists no
|
|
155
|
+
* options here"), read off the seed, never the words. Such a chart (a LINK perp, a forex pair, a stock listing no
|
|
156
|
+
* options) does not serve the feed: both planners hand the refusal to `wrunUnservedLaneInput`, so a declared fill reads.
|
|
157
|
+
*/
|
|
158
|
+
export function wrunLaneNoChainRefusal(error) {
|
|
159
|
+
const seed = wrunRefusalSeedOf(error);
|
|
160
|
+
return error instanceof Error && seed?.cls === 'no-options' && seed.variant === 'chain';
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* A chain lane's input before its chain is resolved, both planners' one rule: where the chart's options list on OPRA
|
|
164
|
+
* (riding the plane, or kept off it by a known stop) the OPRA wall first (`opra-official-only:<class>`), every chain it
|
|
165
|
+
* would read there being OPRA's; then, kept off the plane by a known stop (the `opra` flag dark, an index chart), why
|
|
166
|
+
* the input is unserved (the stop's words and the stop, for `wrunUnservedLaneInput`), so no chain is resolved past the
|
|
167
|
+
* stop. Undefined: the lane resolves its chain (its instance then meets its own plane's wall,
|
|
168
|
+
* `assertWrunLaneChainPlaneReadable`).
|
|
169
|
+
*/
|
|
170
|
+
export function wrunChainLaneStop(plane, run, ctx) {
|
|
171
|
+
if (plane.onPlane || plane.stop !== undefined)
|
|
172
|
+
assertWrunOpraLaneReadable(run, ctx);
|
|
173
|
+
return plane.stop === undefined ? undefined : { words: wrunOpraPlaneStopDetail(plane.stop), stop: plane.stop };
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Why a poll lane that is no chain lane is not served on the chart, or undefined: an `opra` lane (after the OPRA wall,
|
|
177
|
+
* on any chart) off the plane when the run judges the plane (the stop's words when a known stop keeps the chart's
|
|
178
|
+
* options off it, else `WRUN_POLL_OPRA_UNADMITTED_REASON`), and a lane reading the chart's own market on an index-mode
|
|
179
|
+
* chart (`wrunPollLaneIndexModeReason`).
|
|
180
|
+
*/
|
|
181
|
+
function wrunPollLaneUnserved(lane, plane, indexMode, run, ctx) {
|
|
182
|
+
if (lane.opra === true) {
|
|
183
|
+
assertWrunOpraLaneReadable(run, ctx);
|
|
184
|
+
if (run?.isOpraPlaneExchange !== undefined && !plane.onPlane) {
|
|
185
|
+
return plane.stop !== undefined
|
|
186
|
+
? { words: wrunOpraPlaneStopDetail(plane.stop), stop: plane.stop }
|
|
187
|
+
: { words: WRUN_POLL_OPRA_UNADMITTED_REASON };
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return indexMode && !wrunPollLaneServedOnIndexMode(lane) ? { words: wrunPollLaneIndexModeReason() } : undefined;
|
|
191
|
+
}
|
|
95
192
|
function wrunPollLanePlanResult(lanes, missingFeeds) {
|
|
96
193
|
const result = [...lanes];
|
|
97
194
|
Object.defineProperty(result, 'lanes', { value: lanes, enumerable: false });
|
|
@@ -138,6 +235,21 @@ function wrunPollLanePlanResult(lanes, missingFeeds) {
|
|
|
138
235
|
* note and in the refusal (`options-stopped`), never "this market has no such feed".
|
|
139
236
|
* The run's facts reach an `opra` lane's `plan` as `ctx.official` and `ctx.opraUserScripts`.
|
|
140
237
|
*
|
|
238
|
+
* A `chain` lane (the chart's options chain on whichever plane it lists on) is admitted on every chart its options are
|
|
239
|
+
* not stopped on: its `plan` resolves the chain through the one chain resolver. It meets the OPRA wall before its
|
|
240
|
+
* `plan` runs where the chart's options list on OPRA (every chain it reads there is OPRA's), and each instance then
|
|
241
|
+
* meets its own plane's wall (`assertWrunLaneChainPlaneReadable`: OPRA's, the CME display wall, none for a crypto
|
|
242
|
+
* chain). On a chart whose options list on OPRA but ride no plane for a known reason (`run.opraPlaneStop`) it keeps an
|
|
243
|
+
* `opra` lane's rules (`wrunChainLaneStop`, the row lanes' one rule): a declared fill drops the input with the stop's
|
|
244
|
+
* note, any other input refuses with it, and no chain is resolved past the stop. Its context carries the run's OPRA
|
|
245
|
+
* facts (the chain decision's `auto` reads them), the chart's category, the plane verdict (`opraPlane`: a lane reading
|
|
246
|
+
* by coin there reads no chain directory) and the plan's `runScope` (its inputs share one chart resolution).
|
|
247
|
+
*
|
|
248
|
+
* A chart with no option chain (a LINK perp, a forex pair, a stock listing no options) does not serve an options feed:
|
|
249
|
+
* an input whose lane's `plan` refuses so (`wrunLaneNoChainRefusal`: the record's `no-options` / `chain`) meets the
|
|
250
|
+
* same rule as an input an index-mode chart does not serve (`wrunUnservedLaneInput`), its note naming the feed with the
|
|
251
|
+
* chain decision's words, its refusal the decision's own.
|
|
252
|
+
*
|
|
141
253
|
* An input the market leaves undemanded (its `needed_by` leaves the market out, wrunSheetWithLaneDemand) is planned
|
|
142
254
|
* nowhere, before all of the above: no wall, no admission, no `plan`, no fetch, no note; the row builder reads its
|
|
143
255
|
* fill on every bar.
|
|
@@ -152,70 +264,71 @@ export async function planWrunPollLanes(metadata, chart, isIndexModeExchange = (
|
|
|
152
264
|
const missing = new Map();
|
|
153
265
|
const indexModeChart = isIndexModeExchange(chart.exchange);
|
|
154
266
|
const cryptoVenue = isCryptoVenueExchange?.(chart.exchange);
|
|
267
|
+
// The chart's category (pb-common `Category`), handed on when the chart holds one.
|
|
268
|
+
const category = typeof chart.category === 'number' ? { category: chart.category } : {};
|
|
269
|
+
// The chart's OPRA plane facts, read once (`wrunChartOpraPlane`, the row lanes' planner reads them the same way):
|
|
270
|
+
// whether its options ride the plane, and off it the known reason a chart whose options list on OPRA rides none.
|
|
271
|
+
const plane = wrunChartOpraPlane(chart.exchange, run);
|
|
272
|
+
// One object per plan: the inputs of this run share a chain lane's resolutions by it.
|
|
273
|
+
const runScope = {};
|
|
155
274
|
for (const planned of planWrunPollLaneInputs(metadata)) {
|
|
156
275
|
if (planned.source.undemanded === true)
|
|
157
276
|
continue;
|
|
277
|
+
const chainLane = planned.lane.chain !== undefined;
|
|
158
278
|
const ctx = {
|
|
159
|
-
|
|
279
|
+
coin: chart.coin,
|
|
280
|
+
exchange: chart.exchange,
|
|
281
|
+
symbol: chart.symbol,
|
|
282
|
+
...category,
|
|
283
|
+
intervalMs: chart.intervalMs,
|
|
160
284
|
inputName: planned.inputName,
|
|
161
285
|
sourceClass: planned.lane.sourceClass,
|
|
162
286
|
indexMode: indexModeChart,
|
|
163
287
|
cryptoVenue,
|
|
164
|
-
// The run's OPRA facts reach the plan of a lane that reads OPRA (`opra
|
|
165
|
-
// every other lane's context is as it always
|
|
166
|
-
|
|
288
|
+
// The run's OPRA facts reach the plan of a lane that reads OPRA (`opra`) or may (a `chain` lane: its chain
|
|
289
|
+
// decision's `auto` reads them), the lanes the decision concerns; every other lane's context is as it always
|
|
290
|
+
// was. Absent reads closed.
|
|
291
|
+
...(run !== undefined && (planned.lane.opra === true || chainLane)
|
|
167
292
|
? { official: run.official === true, opraUserScripts: run.opraUserScripts === true }
|
|
168
293
|
: {}),
|
|
294
|
+
...(chainLane ? { runScope, opraPlane: plane.onPlane } : {}),
|
|
169
295
|
};
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
entry.inputNames.push(planned.inputName);
|
|
201
|
-
entry.details = `${entry.details}\n${details}`;
|
|
202
|
-
}
|
|
203
|
-
continue;
|
|
204
|
-
}
|
|
205
|
-
refuseWrunPollInput(ctx, reason, stop !== undefined
|
|
206
|
-
? wrunOptionsStopSeed(stop, { severity: 'paused' })
|
|
207
|
-
: {
|
|
208
|
-
cls: 'feed-missing',
|
|
209
|
-
variant: cryptoVenue === false ? 'crypto-only' : 'market-paused',
|
|
210
|
-
params: { feed: planned.lane.laneKey },
|
|
211
|
-
severity: 'paused',
|
|
212
|
-
});
|
|
296
|
+
const unserved = {
|
|
297
|
+
inputName: planned.inputName,
|
|
298
|
+
sourceClass: planned.lane.sourceClass,
|
|
299
|
+
feed: planned.lane.laneKey,
|
|
300
|
+
missing: planned.source.missing,
|
|
301
|
+
};
|
|
302
|
+
// A chain lane meets the OPRA wall where the chart's options list on OPRA, and stops before its chain is resolved
|
|
303
|
+
// where a known stop keeps them off the plane (`wrunChainLaneStop`, the row lanes' one rule); any other lane is
|
|
304
|
+
// served by its own plane and the chart's mode. An input the chart does not serve meets the one rule both planners
|
|
305
|
+
// keep (`wrunUnservedLaneInput`: a declared fill drops it with a note, any other refuses by name).
|
|
306
|
+
const why = chainLane
|
|
307
|
+
? wrunChainLaneStop(plane, run, ctx)
|
|
308
|
+
: wrunPollLaneUnserved(planned.lane, plane, indexModeChart, run, ctx);
|
|
309
|
+
if (why !== undefined) {
|
|
310
|
+
wrunUnservedLaneInput(missing, unserved, WRUN_POLL_LANE_UNSERVED_FILLS, why, cryptoVenue);
|
|
311
|
+
continue;
|
|
312
|
+
}
|
|
313
|
+
let answered;
|
|
314
|
+
try {
|
|
315
|
+
answered = await planned.lane.plan(planned.source, ctx);
|
|
316
|
+
}
|
|
317
|
+
catch (error) {
|
|
318
|
+
// A chart with no option chain does not serve the feed (`wrunLaneNoChainRefusal`): the same one rule.
|
|
319
|
+
if (!wrunLaneNoChainRefusal(error))
|
|
320
|
+
throw error;
|
|
321
|
+
wrunUnservedLaneInput(missing, unserved, WRUN_POLL_LANE_UNSERVED_FILLS, { noChain: error }, cryptoVenue);
|
|
322
|
+
continue;
|
|
213
323
|
}
|
|
214
|
-
const answered = await planned.lane.plan(planned.source, ctx);
|
|
215
324
|
const extras = {};
|
|
216
325
|
for (const [key, value] of Object.entries(answered ?? {}))
|
|
217
326
|
if (value !== undefined)
|
|
218
327
|
extras[key] = value;
|
|
328
|
+
// A chain instance meets its own plane's wall, by the exchange its chain lists on.
|
|
329
|
+
if (chainLane) {
|
|
330
|
+
assertWrunLaneChainPlaneReadable(wrunPollLaneChainPlane(planned.lane, extras), wrunPollLaneChainExchange(planned.lane, extras), run, ctx);
|
|
331
|
+
}
|
|
219
332
|
const key = wrunPollLaneInstanceKey(planned.lane.laneKey, extras);
|
|
220
333
|
let instance = instances.get(key);
|
|
221
334
|
if (instance === undefined) {
|
|
@@ -238,6 +351,75 @@ export async function planWrunPollLanes(metadata, chart, isIndexModeExchange = (
|
|
|
238
351
|
export async function planWrunPollLaneInstances(metadata, chart, isIndexModeExchange, isCryptoVenueExchange, run) {
|
|
239
352
|
return (await planWrunPollLanes(metadata, chart, isIndexModeExchange, isCryptoVenueExchange, run)).lanes;
|
|
240
353
|
}
|
|
354
|
+
// ---------------------------------------------------------------------------
|
|
355
|
+
// A chain lane's plane per instance (`WrunPollLane.chain`, the row lanes' mark): the run's and the live tick's rule
|
|
356
|
+
// ---------------------------------------------------------------------------
|
|
357
|
+
/** The record seed of the CME display wall on a chain instance's CME chain (the display wall's own record). */
|
|
358
|
+
const WRUN_CME_WALL_SEED = Object.freeze({ cls: 'cme-wall' });
|
|
359
|
+
/**
|
|
360
|
+
* A chain instance against its own plane's wall, by the plane and the exchange its chain lists on: an OPRA chain the
|
|
361
|
+
* OPRA wall (`mayReadOpra`), a CME chain the CME display wall (OpenMarket's own packages only, the run door's rule on
|
|
362
|
+
* a CME chart, kscript-venue-policy.util; the `opra-user-scripts` flag never opens it), a crypto chain (`plain`)
|
|
363
|
+
* none. The row lanes keep the same rule (wrun-row-lanes.util), in the same words.
|
|
364
|
+
*/
|
|
365
|
+
export function assertWrunLaneChainPlaneReadable(plane, exchange, run, ctx) {
|
|
366
|
+
if (plane === 'opra')
|
|
367
|
+
assertWrunOpraLaneReadable(run, ctx);
|
|
368
|
+
if (plane === 'cme' && run?.official !== true) {
|
|
369
|
+
refuseWrunPollInput(ctx, `reads CME options data (${exchange}), which is open to OpenMarket's own Indicators only: a package you wrote ` +
|
|
370
|
+
'or added from the community cannot read it yet', WRUN_CME_WALL_SEED);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
/** The exchange a chain-lane instance's chain lists on (the payload field its `chain` names); '' for any other lane
|
|
374
|
+
* or a payload naming none. */
|
|
375
|
+
export function wrunPollLaneChainExchange(lane, extras) {
|
|
376
|
+
const exchange = lane.chain === undefined ? undefined : extras[lane.chain.exchangeField];
|
|
377
|
+
return typeof exchange === 'string' ? exchange : '';
|
|
378
|
+
}
|
|
379
|
+
/** The plane a chain-lane instance reads, by its chain's exchange (`wrunLaneChainPlaneOf`, off the governed exchange
|
|
380
|
+
* sets); undefined for any other lane (its plane, if any, is its descriptor's `opra`). */
|
|
381
|
+
export function wrunPollLaneChainPlane(lane, extras) {
|
|
382
|
+
return lane.chain === undefined ? undefined : wrunLaneChainPlaneOf(wrunPollLaneChainExchange(lane, extras));
|
|
383
|
+
}
|
|
384
|
+
/** Whether one poll-lane instance reads the OPRA plane (the provenance stamp and the legend note follow it): every
|
|
385
|
+
* instance of an `opra` lane, a chain lane's whose chain lists on OPRA. */
|
|
386
|
+
export function wrunPollLaneInstanceReadsOpra(lane, extras) {
|
|
387
|
+
return lane.opra === true || wrunPollLaneChainPlane(lane, extras) === 'opra';
|
|
388
|
+
}
|
|
389
|
+
/** The governed exchange a chain-lane instance reads beside its chart's own market (the exchange its served access,
|
|
390
|
+
* and so its delayed window and its gate session, is read under): its chain's when a gate governs it (OPRA, a CME
|
|
391
|
+
* Group exchange); null for a crypto chain and for any other lane. */
|
|
392
|
+
export function wrunPollLaneChainGovernedExchange(lane, extras) {
|
|
393
|
+
const plane = wrunPollLaneChainPlane(lane, extras);
|
|
394
|
+
return plane === 'opra' || plane === 'cme' ? wrunPollLaneChainExchange(lane, extras) : null;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* A chain instance's ask (the full run's and the reconcile's, re-read on every ask): its payload with the fields its
|
|
398
|
+
* plane names beside it. An OPRA chain names the plane and its routed tier (`wrunOpraLanePayloadFields`: Door C judges
|
|
399
|
+
* it an OPRA ask, the legend names a delayed tier); a CME chain its routed tier alone (`servedTier`, so no source cache
|
|
400
|
+
* serves one tier's rows to the other; the chart's own badge names the delay); a crypto chain nothing. Any other
|
|
401
|
+
* lane's payload as it is. `tierOf` is the routing's rule (governed-route.util `governedMarketDataTier`), handed in so
|
|
402
|
+
* this module stays off the routing graph, and asked only for a governed exchange: it answers delayed for any
|
|
403
|
+
* exchange no gate governs.
|
|
404
|
+
*/
|
|
405
|
+
export function wrunPollLaneChainAsk(lane, extras, tierOf) {
|
|
406
|
+
const plane = wrunPollLaneChainPlane(lane, extras);
|
|
407
|
+
if (plane !== 'opra' && plane !== 'cme')
|
|
408
|
+
return extras;
|
|
409
|
+
const servedTier = tierOf(wrunPollLaneChainExchange(lane, extras));
|
|
410
|
+
return plane === 'opra' ? { ...extras, ...wrunOpraLanePayloadFields(servedTier) } : { ...extras, servedTier };
|
|
411
|
+
}
|
|
412
|
+
/** The first poll-lane instance of a session whose acquisition moved since the run planned it (its lane's
|
|
413
|
+
* `acquisitionMoved` over the run's record of it, else over the instance's payload), or undefined: the live tick
|
|
414
|
+
* rebuilds the session then, as for a row lane's (wrun-row-lanes.util `wrunRowLaneMovedInstance`). */
|
|
415
|
+
export function wrunPollLaneMovedInstance(instances, acquisition) {
|
|
416
|
+
for (const instance of instances ?? []) {
|
|
417
|
+
const moved = wrunPollLaneByKey(instance.laneKey)?.acquisitionMoved;
|
|
418
|
+
if (moved !== undefined && moved(acquisition[instance.key] ?? instance.extras))
|
|
419
|
+
return instance.key;
|
|
420
|
+
}
|
|
421
|
+
return undefined;
|
|
422
|
+
}
|
|
241
423
|
/**
|
|
242
424
|
* Whether a lane must answer rows for the package: true when any input reading it (`reads`)
|
|
243
425
|
* rides the default carry policy (an absent series has nothing to carry, so an empty lane
|
|
@@ -235,14 +235,6 @@ export interface WrunRowLaneDescriptor {
|
|
|
235
235
|
* per-input projection is applied as it is. Absent: the last column is the `present` mask.
|
|
236
236
|
*/
|
|
237
237
|
presentMask?: false;
|
|
238
|
-
/**
|
|
239
|
-
* `'empty'` (a `governed` lane only): on a chart whose options do not ride the lane's plane, every input still
|
|
240
|
-
* runs the lane's identity and facets (their refusals by name) and the one-acquisition rule, then reads an EMPTY
|
|
241
|
-
* block on every bar with no fetch, no OPRA wall and no note (om's `option_strikes`: a chain the venue word
|
|
242
|
-
* resolves off the OPRA plane has no strike rows). Absent: off the plane an input refuses by name, or reads its
|
|
243
|
-
* empty block with a feed-missing note when it declares `missing: "empty"`.
|
|
244
|
-
*/
|
|
245
|
-
offPlane?: 'empty';
|
|
246
238
|
/** One input's projection of a bar's tuples (its own `expiries` word over a lane two inputs share, a field
|
|
247
239
|
* selection, a cut to the input's own `max_cells`): applied per input per bar, never refetching. Absent: the
|
|
248
240
|
* bar's tuples as they are. */
|
|
@@ -25,7 +25,7 @@ import type { WrunIndicatorMetadata, WrunInputSource } from '../../../interfaces
|
|
|
25
25
|
import type { LiveBucketVenue } from '../../chart/live-bucket.util.js';
|
|
26
26
|
import type { OpraReadFacts } from '../../chart/opra-read-access.leaf.js';
|
|
27
27
|
import type { OpraOptionPlaneStop } from '../../../host-ports.types.js';
|
|
28
|
-
import {
|
|
28
|
+
import type { WrunPollLaneFetchAsk } from './wrun-poll-lane.types.js';
|
|
29
29
|
import { type WrunLaneChainPlane, type WrunRowLaneCellInput, type WrunRowLaneDescriptor, type WrunRowLaneHorizon, type WrunRowLaneId, type WrunRowLaneInstance, type WrunRowLaneRowBudget } from './wrun-row-lane.types.js';
|
|
30
30
|
import type { WrunMissingFeed } from '../wrun-run-health.util.js';
|
|
31
31
|
import { type WrunHostGridAsk } from '../wrun-tier-grid.util.js';
|
|
@@ -81,36 +81,38 @@ export interface WrunRowLanePlan {
|
|
|
81
81
|
* 0. an input the market leaves undemanded (its `needed_by` leaves the market out, wrunSheetWithLaneDemand) is planned
|
|
82
82
|
* nowhere: no wall, no admission, no acquisition, no note; the row builder reads its empty block on every bar;
|
|
83
83
|
* 1. the OPRA wall: an input of a `governed: 'opra'` lane is refused for a run that may not read OPRA
|
|
84
|
-
* (`opra-official-only:<class>`, `mayReadOpra` over `run`; absent reads closed)
|
|
84
|
+
* (`opra-official-only:<class>`, `mayReadOpra` over `run`; absent reads closed), and so is an input of a chain lane
|
|
85
|
+
* on a chart whose options list on OPRA (riding the plane or stopped off it), before its chain is resolved;
|
|
85
86
|
* 2. the admission: a governed OPRA lane is served where the chart's options ride the OPRA plane
|
|
86
|
-
* (`isOpraPlaneExchange`) and nowhere else; a chain lane on every chart
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* the
|
|
92
|
-
*
|
|
93
|
-
* acquisition rule judged as anywhere, and then no instance (every input reads its empty block);
|
|
87
|
+
* (`isOpraPlaneExchange`) and nowhere else; a chain lane on every chart no known stop keeps its options off the
|
|
88
|
+
* plane on (`wrunChainLaneStop`, the chain poll lanes' one rule: no chain is resolved past the stop); any other lane
|
|
89
|
+
* wherever the chart is not index-mode. An input the chart does not serve meets the one rule both planners keep
|
|
90
|
+
* (wrun-poll-lanes.util `wrunUnservedLaneInput`): declaring `missing: "empty"` it is dropped (its blocks read EMPTY,
|
|
91
|
+
* a note names the feed), any other refuses by name, seeded feed-missing (paused); a lane off the plane for a known
|
|
92
|
+
* reason (`opraPlaneStop`: the `opra` flag dark, an index chart) says that reason instead (`options-stopped`, the
|
|
93
|
+
* note and the refusal alike);
|
|
94
94
|
* 3. the lane's identity, once per lane (the first admitted input's context names a refusal), then the input's
|
|
95
95
|
* facets (awaited, in declaration order); the instance is the identity and the facets together. A lane with
|
|
96
|
-
* `acquisitions: 'one'` refuses a second input whose acquisition differs (one fetch, one live fold per package).
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
96
|
+
* `acquisitions: 'one'` refuses a second input whose acquisition differs (one fetch, one live fold per package). A
|
|
97
|
+
* chart with no option chain (an identity or facets refusal seeded `no-options` / `chain`, `wrunLaneNoChainRefusal`:
|
|
98
|
+
* a LINK perp, a forex pair) does not serve the feed either: the same one rule, its note naming the feed with the
|
|
99
|
+
* chain decision's words, its refusal the decision's own. A chain lane's instance then meets its own plane's wall
|
|
100
|
+
* (`assertWrunLaneChainPlaneReadable`, the one rule a chain poll lane meets too): OPRA's, or the CME display wall
|
|
101
|
+
* (OpenMarket's own packages only); a plain chain (a crypto venue) none.
|
|
100
102
|
*/
|
|
101
103
|
export declare function planWrunRowLanes(metadata: WrunIndicatorMetadata, chart: WrunRowLaneChart, run?: OpraReadFacts): Promise<WrunRowLanePlan>;
|
|
102
104
|
/** The exchange a chain-lane instance's chain lists on (the payload field its `chain` names); '' for any other lane
|
|
103
|
-
* or a payload naming none. */
|
|
105
|
+
* or a payload naming none. The chain poll lanes' one rule (`wrunPollLaneChainExchange`: the mark is the same). */
|
|
104
106
|
export declare function wrunRowLaneChainExchange(lane: Pick<WrunRowLaneDescriptor, 'chain'>, extras: Readonly<Record<string, unknown>>): string;
|
|
105
|
-
/** The plane a chain-lane instance reads, by its chain's exchange (`
|
|
106
|
-
* lane (its plane, if any, is its descriptor's `governed`). */
|
|
107
|
+
/** The plane a chain-lane instance reads, by its chain's exchange (`wrunPollLaneChainPlane`, the chain poll lanes' one
|
|
108
|
+
* rule over `wrunLaneChainPlaneOf`); undefined for any other lane (its plane, if any, is its descriptor's `governed`). */
|
|
107
109
|
export declare function wrunRowLaneChainPlane(lane: Pick<WrunRowLaneDescriptor, 'chain'>, extras: Readonly<Record<string, unknown>>): WrunLaneChainPlane | undefined;
|
|
108
110
|
/** Whether one row-lane instance reads the OPRA plane (the provenance stamp follows it): every instance of a governed
|
|
109
111
|
* lane, a chain lane's whose chain lists on OPRA. */
|
|
110
112
|
export declare function wrunRowLaneInstanceReadsOpra(lane: Pick<WrunRowLaneDescriptor, 'governed' | 'chain'>, extras: Readonly<Record<string, unknown>>): boolean;
|
|
111
113
|
/** The governed exchange a chain-lane instance reads beside its chart's own market (the exchange its served access,
|
|
112
114
|
* and so its delayed window, is read under): its chain's when a gate governs it (OPRA, a CME Group exchange); null
|
|
113
|
-
* for a plain chain and for any other lane. */
|
|
115
|
+
* for a plain chain and for any other lane. The chain poll lanes' one rule (`wrunPollLaneChainGovernedExchange`). */
|
|
114
116
|
export declare function wrunRowLaneChainGovernedExchange(lane: Pick<WrunRowLaneDescriptor, 'chain'>, extras: Readonly<Record<string, unknown>>): string | null;
|
|
115
117
|
/** The first row-lane instance of a session whose acquisition moved since the run planned it (its lane's
|
|
116
118
|
* `acquisitionMoved` over the run's record of it, else over the instance's payload), or undefined: the live tick
|
|
@@ -118,12 +120,12 @@ export declare function wrunRowLaneChainGovernedExchange(lane: Pick<WrunRowLaneD
|
|
|
118
120
|
export declare function wrunRowLaneMovedInstance(instances: ReadonlyArray<Pick<WrunRowLaneInstance, 'key' | 'laneKey' | 'extras'>> | undefined, acquisition: Readonly<Partial<Record<WrunRowLaneId, Readonly<Record<string, unknown>>>>>): WrunRowLaneId | undefined;
|
|
119
121
|
/**
|
|
120
122
|
* A chain instance's ask (the full run's and the reconcile's, re-read on every ask): its payload with the fields its
|
|
121
|
-
* plane names beside it
|
|
122
|
-
* it an OPRA ask, the legend names a delayed tier); a CME chain its routed tier alone
|
|
123
|
-
* serves one tier's rows to the other; the chart's own badge names the delay); a
|
|
124
|
-
* Any other lane's payload as it is. `tierOf` is the routing's rule
|
|
125
|
-
* handed in so this module stays off the routing graph, and asked only
|
|
126
|
-
* for any exchange no gate governs.
|
|
123
|
+
* plane names beside it, by the chain poll lanes' one rule (`wrunPollLaneChainAsk`): an OPRA chain names the plane and
|
|
124
|
+
* its routed tier (Door C judges it an OPRA ask, the legend names a delayed tier); a CME chain its routed tier alone
|
|
125
|
+
* (`servedTier`, so no source cache serves one tier's rows to the other; the chart's own badge names the delay); a
|
|
126
|
+
* plain chain (a crypto venue) nothing. Any other lane's payload as it is. `tierOf` is the routing's rule
|
|
127
|
+
* (governed-route.util `governedMarketDataTier`), handed in so this module stays off the routing graph, and asked only
|
|
128
|
+
* for a governed exchange: it answers delayed for any exchange no gate governs.
|
|
127
129
|
*/
|
|
128
130
|
export declare function wrunRowLaneChainAsk(lane: Pick<WrunRowLaneDescriptor, 'chain'>, extras: Readonly<Record<string, unknown>>, tierOf: (exchange: string) => 'realtime' | 'delayed'): Readonly<Record<string, unknown>>;
|
|
129
131
|
/** How an empty answer reads for a lane: quiet (present EMPTY blocks) or degrading (a state lane's). */
|