@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
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Peers, pinned exactly (install them beside the package):
|
|
|
10
10
|
|
|
11
11
|
| Peer | Version | Why |
|
|
12
12
|
| --- | --- | --- |
|
|
13
|
-
| `@orangecharts/indicator-kit` | 0.
|
|
13
|
+
| `@orangecharts/indicator-kit` | 0.87.0 | the shared host's types (`@orangecharts/indicator-kit/host`); the host module itself comes through the env |
|
|
14
14
|
| `@orangecharts/orange-v2-pb-common` | 12.69.0 | the protocol enums the lanes, pins and venue rules read (`Exchange`, `Type`, `Category`), from 0.3.0 |
|
|
15
15
|
| `dayjs` | 1.11.23 | sessions and trading days (the `utc`, `timezone`, `isoWeek` and `quarterOfYear` plugins) |
|
|
16
16
|
| `lodash-es` | 4.18.1 | the color settings and the transforms, by per-function subpath |
|
|
@@ -26,8 +26,12 @@ At 0.3.0, 26 modules are reachable by subpath only (an export name of theirs res
|
|
|
26
26
|
entry): the lane files (each exports `lane`, `lanes` or `rowLane`), `utility/chart/om-widget.util`,
|
|
27
27
|
`utility/wrun/wrun-frames`, `utility/wrun/wrun-pane-format.util` and `utility/wrun/wrun-style-words.util` among them.
|
|
28
28
|
At 0.4.0, 27: the panel mount `utility/wrun/wrun-panel-mount.util` joins them (its `retranslateWrunChildOverlays` and
|
|
29
|
-
`cutWrunBatchedChildRecords` are its door's names too; the entry serves the door's).
|
|
30
|
-
|
|
29
|
+
`cutWrunBatchedChildRecords` are its door's names too; the entry serves the door's). At 0.5.0, 33: the lifecycle door
|
|
30
|
+
`utility/wrun/wrun-overlay-lifecycle.lazy`, the run pass `utility/wrun/wrun-overlay-run.util`, `replay/replayLadder`,
|
|
31
|
+
`utility/market-events/market-events.util` and `utility/wrun/wrun-overlay-identity.util` join them. The entry served
|
|
32
|
+
the last one at 0.4.0: from 0.5.0 its `isWrunDraftOverlaySettings` is the draft overlay module's (a draft ref, or a
|
|
33
|
+
draft script id without a package ref), so import the identity module's names by its subpath. `src/index.ts` names
|
|
34
|
+
the modules it joins.
|
|
31
35
|
|
|
32
36
|
## The host env (ports)
|
|
33
37
|
|
|
@@ -65,8 +69,14 @@ setWrunChartHostEnv({
|
|
|
65
69
|
`diagnostics` members, 42 in all, 22 of them read by 0.3.0 modules; 0.4.0's panel mount reads the 12 reserved until
|
|
66
70
|
0.4.0 (the chart group and paint, the titan adapter's three, the paused paint, the packs, the plot gate notice, the
|
|
67
71
|
theme name, the display timezone and the door's `chart.loadPanelMountPorts`); a member a host has not adopted yet may
|
|
68
|
-
throw by name.
|
|
69
|
-
|
|
72
|
+
throw by name. 0.5.0 adds the phase 2 contract: 84 members and the `ui` and `engine` namespaces, which the live
|
|
73
|
+
session, the drivers, the engine and the executor read, and two optional members: `clock.watchHostSuspended` (a host
|
|
74
|
+
that parks its chart while the page stays visible reports it, and the package's visible deadlines pause) and
|
|
75
|
+
`chart.commonStore` (the go-to-date history flag the live tick reads in the caller's turn; without it every chart reads
|
|
76
|
+
as live). It retires the three `run` loaders: they are optional at 0.5.0 (the package loads the lifecycle door, the
|
|
77
|
+
refusal surface and the series stream itself), and 0.6.0 removes them with the `run` namespace: 131 members by the
|
|
78
|
+
contract's count (134 at 0.5.0), 133 in `host-env` with 0.5.0's two optional members. Their payload types and loader
|
|
79
|
+
views are `host-ports.types`. The guide lists every member, what reads it and what web binds it.
|
|
70
80
|
|
|
71
81
|
A read before the set throws `wrun_chart_host_env_unset`. The env lives on the realm's global object under
|
|
72
82
|
`Symbol.for('@orangecharts/wrun-chart-host/env')`, so every copy of the package in a realm reads the same one.
|
|
@@ -89,6 +99,8 @@ What each published version holds. A host installs a version with the peers of i
|
|
|
89
99
|
|
|
90
100
|
| Version | Peers | What changed |
|
|
91
101
|
| --- | --- | --- |
|
|
102
|
+
| 0.6.0 | `@orangecharts/indicator-kit` 0.87.0, `@orangecharts/orange-v2-pb-common` 12.69.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | The shared engine protocol: a module's bytes cross `postMessage` (the mobile app's portability rule) and the engine worker hashes them (`utility/wrun/wrun-sha256.leaf`), checks the sheet's pin, clamps, prepares and compiles them, caching up to 16 compiled modules per worker, so the main thread neither hashes nor compiles. `compileModule` becomes `loadModule`, which answers an opaque `WrunModuleHandle` (key, sha256, ABI, imports as `{ module, name }` pairs; no bytes); every full run and live-start carries the module's key, ABI and bytes (copied, never transferred), and the worker reuses its cached module or compiles the bytes on a miss, so a respawned worker compiles again. A request runs on two 20 s clocks, the start ceiling from the post (queue plus compile) and the run deadline from the worker's `running`; `loadModule` rejects a failed compile as a `WebAssembly.CompileError` with the worker's words and a pin mismatch with the words it had before 0.6.0. The `run` namespace goes with its three loaders (`run.loadOverlayLifecycleDoor`, `run.loadRefusalSurface`, `run.loadSeriesStream`, retired at 0.5.0), `WrunHostRun` and their three loader views in `host-ports.types`: 131 members by the contract's count, 133 with 0.5.0's two optional ones. Peers unchanged. |
|
|
103
|
+
| 0.5.0 | `@orangecharts/indicator-kit` 0.87.0, `@orangecharts/orange-v2-pb-common` 12.69.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Phase 2: the live session (the live tick, intake, hidden-tab hold, coin lane live channels, series stream), the drivers and the heal ladder (the lifecycle door, `utility/wrun/wrun-overlay-lifecycle.lazy` by subpath, its runtime and the recovery ladders), the prefix runs, the engine (`workers/wrun/wrun-abi-host`, `workers/wrun/wrun-engine-handler`, the browser host), the host facts and the executor (`utility/wrun/wrun-overlay-run.util`, by subpath) with its row sources: 135 modules, 398 in all. The env gains the 84 phase 2 members, the `ui` and `engine` namespaces and the optional `clock.watchHostSuspended` and `chart.commonStore`; the three `run` loaders turn optional (gone at 0.6.0). The panel mount reads a host's planned pane heights on every cell and retranslates an unchanged child in place, keeping a reader's expanded pane through a retire. The entry no longer serves `utility/wrun/wrun-overlay-identity.util` (by subpath; above). The kit peer moves from 0.86.3 to 0.87.0 (`option_multiplier`); the other peers are unchanged. |
|
|
92
104
|
| 0.4.0 | `@orangecharts/indicator-kit` 0.86.3, `@orangecharts/orange-v2-pb-common` 12.69.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Phase 1b: the panel mount (`utility/wrun/wrun-panel-mount.util`, by subpath) and its door (`utility/wrun/wrun-panel-mount.lazy`), the run interval rules (`utility/chart/indicator-run-interval.util`) with the builtin script snippets they type against, the pause dim and six leaves (the window owner and window geometry rules, the date-labelled interval rule, the HTML escape, the run interval projection and plot gate types): 11 modules, 262 in all. The mount reads the host through the env: the 12 members reserved until 0.4.0, `t` and `diagnostics.debug`. Peers unchanged. |
|
|
93
105
|
| 0.3.0 | `@orangecharts/indicator-kit` 0.86.3, `@orangecharts/orange-v2-pb-common` 12.69.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Three programs ship together. The settings templates: the nested entry `@orangecharts/wrun-chart-host/settings-templates`, one declared settings schema for every template (`TEMPLATE_SCHEMA_VERSION` 2). The phase 1 host contract: 42 env members (`host-env`) with their payload types and loader views (`host-ports.types`), 22 read by 0.3.0 modules, the rest reserved. Phase 1a's move: the lane layer (both lane registries, read through generated indexes, the lane files and planners), the row builder, legs and pins, the cloud row source and the main-grid stages, with what they read: 142 modules, 250 in all. The kit peer moves from 0.80.0 to 0.86.3 (leg streams and per-span levels) and the protocol enums package joins the peers. |
|
|
94
106
|
| 0.2.0 | `@orangecharts/indicator-kit` 0.80.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | The kit peer moves from 0.78.1 to 0.80.0. Three modules join, 101 in all: `utility/wrun/wrun-symbol-code.util` (the symbol codec of the options source classes), `utility/wrun/wrun-row-market.util` (the market a table row or feed line is about) and `utility/wrun/wrun-failure-cause` (why a run failed, as one closed word). The 12 package commits since 0.1.0, listed below. Lodash by subpath: the color settings import `lodash-es/isEqual`, never the `lodash-es` root, so a bundler that does not shake trees keeps one lodash module, not the library (`tests/packages/wrun-chart-host/lodash-subpath.spec.ts` refuses a root import in the package). |
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A venue's short display name (a leaf of constants/exchangeConstants.constants.ts; P2/inventory.md section 1.1):
|
|
3
|
+
* `formatEnhancedExchangeName`, the name the chart header writes for a prediction market (HYPERLIQUID_HIP4 reads
|
|
4
|
+
* "HL HIP4") and the venue pickers group by. The old module also loads the venue icons (bundler assets), the legend
|
|
5
|
+
* tooltip and the HTML escaper, which keep it out of the chart-host package; this leaf imports nothing and moves
|
|
6
|
+
* with the phase 2 closure. The old module imports it back and re-exports it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatEnhancedExchangeName(exchange: string): string;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A venue's short display name (a leaf of constants/exchangeConstants.constants.ts; P2/inventory.md section 1.1):
|
|
3
|
+
* `formatEnhancedExchangeName`, the name the chart header writes for a prediction market (HYPERLIQUID_HIP4 reads
|
|
4
|
+
* "HL HIP4") and the venue pickers group by. The old module also loads the venue icons (bundler assets), the legend
|
|
5
|
+
* tooltip and the HTML escaper, which keep it out of the chart-host package; this leaf imports nothing and moves
|
|
6
|
+
* with the phase 2 closure. The old module imports it back and re-exports it.
|
|
7
|
+
*/
|
|
8
|
+
export function formatEnhancedExchangeName(exchange) {
|
|
9
|
+
if (exchange.toUpperCase() === 'SOLANA_ONCHAIN')
|
|
10
|
+
return 'Solana';
|
|
11
|
+
// The options feed's name is an acronym (Options Price Reporting Authority), never "Opra".
|
|
12
|
+
if (exchange.toUpperCase() === 'OPRA')
|
|
13
|
+
return 'OPRA';
|
|
14
|
+
// HIP3 exchange mapping
|
|
15
|
+
if (exchange.toLowerCase() === 'hyperliquid_hip3') {
|
|
16
|
+
return 'HL HIP3';
|
|
17
|
+
}
|
|
18
|
+
if (exchange.toLowerCase() === 'hyperliquid_hip4') {
|
|
19
|
+
return 'HL HIP4';
|
|
20
|
+
}
|
|
21
|
+
// Forex/Commodity exchange mappings
|
|
22
|
+
if (exchange.toLowerCase() === 'fx_otc') {
|
|
23
|
+
return 'FX OTC';
|
|
24
|
+
}
|
|
25
|
+
if (exchange.toLowerCase() === 'platts') {
|
|
26
|
+
return 'Platts';
|
|
27
|
+
}
|
|
28
|
+
if (exchange.toLowerCase().includes('okex')) {
|
|
29
|
+
exchange = exchange.toLowerCase().replace('okex', 'okx');
|
|
30
|
+
}
|
|
31
|
+
if (exchange.toLowerCase() === 'okx_swap' || exchange.toLowerCase() === 'okx_futures') {
|
|
32
|
+
return 'OKX Futs';
|
|
33
|
+
}
|
|
34
|
+
if (exchange.toLowerCase().includes('okx') && !exchange.toLowerCase().includes('opt')) {
|
|
35
|
+
const parts = exchange.split('_');
|
|
36
|
+
for (let i = 0; i < parts.length; i++) {
|
|
37
|
+
if (parts[i].toLowerCase() === 'okx') {
|
|
38
|
+
parts[i] = 'OKX';
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exchange = parts.join('_');
|
|
42
|
+
}
|
|
43
|
+
if (exchange.toLowerCase() === 'gate_io') {
|
|
44
|
+
return 'Gate.io';
|
|
45
|
+
}
|
|
46
|
+
if (exchange.toLowerCase().includes('gate') &&
|
|
47
|
+
exchange.toLowerCase().includes('io') &&
|
|
48
|
+
(exchange.toLowerCase().includes('futures') || exchange.toLowerCase().includes('futs'))) {
|
|
49
|
+
return 'Gate.io Futs';
|
|
50
|
+
}
|
|
51
|
+
if (exchange.toLowerCase() === 'bybit' || exchange.toLowerCase().includes('bybit_')) {
|
|
52
|
+
if (exchange.toLowerCase() === 'bybit') {
|
|
53
|
+
return 'Bybit Futs';
|
|
54
|
+
}
|
|
55
|
+
else if (exchange.toLowerCase() === 'bybit_spot') {
|
|
56
|
+
return 'Bybit';
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (exchange.toLowerCase() === 'bitfinex_derivatives' || exchange.toLowerCase() === 'bitfinex_der') {
|
|
60
|
+
return 'Bitfinex Futs';
|
|
61
|
+
}
|
|
62
|
+
if (exchange.toLowerCase() === 'bitmex') {
|
|
63
|
+
return 'Bitmex Futs';
|
|
64
|
+
}
|
|
65
|
+
if (exchange.toLowerCase() === 'deribit') {
|
|
66
|
+
return 'Deribit Futs';
|
|
67
|
+
}
|
|
68
|
+
const formattedName = exchange
|
|
69
|
+
.split('_')
|
|
70
|
+
.map((word) => {
|
|
71
|
+
if (word.toLowerCase() === 'futures') {
|
|
72
|
+
return 'Futs';
|
|
73
|
+
}
|
|
74
|
+
if (word.toLowerCase() === 'derivatives') {
|
|
75
|
+
return 'Der';
|
|
76
|
+
}
|
|
77
|
+
if (word.toLowerCase() === 'options') {
|
|
78
|
+
return 'Opts';
|
|
79
|
+
}
|
|
80
|
+
if (word.toLowerCase() === 'okx') {
|
|
81
|
+
return 'OKX';
|
|
82
|
+
}
|
|
83
|
+
if (word.toLowerCase() === 'gate' && exchange.toLowerCase().includes('io')) {
|
|
84
|
+
return 'Gate';
|
|
85
|
+
}
|
|
86
|
+
if (word.toLowerCase() === 'io' && exchange.toLowerCase().includes('gate')) {
|
|
87
|
+
return '.io';
|
|
88
|
+
}
|
|
89
|
+
return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
|
|
90
|
+
})
|
|
91
|
+
.join(' ')
|
|
92
|
+
.trim();
|
|
93
|
+
let result = formattedName.replace('Gate .io', 'Gate.io');
|
|
94
|
+
if (result === 'Gate.io' &&
|
|
95
|
+
(exchange.toLowerCase().includes('futures') ||
|
|
96
|
+
exchange.toLowerCase().includes('futs') ||
|
|
97
|
+
exchange.toLowerCase().includes('swap'))) {
|
|
98
|
+
result = 'Gate.io Futs';
|
|
99
|
+
}
|
|
100
|
+
return result;
|
|
101
|
+
}
|
|
@@ -40,8 +40,13 @@ export const FeatureFlag = {
|
|
|
40
40
|
// paper"). Rides this key, read through `isOn` (`isPaperTradingOn`):
|
|
41
41
|
// unminted, absent and guest all read off, so production ships it dark; an internal role reads it
|
|
42
42
|
// on through the server's bypass, the dev/internal localStorage override lights it locally
|
|
43
|
-
// (`kiyo.flag-overrides` -> `{"paper-trading": true}`). Mint it enabled to open it up. The
|
|
44
|
-
//
|
|
43
|
+
// (`kiyo.flag-overrides` -> `{"paper-trading": true}`). Mint it enabled to open it up. The same
|
|
44
|
+
// key also lights the three exchange venues launched dark (docs/features/cex-execution/README.md,
|
|
45
|
+
// "Dark launch, entities, passphrase"): OKX, Deribit, and Coinbase derivatives (the Deribit engine
|
|
46
|
+
// for non-US accounts), their discovery and new linking, read through `isOn` by `isCexVenueFlagOn`.
|
|
47
|
+
// A key this browser already holds for one of them keeps trading after the flag turns off. The
|
|
48
|
+
// build switch `PAPER_TRADING_ENABLED` takes only the paper venue out of a build, never the
|
|
49
|
+
// exchange venues.
|
|
45
50
|
PaperTrading: 'paper-trading',
|
|
46
51
|
// The trading hub (docs/features/trading-hub/README.md): one Trade door beside the avatar that
|
|
47
52
|
// folds the desktop's linking, accounts and trade settings into one dialog. Rides the master
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kScript data sources' interval restrictions (a constants module cut from constants/indicator.constants.ts;
|
|
3
|
+
* P2/inventory.md section 1.1): the rows the chart's fetch gate refuses a kScript data source on, which the wrun
|
|
4
|
+
* executor's tape check reads through `isKScriptDataRestrictedForInterval`
|
|
5
|
+
* (utility/chart/kscript-data-interval-restriction.leaf.ts).
|
|
6
|
+
* Constants only, no imports, so it moves into the chart-host package with the phase 2 closure; the indicator constants
|
|
7
|
+
* import and re-export every name. Each table is a `const` of a read-only type over a literal, never written (the
|
|
8
|
+
* phase 2 leaf-state guard's immutable form).
|
|
9
|
+
*/
|
|
10
|
+
export interface IndicatorIntervalRestrictions {
|
|
11
|
+
[interval: string]: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare const ALLOWED_1S_INDICATORS: readonly string[];
|
|
14
|
+
export declare const KSCRIPT_DATA_INTERVAL_RESTRICTIONS: Readonly<IndicatorIntervalRestrictions>;
|
|
15
|
+
export declare const ROLLED_INTERVAL_RESTRICTED_KSCRIPT_DATA: readonly string[];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kScript data sources' interval restrictions (a constants module cut from constants/indicator.constants.ts;
|
|
3
|
+
* P2/inventory.md section 1.1): the rows the chart's fetch gate refuses a kScript data source on, which the wrun
|
|
4
|
+
* executor's tape check reads through `isKScriptDataRestrictedForInterval`
|
|
5
|
+
* (utility/chart/kscript-data-interval-restriction.leaf.ts).
|
|
6
|
+
* Constants only, no imports, so it moves into the chart-host package with the phase 2 closure; the indicator constants
|
|
7
|
+
* import and re-export every name. Each table is a `const` of a read-only type over a literal, never written (the
|
|
8
|
+
* phase 2 leaf-state guard's immutable form).
|
|
9
|
+
*/
|
|
10
|
+
export const ALLOWED_1S_INDICATORS = [
|
|
11
|
+
'CUMULATIVE_VOLUME_DELTA',
|
|
12
|
+
// Tape mode's core layer: the 1s book history fetch rides the gateway's
|
|
13
|
+
// per-user 1s entitlement (un-entitled tokens get a silently empty
|
|
14
|
+
// backfill while live columns still paint from the live socket).
|
|
15
|
+
'ORDERBOOK_HEATMAP',
|
|
16
|
+
'VOLUME_DELTA',
|
|
17
|
+
'TECHNICAL_SCRIPT',
|
|
18
|
+
'VISIBLE_RANGE_VOLUME_PROFILE',
|
|
19
|
+
'SESSION_VOLUME_PROFILE',
|
|
20
|
+
'DEVELOPING_SESSION_PROFILE',
|
|
21
|
+
'DELTA_PROFILE',
|
|
22
|
+
'VOLUME_FOOTPRINT',
|
|
23
|
+
'HYPERLIQUID_ADDRESS',
|
|
24
|
+
// Weekly reports on a day aggregation whatever the interval (cftc-cot-request.util).
|
|
25
|
+
'CFTC_COT_NET_POSITION',
|
|
26
|
+
// Relay rows at their own timestamps on every interval (feed-interval.util).
|
|
27
|
+
'FEED',
|
|
28
|
+
];
|
|
29
|
+
export const KSCRIPT_DATA_INTERVAL_RESTRICTIONS = {
|
|
30
|
+
'1m': ['BINANCE_TREASURY_BALANCE', 'ETF_PREMIUM_RATE', 'ETF_FLOW', 'LONG_SHORT_RATIO'],
|
|
31
|
+
'5m': ['BINANCE_TREASURY_BALANCE', 'ETF_PREMIUM_RATE', 'ETF_FLOW'],
|
|
32
|
+
'15m': ['BINANCE_TREASURY_BALANCE', 'ETF_FLOW'],
|
|
33
|
+
'30m': ['BINANCE_TREASURY_BALANCE', 'ETF_FLOW'],
|
|
34
|
+
'1h': ['BINANCE_TREASURY_BALANCE', 'ETF_FLOW'],
|
|
35
|
+
'4h': ['BINANCE_TREASURY_BALANCE', 'ETF_FLOW'],
|
|
36
|
+
'1w': ['ETF_HOLDING', 'ETF_FLOW'],
|
|
37
|
+
};
|
|
38
|
+
// The kScript data twin rides the same ETF_PREMIUM_RATE_AGG request as the native indicator, which the gateway
|
|
39
|
+
// refuses at every rolled preset (indicator.constants.ts `ROLLED_INTERVAL_RESTRICTED_INDICATORS`).
|
|
40
|
+
export const ROLLED_INTERVAL_RESTRICTED_KSCRIPT_DATA = ['ETF_PREMIUM_RATE'];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OPRA compliance display strings. LEGALLY EXACT, English-only by contract: never localized, never
|
|
3
|
+
* reworded, never "typo-fixed", never duplicated. Each string exists exactly once in the app source
|
|
4
|
+
* (this module); surfaces import it, and a translated sentence that carries it takes it as a
|
|
5
|
+
* parameter, so no locale bundle ever holds it. Byte fidelity is pinned by
|
|
6
|
+
* tests/constants/opra-compliance.constants.spec.ts (SHA-256 + length + a source-wide
|
|
7
|
+
* single-occurrence scan). Any edit here is a legal event: it ships with a refreshed checksum and
|
|
8
|
+
* explicit sign-off, never inside a refactor.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* The delay notice. Source: the signed OPRA Vendor Agreement, Exhibit A section 14: the phrase must
|
|
12
|
+
* be conspicuously displayed on every screen that displays delayed OPRA data. Every surface showing
|
|
13
|
+
* OPRA numbers on the delayed tier carries it: the chain page subtitle, the chain's price pill, table
|
|
14
|
+
* marker, strike preview and index notice, the Flow Tape, the Terminal Options tab, the options
|
|
15
|
+
* overlay legends and the browser-run Indicator legend notes (option-venue-disclosure.util), the
|
|
16
|
+
* contract chart's delay chip and its card, the chart footer's source line, the watchlist panel and
|
|
17
|
+
* the watchlist cell tooltip, and the purchase page's live delayed price.
|
|
18
|
+
*/
|
|
19
|
+
export declare const OPRA_DELAY_NOTICE = "OPRA data delayed 15 minutes";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OPRA compliance display strings. LEGALLY EXACT, English-only by contract: never localized, never
|
|
3
|
+
* reworded, never "typo-fixed", never duplicated. Each string exists exactly once in the app source
|
|
4
|
+
* (this module); surfaces import it, and a translated sentence that carries it takes it as a
|
|
5
|
+
* parameter, so no locale bundle ever holds it. Byte fidelity is pinned by
|
|
6
|
+
* tests/constants/opra-compliance.constants.spec.ts (SHA-256 + length + a source-wide
|
|
7
|
+
* single-occurrence scan). Any edit here is a legal event: it ships with a refreshed checksum and
|
|
8
|
+
* explicit sign-off, never inside a refactor.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* The delay notice. Source: the signed OPRA Vendor Agreement, Exhibit A section 14: the phrase must
|
|
12
|
+
* be conspicuously displayed on every screen that displays delayed OPRA data. Every surface showing
|
|
13
|
+
* OPRA numbers on the delayed tier carries it: the chain page subtitle, the chain's price pill, table
|
|
14
|
+
* marker, strike preview and index notice, the Flow Tape, the Terminal Options tab, the options
|
|
15
|
+
* overlay legends and the browser-run Indicator legend notes (option-venue-disclosure.util), the
|
|
16
|
+
* contract chart's delay chip and its card, the chart footer's source line, the watchlist panel and
|
|
17
|
+
* the watchlist cell tooltip, and the purchase page's live delayed price.
|
|
18
|
+
*/
|
|
19
|
+
export const OPRA_DELAY_NOTICE = 'OPRA data delayed 15 minutes';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { RailTf, ReplayStepTf } from '../interfaces/replay.interface.js';
|
|
2
|
+
/**
|
|
3
|
+
* Values were live-bisected on 2026-06-12. Re-measure with
|
|
4
|
+
* /tmp/replay-probe/probe-retention.mjs before changing these constants.
|
|
5
|
+
*/
|
|
6
|
+
export declare const REPLAY_LADDER_EDGES_SEC: {
|
|
7
|
+
readonly tick: 171000;
|
|
8
|
+
readonly bookAgg: 900000;
|
|
9
|
+
readonly tradeAgg5m: 4500000;
|
|
10
|
+
readonly tradeAgg15m: 13500000;
|
|
11
|
+
readonly tradeAgg1h: 90000000;
|
|
12
|
+
readonly tradeAgg1d: 213900000;
|
|
13
|
+
};
|
|
14
|
+
export declare const RAIL_TFS: readonly ["1m", "5m", "15m", "1h", "1d"];
|
|
15
|
+
export declare const REPLAY_STEP_TFS: readonly ["1m", "5m", "10m", "15m", "30m", "1h", "2h", "3h", "4h", "1d"];
|
|
16
|
+
export declare const RAIL_TF_BUCKET_SEC: Record<RailTf, number>;
|
|
17
|
+
export declare const REPLAY_STEP_TF_BUCKET_SEC: Record<ReplayStepTf, number>;
|
|
18
|
+
export declare const RAIL_TF_EDGE_SEC: Record<RailTf, number>;
|
|
19
|
+
export declare const REPLAY_STEP_TF_EDGE_SEC: Record<ReplayStepTf, number>;
|
|
20
|
+
export declare const RAIL_TF_BOOK_EDGE_SEC: Record<RailTf, number>;
|
|
21
|
+
export declare const REPLAY_STEP_TF_BOOK_EDGE_SEC: Record<ReplayStepTf, number>;
|
|
22
|
+
export declare const REPLAY_FORWARD_BATCH = 1000;
|
|
23
|
+
export declare const REPLAY_PREFETCH_BARS = 200;
|
|
24
|
+
export declare const REPLAY_COARSE_FORWARD_BATCH: number;
|
|
25
|
+
export declare const HISTORY_BARS = 300;
|
|
26
|
+
export declare const REPLAY_FOLLOW_RIGHT_OFFSET_FRACTION = 0.5;
|
|
27
|
+
export declare const CANDLE_TICK_BACKFILL_SEC = 300;
|
|
28
|
+
export declare const FALLBACK_VIEW_BEHIND_MS: number;
|
|
29
|
+
export declare const MONDAY_BUCKET_ORIGIN_MS: number;
|
|
30
|
+
export declare const FOLLOW_SPAN_ECHO_TOLERANCE_BARS = 1.5;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The replay ladder constants (a leaf of constants/replay.constants.ts): the measured retention edges, the rail and
|
|
3
|
+
* step bucket and edge maps, and the forward-batch, history and follow numbers that the replay buffer math and the
|
|
4
|
+
* fidelity ladder read. Constants only, over the interval table and the replay types, so it moves into the chart-host
|
|
5
|
+
* package with the phase 2 closure (the executor reaches both readers): the old module imports
|
|
6
|
+
* `@orangecharts/chart-schema`, which is no peer of the package. The old module imports and re-exports every name.
|
|
7
|
+
*/
|
|
8
|
+
import { Intervals } from './interval.constants.js';
|
|
9
|
+
const DAY_MS = Intervals.DAY;
|
|
10
|
+
/**
|
|
11
|
+
* Values were live-bisected on 2026-06-12. Re-measure with
|
|
12
|
+
* /tmp/replay-probe/probe-retention.mjs before changing these constants.
|
|
13
|
+
*/
|
|
14
|
+
export const REPLAY_LADDER_EDGES_SEC = {
|
|
15
|
+
tick: 171_000,
|
|
16
|
+
bookAgg: 900_000,
|
|
17
|
+
tradeAgg5m: 4_500_000,
|
|
18
|
+
tradeAgg15m: 13_500_000,
|
|
19
|
+
tradeAgg1h: 90_000_000,
|
|
20
|
+
tradeAgg1d: 213_900_000,
|
|
21
|
+
};
|
|
22
|
+
export const RAIL_TFS = ['1m', '5m', '15m', '1h', '1d'];
|
|
23
|
+
export const REPLAY_STEP_TFS = [
|
|
24
|
+
'1m',
|
|
25
|
+
'5m',
|
|
26
|
+
'10m',
|
|
27
|
+
'15m',
|
|
28
|
+
'30m',
|
|
29
|
+
'1h',
|
|
30
|
+
'2h',
|
|
31
|
+
'3h',
|
|
32
|
+
'4h',
|
|
33
|
+
'1d',
|
|
34
|
+
];
|
|
35
|
+
export const RAIL_TF_BUCKET_SEC = {
|
|
36
|
+
'1m': Intervals.MINUTE / Intervals.SECOND,
|
|
37
|
+
'5m': Intervals.MINUTE5 / Intervals.SECOND,
|
|
38
|
+
'15m': Intervals.MINUTE15 / Intervals.SECOND,
|
|
39
|
+
'1h': Intervals.HOUR / Intervals.SECOND,
|
|
40
|
+
'1d': Intervals.DAY / Intervals.SECOND,
|
|
41
|
+
};
|
|
42
|
+
export const REPLAY_STEP_TF_BUCKET_SEC = {
|
|
43
|
+
...RAIL_TF_BUCKET_SEC,
|
|
44
|
+
'10m': (10 * Intervals.MINUTE) / Intervals.SECOND,
|
|
45
|
+
'30m': Intervals.MINUTE30 / Intervals.SECOND,
|
|
46
|
+
'2h': (2 * Intervals.HOUR) / Intervals.SECOND,
|
|
47
|
+
'3h': (3 * Intervals.HOUR) / Intervals.SECOND,
|
|
48
|
+
'4h': Intervals.HOUR4 / Intervals.SECOND,
|
|
49
|
+
};
|
|
50
|
+
export const RAIL_TF_EDGE_SEC = {
|
|
51
|
+
'1m': REPLAY_LADDER_EDGES_SEC.bookAgg,
|
|
52
|
+
'5m': REPLAY_LADDER_EDGES_SEC.tradeAgg5m,
|
|
53
|
+
'15m': REPLAY_LADDER_EDGES_SEC.tradeAgg15m,
|
|
54
|
+
'1h': REPLAY_LADDER_EDGES_SEC.tradeAgg1h,
|
|
55
|
+
'1d': REPLAY_LADDER_EDGES_SEC.tradeAgg1d,
|
|
56
|
+
};
|
|
57
|
+
// A step reaches only as deep as the rail its bars are built from. The gateway
|
|
58
|
+
// builds 30m bars from its 15m data, so 30m (candles and book) runs out with
|
|
59
|
+
// 15m, not with 1h (2026-10-07: a 30m Auto step on a January 1h chart had zero
|
|
60
|
+
// rows and the session could neither step nor play).
|
|
61
|
+
export const REPLAY_STEP_TF_EDGE_SEC = {
|
|
62
|
+
...RAIL_TF_EDGE_SEC,
|
|
63
|
+
'10m': RAIL_TF_EDGE_SEC['5m'],
|
|
64
|
+
'30m': RAIL_TF_EDGE_SEC['15m'],
|
|
65
|
+
'2h': RAIL_TF_EDGE_SEC['1h'],
|
|
66
|
+
'3h': RAIL_TF_EDGE_SEC['1h'],
|
|
67
|
+
'4h': RAIL_TF_EDGE_SEC['1h'],
|
|
68
|
+
};
|
|
69
|
+
export const RAIL_TF_BOOK_EDGE_SEC = {
|
|
70
|
+
'1m': 900_000,
|
|
71
|
+
'5m': 4_500_000,
|
|
72
|
+
'15m': 13_400_000,
|
|
73
|
+
'1h': 90_000_000,
|
|
74
|
+
'1d': 207_446_400,
|
|
75
|
+
};
|
|
76
|
+
export const REPLAY_STEP_TF_BOOK_EDGE_SEC = {
|
|
77
|
+
...RAIL_TF_BOOK_EDGE_SEC,
|
|
78
|
+
'10m': RAIL_TF_BOOK_EDGE_SEC['5m'],
|
|
79
|
+
'30m': RAIL_TF_BOOK_EDGE_SEC['15m'],
|
|
80
|
+
'2h': RAIL_TF_BOOK_EDGE_SEC['1h'],
|
|
81
|
+
'3h': RAIL_TF_BOOK_EDGE_SEC['1h'],
|
|
82
|
+
'4h': RAIL_TF_BOOK_EDGE_SEC['1h'],
|
|
83
|
+
};
|
|
84
|
+
export const REPLAY_FORWARD_BATCH = 1000;
|
|
85
|
+
export const REPLAY_PREFETCH_BARS = 200;
|
|
86
|
+
export const REPLAY_COARSE_FORWARD_BATCH = REPLAY_PREFETCH_BARS + 50;
|
|
87
|
+
export const HISTORY_BARS = 300;
|
|
88
|
+
// Fraction of the visible span kept AHEAD of the playhead while Follow frames the
|
|
89
|
+
// chart. 0.5 centers the forming candle so the action plays out mid-screen instead
|
|
90
|
+
// of hugging the price axis. Replay-only: live charts keep their own right offset.
|
|
91
|
+
export const REPLAY_FOLLOW_RIGHT_OFFSET_FRACTION = 0.5;
|
|
92
|
+
export const CANDLE_TICK_BACKFILL_SEC = 300; // 5 min of 1s candles before the anchor (forming context)
|
|
93
|
+
export const FALLBACK_VIEW_BEHIND_MS = HISTORY_BARS * Intervals.MINUTE;
|
|
94
|
+
export const MONDAY_BUCKET_ORIGIN_MS = -3 * DAY_MS;
|
|
95
|
+
// User-zoom detection slack, in chart-interval bars: a viewport span within
|
|
96
|
+
// this distance of the follow window replay itself applied is that window's
|
|
97
|
+
// echo (engine clamping and camera glides wobble the echo by up to a bar),
|
|
98
|
+
// not a user zoom. Real wheel zooms move the span by many bars per notch.
|
|
99
|
+
export const FOLLOW_SPAN_ECHO_TOLERANCE_BARS = 1.5;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Official kScript curation for governed CME futures.
|
|
3
|
+
*
|
|
4
|
+
* Native official catalog rows (script_id === registry type: VWAP,
|
|
5
|
+
* ORDERBOOK_HEATMAP, ...) ride the native availability gates
|
|
6
|
+
* (cme-indicator-availability.util) and never consult this file. This file
|
|
7
|
+
* classifies OFFICIAL SCRIPT rows only: the technical-indicator pack
|
|
8
|
+
* (registry subTypes riding TECHNICAL_SCRIPT, e.g. RSI, Volume Bubbles) and
|
|
9
|
+
* backend-doc officials (catalog rows with a mongo script_id and no registry
|
|
10
|
+
* presence, e.g. Order Book Pressure), matched by EXACT identity only.
|
|
11
|
+
*
|
|
12
|
+
* Adjudicated 2026-07-28 (Kyle): allowed = Volume Bubbles and Order Book
|
|
13
|
+
* Pressure, pinned by EXACT identity only. Title-slug matching was removed
|
|
14
|
+
* the same day: titles are author-controlled, so a slug both enabled a
|
|
15
|
+
* community lookalike in the picker and could never be a safe basis for the
|
|
16
|
+
* venue wall. Anchored VWAP and Key Levels were parked until their docs
|
|
17
|
+
* republished with open code, and re-enabled 2026-07-29 (see the allow-list
|
|
18
|
+
* comment).
|
|
19
|
+
* The classic TA pack was held "coming soon" while the engine's
|
|
20
|
+
* continuous-grid timeline produced NaN defects across CME session gaps
|
|
21
|
+
* (recursive builtins poisoned permanently after a gap, windowed ones holed
|
|
22
|
+
* after every nightly break). Flipped to allowed 2026-07-29 against the
|
|
23
|
+
* sparse-timeline engine (3.0.72): every pack script is run over a
|
|
24
|
+
* session-gapped timeline by tests/constants/scriptEditor/
|
|
25
|
+
* cme-ta-pack-sparse-timeline.spec.ts, which must stay green across engine
|
|
26
|
+
* bumps or the pack returns here. Everything else
|
|
27
|
+
* official (funding / OI / liquidation / spot-vs-perp flow concepts) is
|
|
28
|
+
* crypto-only on CME and reads "not available".
|
|
29
|
+
*
|
|
30
|
+
* Community scripts are deliberately OUT of scope: user-script blocking on
|
|
31
|
+
* governed venues is the kScript venue-policy wall (MR !4881), keyed on run
|
|
32
|
+
* provenance, not this curation. A proper server-side per-venue field on the
|
|
33
|
+
* catalog doc would obsolete the id pinning here.
|
|
34
|
+
*/
|
|
35
|
+
export type CmeOfficialScriptVerdict = 'allowed' | 'coming-soon' | 'blocked';
|
|
36
|
+
/**
|
|
37
|
+
* The 2026-09-02 indicator-library batch (56 openmarket catalog docs: volatility,
|
|
38
|
+
* statistics, technical, market-analysis and volume-profile families), enabled on
|
|
39
|
+
* governed CME 2026-09-07 (Kyle). Venue-safe by construction: every pinned source
|
|
40
|
+
* reads only the chart's own symbol/exchange OHLCV (two through htf()), no
|
|
41
|
+
* crypto-fixed source, no second venue. The four library docs that pull a second
|
|
42
|
+
* symbol with crypto/equity defaults (Cointegration Spread, Sharpe Ratio,
|
|
43
|
+
* Ascending Base, and Correlation Coefficient since 2026-10-13 by Kyle's call:
|
|
44
|
+
* its default comparison is Binance ETHUSDT, which a governed chart cannot
|
|
45
|
+
* fetch, so both forms drew blank there) stay fail-closed. The VERBATIM published sources are pinned
|
|
46
|
+
* under src/fixtures/cme-official-library/ and adjudicated on the session-gapped
|
|
47
|
+
* timeline by tests/constants/scriptEditor/cme-official-library-sparse-timeline.spec.ts,
|
|
48
|
+
* which cross-pins this list against that manifest: an id cannot sit here without
|
|
49
|
+
* a pinned source, and a republish that changes an executable line must be
|
|
50
|
+
* re-adjudicated there before the id keeps its place. Spread into BOTH lists
|
|
51
|
+
* below: the picker curation (venue-appropriate) and the first-party wall
|
|
52
|
+
* (governed-data access), the same standing the launch docs hold.
|
|
53
|
+
*/
|
|
54
|
+
export declare const CME_OFFICIAL_LIBRARY_DOC_IDS: readonly string[];
|
|
55
|
+
/**
|
|
56
|
+
* Registry subTypes / catalog script_ids allowed on CME today (exact identities only).
|
|
57
|
+
*
|
|
58
|
+
* Anchored VWAP and Key Levels re-enabled 2026-07-29 after Kyle republished both docs with
|
|
59
|
+
* OPEN code (client-side first-party run; wire-verified delivered source). Their catalog rows
|
|
60
|
+
* surface on CME once the docs' catalog `source` flips to 'official' (the governed picker
|
|
61
|
+
* queries officials only); until then they are runnable-but-unlisted there.
|
|
62
|
+
*/
|
|
63
|
+
export declare const CME_ALLOWED_OFFICIAL_SCRIPT_KEYS: readonly string[];
|
|
64
|
+
/**
|
|
65
|
+
* Officials queued behind a known blocker (empty since the TA pack un-Soon;
|
|
66
|
+
* kept so the next queued official has a home and the resolver keeps its
|
|
67
|
+
* three-verdict shape).
|
|
68
|
+
*/
|
|
69
|
+
export declare const CME_COMING_SOON_OFFICIAL_SCRIPT_KEYS: readonly string[];
|
|
70
|
+
/**
|
|
71
|
+
* Bundled templates deliberately held OFF governed CME: they read 'blocked'
|
|
72
|
+
* through the fail-closed default (the picker says "not available", never
|
|
73
|
+
* "Soon"), and this list exists so the curation spec can tell a deliberate
|
|
74
|
+
* hold from a template nobody classified.
|
|
75
|
+
* - ZIGZAG: draws lines and labels only, so the sparse-timeline proof (which
|
|
76
|
+
* asserts plotted series) cannot adjudicate it yet.
|
|
77
|
+
* - PIVOT_POINTS: its pivots come from UTC calendar periods (1D / 1W / 1M
|
|
78
|
+
* backings), which do not line up with CME trading sessions.
|
|
79
|
+
*/
|
|
80
|
+
export declare const CME_HELD_OFFICIAL_SCRIPT_KEYS: readonly string[];
|
|
81
|
+
/**
|
|
82
|
+
* The built-ins whose PROVEN wrun twin (wrun-twins.json `proven`) is also proven on a governed CME
|
|
83
|
+
* chart: on CME a new add of one of them mounts the twin at its pin, as on every other venue
|
|
84
|
+
* (provenBuiltInTwin, wrun-twins.util), and a twin carried onto CME (a symbol switch, a restore, a
|
|
85
|
+
* paste or copy) keeps drawing (isKScriptDisplayBlockedOnExchange). Every other built-in keeps its
|
|
86
|
+
* kScript template on CME, and its twin stays walled there. Each key is a CME-allowed built-in
|
|
87
|
+
* (CME_ALLOWED_OFFICIAL_SCRIPT_KEYS) with a proven pin; the roster spec holds both.
|
|
88
|
+
*
|
|
89
|
+
* Proven 2026-10-11 on CME ES1! against the template, twin and template mounted through the
|
|
90
|
+
* Indicators dialog: the parity sweep's data, dialog and host layers at 1h and its data layer at 1D
|
|
91
|
+
* and 1W, every finding the same as the pair's crypto proof (ADX's extra Price line is the
|
|
92
|
+
* template's fill drawn at its colour index, price 0, which its lower pane shows on ES), and the
|
|
93
|
+
* coarser Timeframes at the chart interval's values (WRUN-QA-1005/returns/CME-WRUN.md). VOLUME_BAR
|
|
94
|
+
* and BAR_STATISTICS joined 2026-10-13 once their twins (0.3.3, 0.1.2) read the kit's size units
|
|
95
|
+
* (market.size_unit(), market.notional(): crypto bit-identical, Coin mode equal to the template on
|
|
96
|
+
* CME, USD mode priced with the point value, the crypto-only rows closed; SESSION-evidence/units-*.md).
|
|
97
|
+
* BIG_TRADES joined the same day by Kyle's rule: its twin counts prints in native size like the
|
|
98
|
+
* template (a live-session proof waits for a rig that carries the CME trade tape). VOLUME_BUBBLES joined
|
|
99
|
+
* 2026-10-13 with 0.2.4: its profile lane reads `currency: "Auto"` (the host picks the contract profile on a
|
|
100
|
+
* contracts market), floors in 1K contracts and drops the "$" there: 227,435/227,435 bubbles equal to the
|
|
101
|
+
* template on ES facts (SESSION-evidence/units-p-bubbles.md). Every CME-allowed built-in routes on CME now.
|
|
102
|
+
*/
|
|
103
|
+
export declare const CME_PROVEN_TWIN_BUILTIN_KEYS: readonly string[];
|
|
104
|
+
/** Whether a shipped built-in's proven twin may route and draw on a governed CME chart
|
|
105
|
+
* (CME_PROVEN_TWIN_BUILTIN_KEYS). */
|
|
106
|
+
export declare function isCmeProvenTwinBuiltIn(builtInKey: string): boolean;
|
|
107
|
+
/**
|
|
108
|
+
* The official kScript DOCS (Mongo-id catalog rows, never a shipped built-in) whose wrun port is also proven on a
|
|
109
|
+
* governed CME chart: on CME such a doc lists once, as its port, and every Add of it mounts the package, as on every
|
|
110
|
+
* other venue (officialDocPort, wrun-official-doc-port.util). Every other doc keeps its kScript record on CME. Each id
|
|
111
|
+
* is a CME-allowed doc (CME_ALLOWED_OFFICIAL_SCRIPT_KEYS) with a roster row (wrun-twins.json); the roster spec holds
|
|
112
|
+
* both. A port carried onto CME (a symbol switch, a restore, a paste or copy) is not walled by this list: official
|
|
113
|
+
* packages are venue-approved as a class (isKScriptDisplayBlockedOnExchange, the 2026-09-30 exemption).
|
|
114
|
+
*
|
|
115
|
+
* Proven 2026-10-11 on CME ES1! against the kScript doc, both mounted on the same chart: the parity sweep's data,
|
|
116
|
+
* dialog and host layers at 1h and, for the session and calendar docs, its data layer at 1D and 1W, every finding
|
|
117
|
+
* judged against the doc's crypto proof and a same-build crypto control (WRUN-QA-1005/returns/CME-DOCS.md). Every
|
|
118
|
+
* CME-allowed doc with a port routes here since 2026-10-13. Timeframe Matrix joined last, once its port took the
|
|
119
|
+
* newest 18 candles by count and the kit host handed over the session's final higher-timeframe candle (0.1.3,
|
|
120
|
+
* kit 0.68.1): 18 candles in every panel with the doc's change badges on a live and a closed-market run
|
|
121
|
+
* (SESSION-evidence/units-tfm.md). Kelly Criterion joined 2026-10-13: its one
|
|
122
|
+
* hourly difference is the doc's band edge placed inside closed hours (218/218 boxes, 437/437 cells agree).
|
|
123
|
+
* Correlation Coefficient is fail-closed on CME in both forms since 2026-10-13 (CME_OFFICIAL_LIBRARY_DOC_IDS).
|
|
124
|
+
* Anchored VWAP joined 2026-10-13 once its port 0.1.8 anchored the day at the venue trade-day open
|
|
125
|
+
* (market.session_open(), kit 0.65.0; hosted runs admit it since contracts 5.24.0): 394/394 daily cells equal to
|
|
126
|
+
* the doc on CME ES1! (SESSION-evidence/p1-lane.md). Thirteen docs whose kScript doc places box and line edges inside the daily break and the weekend (its edge
|
|
127
|
+
* arithmetic counts closed hours as bars) route by Kyle's decision of 2026-10-12: the port draws on the traded bars and
|
|
128
|
+
* finds the same patterns (SESSION-evidence/p-prep.md). Structure Shift Sweeps and Wave Extensions joined 2026-10-12
|
|
129
|
+
* once their ports read the chart interval from the host instead of latching it from the first two bars (0.2.1 / 0.2.2),
|
|
130
|
+
* re-proven on CME ES1! at 1h and 1D against the same control. Equal Highs/Lows FVG Breakouts joined the same day by
|
|
131
|
+
* Kyle's rule: where the two forms differ because the kScript doc is the defective one, the port routes. Five docs whose
|
|
132
|
+
* only CME-side difference was a chart switch acting on one form (All intervals, Hide weekends, Price line,
|
|
133
|
+
* Interpolation) route by the same decision; the dead switches are tracked apart from the route.
|
|
134
|
+
*/
|
|
135
|
+
export declare const CME_PROVEN_TWIN_DOC_IDS: readonly string[];
|
|
136
|
+
/** Whether an official kScript doc's port may route on a governed CME chart (CME_PROVEN_TWIN_DOC_IDS). */
|
|
137
|
+
export declare function isCmeProvenTwinDoc(scriptId: string): boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Classify one official script for CME. `keys` are the entry's stable
|
|
140
|
+
* identities (registry subType, officialType, catalog script_id). Display
|
|
141
|
+
* titles are deliberately NOT an input: they are author-controlled, so a
|
|
142
|
+
* community lookalike named after an allowed official must never classify as
|
|
143
|
+
* allowed. Fail-closed: an unrecognized official reads 'blocked', so a newly
|
|
144
|
+
* published official ships CME-disabled until deliberately added here.
|
|
145
|
+
*/
|
|
146
|
+
export declare function classifyOfficialScriptForCme(ref: {
|
|
147
|
+
keys?: readonly (string | undefined)[];
|
|
148
|
+
}): CmeOfficialScriptVerdict;
|
|
149
|
+
/**
|
|
150
|
+
* Official catalog-doc ids the venue-policy wall treats as FIRST PARTY for governed data.
|
|
151
|
+
* Deliberately a SEPARATE list from CME_ALLOWED_OFFICIAL_SCRIPT_KEYS: the picker list answers
|
|
152
|
+
* "is this indicator venue-appropriate on CME?", this one answers "is this code first-party?"
|
|
153
|
+
* — membership here mints governed-data access at EVERY door (fetch, payload guard, engine
|
|
154
|
+
* policy, layout/suite, alerts), so an id must only be added for docs authored by the official
|
|
155
|
+
* account. Registry subTypes (e.g. VOLUME_BUBBLES) never belong here; they are first-party via
|
|
156
|
+
* TECHNICAL_INDICATOR_SCRIPT_KEY_SET already.
|
|
157
|
+
*/
|
|
158
|
+
export declare const CME_FIRST_PARTY_OFFICIAL_DOC_IDS: readonly string[];
|
|
159
|
+
/**
|
|
160
|
+
* Whether a run's `customScriptId` names a first-party official doc. The venue-policy wall
|
|
161
|
+
* consults this so a curated official passes the governed-data doors even when a mount's
|
|
162
|
+
* provenance breadcrumbs (scriptSource / transient scriptData) have not landed on the overlay
|
|
163
|
+
* settings yet — the shipped Order Book Pressure failure: Door F admitted the add, then the
|
|
164
|
+
* first fetch hit Door D before any stamp existed and suppressed the run as a user script.
|
|
165
|
+
* Spoof surface is unchanged: the id names WHICH DOC runs, and forks/lookalikes carry their
|
|
166
|
+
* own ids.
|
|
167
|
+
*/
|
|
168
|
+
export declare function isCmeFirstPartyOfficialDocId(key: unknown): boolean;
|