@orangecharts/wrun-chart-host 0.2.0 → 0.4.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 +22 -8
- package/dist/constants/common.constants.d.ts +15 -0
- package/dist/constants/common.constants.js +23 -0
- package/dist/constants/data-source.constants.d.ts +1 -0
- package/dist/constants/data-source.constants.js +1 -0
- package/dist/constants/economic.constants.d.ts +39 -0
- package/dist/constants/economic.constants.js +77 -0
- package/dist/constants/etf-covered-coins.constants.d.ts +1 -0
- package/dist/constants/etf-covered-coins.constants.js +9 -0
- package/dist/constants/feature-flags.constants.d.ts +60 -0
- package/dist/constants/feature-flags.constants.js +308 -0
- package/dist/constants/feature-limits.constants.d.ts +134 -0
- package/dist/constants/feature-limits.constants.js +155 -0
- package/dist/constants/marketCapabilities.constants.d.ts +87 -0
- package/dist/constants/marketCapabilities.constants.js +213 -0
- package/dist/constants/option-venues.constants.d.ts +100 -0
- package/dist/constants/option-venues.constants.js +167 -0
- package/dist/constants/overlay-data.constants.d.ts +53 -0
- package/dist/constants/overlay-data.constants.js +80 -0
- package/dist/constants/pane-grid.constants.d.ts +15 -0
- package/dist/constants/pane-grid.constants.js +17 -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/venue-presets.constants.d.ts +10 -0
- package/dist/constants/venue-presets.constants.js +22 -0
- package/dist/enums/chart.enum.d.ts +68 -0
- package/dist/enums/chart.enum.js +70 -0
- package/dist/helpers/data.helpers.d.ts +2 -0
- package/dist/helpers/data.helpers.js +14 -0
- package/dist/host-env.d.ts +163 -5
- package/dist/host-ports.types.d.ts +431 -0
- package/dist/host-ports.types.js +1 -0
- package/dist/index.d.ts +138 -0
- package/dist/index.js +138 -0
- package/dist/indicators/controls/technical-script/technical-script-input-rendering.d.ts +86 -0
- package/dist/indicators/controls/technical-script/technical-script-input-rendering.js +179 -0
- package/dist/interfaces/asset-venue.interface.d.ts +91 -0
- package/dist/interfaces/asset-venue.interface.js +1 -0
- package/dist/interfaces/cancel-reason.interface.d.ts +24 -0
- package/dist/interfaces/cancel-reason.interface.js +2 -0
- package/dist/interfaces/catalog-display.interface.d.ts +3 -0
- package/dist/interfaces/catalog-display.interface.js +1 -0
- package/dist/interfaces/cme-realtime.interface.d.ts +251 -0
- package/dist/interfaces/cme-realtime.interface.js +46 -0
- package/dist/interfaces/feed.interface.d.ts +80 -0
- package/dist/interfaces/feed.interface.js +7 -0
- package/dist/interfaces/market-kind.interface.d.ts +8 -0
- package/dist/interfaces/market-kind.interface.js +1 -0
- package/dist/interfaces/opra-realtime.interface.d.ts +224 -0
- package/dist/interfaces/opra-realtime.interface.js +105 -0
- package/dist/interfaces/option-instrument.interface.d.ts +32 -0
- package/dist/interfaces/option-instrument.interface.js +1 -0
- package/dist/interfaces/options-chain-scope.interface.d.ts +29 -0
- package/dist/interfaces/options-chain-scope.interface.js +7 -0
- package/dist/interfaces/prediction-market.interface.d.ts +88 -0
- package/dist/interfaces/prediction-market.interface.js +8 -0
- package/dist/interfaces/wrun-runtime.interface.d.ts +5 -0
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +185 -0
- package/dist/kscript-data/controls/live-trades-merge.util.js +357 -0
- package/dist/settings-templates/frvp-fields.d.ts +27 -0
- package/dist/settings-templates/frvp-fields.js +108 -0
- package/dist/settings-templates/index.d.ts +119 -0
- package/dist/settings-templates/index.js +442 -0
- package/dist/settings-templates/indicator-fields.d.ts +56 -0
- package/dist/settings-templates/indicator-fields.js +793 -0
- package/dist/settings-templates/tool-rules.d.ts +59 -0
- package/dist/settings-templates/tool-rules.js +49 -0
- package/dist/settings-templates/tool-tables.generated.d.ts +2 -0
- package/dist/settings-templates/tool-tables.generated.js +1668 -0
- package/dist/utility/blk-market.util.d.ts +5 -0
- package/dist/utility/blk-market.util.js +12 -0
- package/dist/utility/chart/chart-load-phase.util.d.ts +32 -0
- package/dist/utility/chart/chart-load-phase.util.js +78 -0
- package/dist/utility/chart/cme-cache-context.util.d.ts +108 -0
- package/dist/utility/chart/cme-cache-context.util.js +166 -0
- package/dist/utility/chart/cme-session-bucket.util.d.ts +82 -0
- package/dist/utility/chart/cme-session-bucket.util.js +343 -0
- package/dist/utility/chart/cme-trade-calendar.util.d.ts +26 -0
- package/dist/utility/chart/cme-trade-calendar.util.js +147 -0
- package/dist/utility/chart/continuous-contracts.util.d.ts +138 -0
- package/dist/utility/chart/continuous-contracts.util.js +374 -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/feed-interval.util.d.ts +119 -0
- package/dist/utility/chart/feed-interval.util.js +321 -0
- package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +110 -0
- package/dist/utility/chart/fetch-dedupe-policy.util.js +407 -0
- package/dist/utility/chart/footprint-band.util.d.ts +76 -0
- package/dist/utility/chart/footprint-band.util.js +205 -0
- package/dist/utility/chart/footprint-cell-identity.util.d.ts +82 -0
- package/dist/utility/chart/footprint-cell-identity.util.js +346 -0
- package/dist/utility/chart/formula-calendar.util.d.ts +27 -0
- package/dist/utility/chart/formula-calendar.util.js +59 -0
- package/dist/utility/chart/history-wall.util.d.ts +67 -0
- package/dist/utility/chart/history-wall.util.js +87 -0
- package/dist/utility/chart/index-mode.util.d.ts +66 -0
- package/dist/utility/chart/index-mode.util.js +360 -0
- package/dist/utility/chart/indicator-coverage-planner.util.d.ts +217 -0
- package/dist/utility/chart/indicator-coverage-planner.util.js +443 -0
- package/dist/utility/chart/indicator-coverage-state.util.d.ts +33 -0
- package/dist/utility/chart/indicator-coverage-state.util.js +110 -0
- package/dist/utility/chart/indicator-gap-detector.util.d.ts +127 -0
- package/dist/utility/chart/indicator-gap-detector.util.js +260 -0
- package/dist/utility/chart/indicator-gap-repair.util.d.ts +88 -0
- package/dist/utility/chart/indicator-gap-repair.util.js +177 -0
- package/dist/utility/chart/indicator-inflight-registry.util.d.ts +26 -0
- package/dist/utility/chart/indicator-inflight-registry.util.js +254 -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/interval-registry.util.d.ts +23 -0
- package/dist/utility/chart/interval-registry.util.js +83 -0
- package/dist/utility/chart/kscript-main-grid-stages.util.d.ts +21 -0
- package/dist/utility/chart/kscript-main-grid-stages.util.js +332 -0
- package/dist/utility/chart/legacy-exchange.leaf.d.ts +11 -0
- package/dist/utility/chart/legacy-exchange.leaf.js +43 -0
- package/dist/utility/chart/live-bucket.util.d.ts +66 -0
- package/dist/utility/chart/live-bucket.util.js +165 -0
- package/dist/utility/chart/market-session-schedule.util.d.ts +91 -0
- package/dist/utility/chart/market-session-schedule.util.js +337 -0
- package/dist/utility/chart/marketKind.util.d.ts +181 -0
- package/dist/utility/chart/marketKind.util.js +371 -0
- package/dist/utility/chart/opra-read-access.leaf.d.ts +26 -0
- package/dist/utility/chart/opra-read-access.leaf.js +25 -0
- package/dist/utility/chart/prediction-identity.util.d.ts +159 -0
- package/dist/utility/chart/prediction-identity.util.js +236 -0
- package/dist/utility/chart/rth-session.util.d.ts +352 -0
- package/dist/utility/chart/rth-session.util.js +926 -0
- package/dist/utility/chart/titan-constants.pin.d.ts +43 -0
- package/dist/utility/chart/titan-constants.pin.js +50 -0
- package/dist/utility/chart/us-equities-session.util.d.ts +127 -0
- package/dist/utility/chart/us-equities-session.util.js +251 -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 +100 -0
- package/dist/utility/chart/wrun-bar-session-facts.util.js +354 -0
- package/dist/utility/chart/wrun-wire-ref.util.d.ts +23 -0
- package/dist/utility/chart/wrun-wire-ref.util.js +16 -0
- package/dist/utility/common/safe-math-eval.d.ts +18 -0
- package/dist/utility/common/safe-math-eval.js +160 -0
- package/dist/utility/common/time.util.d.ts +134 -0
- package/dist/utility/common/time.util.js +428 -0
- package/dist/utility/common/transformations.util.d.ts +126 -0
- package/dist/utility/common/transformations.util.js +711 -0
- package/dist/utility/common/visible-timeout.util.d.ts +17 -0
- package/dist/utility/common/visible-timeout.util.js +75 -0
- package/dist/utility/exchange-normalization.util.d.ts +8 -0
- package/dist/utility/exchange-normalization.util.js +32 -0
- package/dist/utility/html-escape.leaf.d.ts +11 -0
- package/dist/utility/html-escape.leaf.js +20 -0
- package/dist/utility/intl-locale.util.d.ts +2 -0
- package/dist/utility/intl-locale.util.js +28 -0
- package/dist/utility/number-format.util.d.ts +14 -1
- package/dist/utility/number-format.util.js +50 -19
- package/dist/utility/options/option-symbol.util.d.ts +28 -0
- package/dist/utility/options/option-symbol.util.js +176 -0
- package/dist/utility/options/option-trade-units.util.d.ts +190 -0
- package/dist/utility/options/option-trade-units.util.js +283 -0
- package/dist/utility/options/option-venue.util.d.ts +75 -0
- package/dist/utility/options/option-venue.util.js +85 -0
- package/dist/utility/pool-symbol.leaf.d.ts +34 -0
- package/dist/utility/pool-symbol.leaf.js +95 -0
- package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.d.ts +109 -0
- package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +302 -0
- package/dist/utility/symbol-selection/contract-expiry.util.d.ts +39 -0
- package/dist/utility/symbol-selection/contract-expiry.util.js +111 -0
- package/dist/utility/v2/gate-plane.util.d.ts +58 -0
- package/dist/utility/v2/gate-plane.util.js +99 -0
- package/dist/utility/v2/gate-session-latch.util.d.ts +22 -0
- package/dist/utility/v2/gate-session-latch.util.js +34 -0
- package/dist/utility/watchlist/import/tradingview-symbols.leaf.d.ts +76 -0
- package/dist/utility/watchlist/import/tradingview-symbols.leaf.js +221 -0
- package/dist/utility/wrun/sources/host-grid-landing.d.ts +15 -0
- package/dist/utility/wrun/sources/host-grid-landing.js +26 -0
- package/dist/utility/wrun/sources/lanes/bitfinex_funding.d.ts +27 -0
- package/dist/utility/wrun/sources/lanes/bitfinex_funding.js +85 -0
- package/dist/utility/wrun/sources/lanes/economic.d.ts +27 -0
- package/dist/utility/wrun/sources/lanes/economic.js +79 -0
- package/dist/utility/wrun/sources/lanes/etf_holdings.d.ts +35 -0
- package/dist/utility/wrun/sources/lanes/etf_holdings.js +165 -0
- package/dist/utility/wrun/sources/lanes/etf_premium.d.ts +19 -0
- package/dist/utility/wrun/sources/lanes/etf_premium.js +114 -0
- package/dist/utility/wrun/sources/lanes/ethena_positions.d.ts +30 -0
- package/dist/utility/wrun/sources/lanes/ethena_positions.js +51 -0
- package/dist/utility/wrun/sources/lanes/index.d.ts +2 -0
- package/dist/utility/wrun/sources/lanes/index.js +32 -0
- package/dist/utility/wrun/sources/lanes/long_short_ratio.d.ts +17 -0
- package/dist/utility/wrun/sources/lanes/long_short_ratio.js +47 -0
- package/dist/utility/wrun/sources/lanes/option_daily.d.ts +58 -0
- package/dist/utility/wrun/sources/lanes/option_daily.js +111 -0
- package/dist/utility/wrun/sources/lanes/option_stats_10m.d.ts +27 -0
- package/dist/utility/wrun/sources/lanes/option_stats_10m.js +21 -0
- package/dist/utility/wrun/sources/lanes/options_flow.d.ts +50 -0
- package/dist/utility/wrun/sources/lanes/options_flow.js +155 -0
- package/dist/utility/wrun/sources/lanes/options_oi.d.ts +29 -0
- package/dist/utility/wrun/sources/lanes/options_oi.js +59 -0
- package/dist/utility/wrun/sources/lanes/options_volume.d.ts +38 -0
- package/dist/utility/wrun/sources/lanes/options_volume.js +63 -0
- package/dist/utility/wrun/sources/lanes/series.d.ts +67 -0
- package/dist/utility/wrun/sources/lanes/series.js +321 -0
- package/dist/utility/wrun/sources/lanes/token_supply.d.ts +30 -0
- package/dist/utility/wrun/sources/lanes/token_supply.js +145 -0
- package/dist/utility/wrun/sources/lanes/treasury_balance.d.ts +25 -0
- package/dist/utility/wrun/sources/lanes/treasury_balance.js +47 -0
- package/dist/utility/wrun/sources/lanes/volatility_index.d.ts +21 -0
- package/dist/utility/wrun/sources/lanes/volatility_index.js +11 -0
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +215 -0
- package/dist/utility/wrun/sources/opra-option-lanes.util.js +477 -0
- package/dist/utility/wrun/sources/registry.d.ts +21 -0
- package/dist/utility/wrun/sources/registry.js +237 -0
- package/dist/utility/wrun/sources/row-lane-registry.d.ts +28 -0
- package/dist/utility/wrun/sources/row-lane-registry.js +230 -0
- package/dist/utility/wrun/sources/row-lanes/index.d.ts +2 -0
- package/dist/utility/wrun/sources/row-lanes/index.js +12 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_flow.d.ts +2 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +38 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +55 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +126 -0
- package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +4 -0
- package/dist/utility/wrun/sources/row-lanes/option_prints.js +191 -0
- package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +62 -0
- package/dist/utility/wrun/sources/row-lanes/option_strikes.js +147 -0
- package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +70 -0
- package/dist/utility/wrun/sources/row-lanes/option_surface.js +144 -0
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +309 -0
- package/dist/utility/wrun/sources/wrun-poll-lane.types.js +26 -0
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +350 -0
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +576 -0
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +275 -0
- package/dist/utility/wrun/sources/wrun-row-lane.types.js +16 -0
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +207 -0
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +450 -0
- package/dist/utility/wrun/wrun-browser-sources.leaf.d.ts +28 -0
- package/dist/utility/wrun/wrun-browser-sources.leaf.js +66 -0
- package/dist/utility/wrun/wrun-cloud-record.util.d.ts +65 -0
- package/dist/utility/wrun/wrun-cloud-record.util.js +121 -0
- package/dist/utility/wrun/wrun-daily-lane.util.d.ts +95 -0
- package/dist/utility/wrun/wrun-daily-lane.util.js +297 -0
- package/dist/utility/wrun/wrun-deadline.util.d.ts +52 -0
- package/dist/utility/wrun/wrun-deadline.util.js +82 -0
- package/dist/utility/wrun/wrun-etf-flow-lane.util.d.ts +94 -0
- package/dist/utility/wrun/wrun-etf-flow-lane.util.js +224 -0
- package/dist/utility/wrun/wrun-etf-funds.util.d.ts +82 -0
- package/dist/utility/wrun/wrun-etf-funds.util.js +242 -0
- package/dist/utility/wrun/wrun-frames.d.ts +20 -1
- package/dist/utility/wrun/wrun-frames.js +103 -49
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +2 -2
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +27 -0
- package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +22 -0
- package/dist/utility/wrun/wrun-lane-refusal.leaf.js +32 -0
- package/dist/utility/wrun/wrun-lane-warmup.util.d.ts +18 -0
- package/dist/utility/wrun/wrun-lane-warmup.util.js +112 -0
- package/dist/utility/wrun/wrun-leg-close.util.d.ts +57 -0
- package/dist/utility/wrun/wrun-leg-close.util.js +187 -0
- package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +144 -0
- package/dist/utility/wrun/wrun-leg-fetch.util.js +212 -0
- package/dist/utility/wrun/wrun-leg-stream-classes.d.ts +73 -0
- package/dist/utility/wrun/wrun-leg-stream-classes.js +86 -0
- package/dist/utility/wrun/wrun-levels-child.util.d.ts +101 -6
- package/dist/utility/wrun/wrun-levels-child.util.js +335 -157
- package/dist/utility/wrun/wrun-memory-clamp.util.d.ts +33 -0
- package/dist/utility/wrun/wrun-memory-clamp.util.js +146 -0
- package/dist/utility/wrun/wrun-odds-template-market.util.d.ts +51 -0
- package/dist/utility/wrun/wrun-odds-template-market.util.js +251 -0
- package/dist/utility/wrun/wrun-opra-flow.leaf.d.ts +65 -0
- package/dist/utility/wrun/wrun-opra-flow.leaf.js +94 -0
- package/dist/utility/wrun/wrun-opra-lane.util.d.ts +47 -0
- package/dist/utility/wrun/wrun-opra-lane.util.js +58 -0
- package/dist/utility/wrun/wrun-opra-stats.leaf.d.ts +49 -0
- package/dist/utility/wrun/wrun-opra-stats.leaf.js +115 -0
- package/dist/utility/wrun/wrun-opra-underlying.util.d.ts +12 -0
- package/dist/utility/wrun/wrun-opra-underlying.util.js +1 -0
- package/dist/utility/wrun/wrun-option-contract-flow.util.d.ts +142 -0
- package/dist/utility/wrun/wrun-option-contract-flow.util.js +451 -0
- package/dist/utility/wrun/wrun-option-knobs.util.d.ts +43 -0
- package/dist/utility/wrun/wrun-option-knobs.util.js +81 -0
- package/dist/utility/wrun/wrun-option-prints.util.d.ts +144 -0
- package/dist/utility/wrun/wrun-option-prints.util.js +356 -0
- package/dist/utility/wrun/wrun-option-summary-lane.util.d.ts +102 -0
- package/dist/utility/wrun/wrun-option-summary-lane.util.js +143 -0
- package/dist/utility/wrun/wrun-options-chain.util.d.ts +308 -0
- package/dist/utility/wrun/wrun-options-chain.util.js +502 -0
- package/dist/utility/wrun/wrun-overlay-identity.util.d.ts +9 -4
- package/dist/utility/wrun/wrun-overlay-identity.util.js +16 -6
- 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 +377 -0
- package/dist/utility/wrun/wrun-panel-mount.util.js +2251 -0
- package/dist/utility/wrun/wrun-param-map.util.d.ts +298 -0
- package/dist/utility/wrun/wrun-param-map.util.js +581 -0
- 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-pin-spelling.util.d.ts +149 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.js +523 -0
- package/dist/utility/wrun/wrun-pin-venues.util.d.ts +116 -0
- package/dist/utility/wrun/wrun-pin-venues.util.js +320 -0
- package/dist/utility/wrun/wrun-pinned-interval.util.d.ts +20 -0
- package/dist/utility/wrun/wrun-pinned-interval.util.js +47 -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-present-bits.util.d.ts +37 -0
- package/dist/utility/wrun/wrun-present-bits.util.js +73 -0
- package/dist/utility/wrun/wrun-protocol-pending.util.d.ts +33 -0
- package/dist/utility/wrun/wrun-protocol-pending.util.js +57 -0
- package/dist/utility/wrun/wrun-refusal.util.d.ts +41 -1
- package/dist/utility/wrun/wrun-refusal.util.js +69 -2
- package/dist/utility/wrun/wrun-registry-errors.util.d.ts +1 -14
- package/dist/utility/wrun/wrun-registry-errors.util.js +0 -16
- package/dist/utility/wrun/wrun-row-source.d.ts +158 -0
- package/dist/utility/wrun/wrun-row-source.js +75 -0
- package/dist/utility/wrun/wrun-run-health.util.d.ts +155 -0
- package/dist/utility/wrun/wrun-run-health.util.js +273 -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-socket-row-source.d.ts +439 -0
- package/dist/utility/wrun/wrun-socket-row-source.js +1689 -0
- package/dist/utility/wrun/wrun-socket-session-losses.util.d.ts +18 -0
- package/dist/utility/wrun/wrun-socket-session-losses.util.js +25 -0
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +911 -0
- package/dist/utility/wrun/wrun-source-rows.util.js +2597 -0
- package/dist/utility/wrun/wrun-tape-source.util.d.ts +82 -0
- package/dist/utility/wrun/wrun-tape-source.util.js +151 -0
- package/dist/utility/wrun/wrun-tier-grid.util.d.ts +137 -0
- package/dist/utility/wrun/wrun-tier-grid.util.js +279 -0
- package/dist/utility/wrun/wrun-trades-lane.util.d.ts +52 -0
- package/dist/utility/wrun/wrun-trades-lane.util.js +58 -0
- package/dist/utility/wrun/wrun-volume-profile-lane.util.d.ts +41 -0
- package/dist/utility/wrun/wrun-volume-profile-lane.util.js +66 -0
- package/dist/utility/wrun-display-name.util.d.ts +33 -0
- package/dist/utility/wrun-display-name.util.js +64 -0
- package/dist/workers/constants/kscript-transport-codes.d.ts +15 -0
- package/dist/workers/constants/kscript-transport-codes.js +15 -0
- package/dist/workers/constants/socket-slots.d.ts +574 -0
- package/dist/workers/constants/socket-slots.js +539 -0
- package/dist/workers/utils/number.worker.util.d.ts +5 -0
- package/dist/workers/utils/number.worker.util.js +10 -0
- package/dist/workers/utils/time.worker.util.d.ts +12 -0
- package/dist/workers/utils/time.worker.util.js +24 -0
- package/dist/workers/utils/volume-profile.worker.util.d.ts +200 -0
- package/dist/workers/utils/volume-profile.worker.util.js +631 -0
- package/package.json +10 -4
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slot spec registry: every WebSocket slot's behaviour declared once as data,
|
|
3
|
+
* so the worker's routing/auth/keepalive/parking decisions are field lookups
|
|
4
|
+
* instead of string-matching scattered across the transport code. Adding a slot
|
|
5
|
+
* is one row here plus its route (see governed-route.util); the union and every
|
|
6
|
+
* per-slot registry derive from this table.
|
|
7
|
+
*
|
|
8
|
+
* Worker-safe by construction: pure data, ZERO imports — importable from the
|
|
9
|
+
* worker, the main-thread services, and specs alike without pulling DOM or the
|
|
10
|
+
* environment module into worker code.
|
|
11
|
+
*
|
|
12
|
+
* `provider` is a provider id (not a cme/crypto boolean): a future governed
|
|
13
|
+
* market (Bursa-class) adds its own rows under a new provider id rather than
|
|
14
|
+
* new branches. CME-specific wire details (tier frame, gate token) stay behind
|
|
15
|
+
* cme- named modules; this table is provider-neutral.
|
|
16
|
+
*/
|
|
17
|
+
export type SlotFamily = 'reader' | 'livefeed' | 'alert' | 'parking';
|
|
18
|
+
/** `v3`: the /v3 gateway, kept apart so the core v2 pair's ping, probe and reconnect paths never see it. */
|
|
19
|
+
export type SlotProvider = 'core' | 'cme' | 'opra' | 'v3' | 'blk';
|
|
20
|
+
/** Timing tier for governed slots; null = untiered (core sockets / legacy `?tier=`). */
|
|
21
|
+
type SlotTier = 'realtime' | 'delayed' | null;
|
|
22
|
+
/** Connect-time auth style: an on-open `public/authenticate` frame, or none (reader RPC-level). */
|
|
23
|
+
type SlotAuth = 'frame' | 'none';
|
|
24
|
+
type SlotSubscribeParams = 'brotliV2' | null;
|
|
25
|
+
/**
|
|
26
|
+
* Keepalive loops the WORKER owns (policies + frames in `websocket.worker.service`).
|
|
27
|
+
* Worker-side because hidden tabs throttle main-thread timers to ~1/min, which
|
|
28
|
+
* loses the gate's 60s read deadline exactly when a background chart matters.
|
|
29
|
+
* `readerIdlePing`: the core reader pair, whose main-thread loop (v2PingPong)
|
|
30
|
+
* keeps the liveness verdict and the token push; the worker only pings a
|
|
31
|
+
* socket nothing has written to for a while, so the gateway's 60 s read
|
|
32
|
+
* deadline (WEBSOCKET_READ_DEADLINE) never cuts an idle background tab.
|
|
33
|
+
*/
|
|
34
|
+
export type SlotWorkerKeepalive = 'alertPing' | 'gatePing' | 'readerIdlePing' | null;
|
|
35
|
+
/**
|
|
36
|
+
* Keepalive loops the MAIN THREAD owns, named by their service. The one property
|
|
37
|
+
* with no runtime reader by design — the loops live in the services, so there is
|
|
38
|
+
* nothing to look up; the table-shape spec asserts every connectable slot names
|
|
39
|
+
* an owner instead.
|
|
40
|
+
*/
|
|
41
|
+
type SlotMainThreadKeepalive = 'v2PingPong' | 'liveFeedService' | 'alertService' | null;
|
|
42
|
+
/** The two CME gate base URLs (contract C1: tier is a path over these, not a new env var). */
|
|
43
|
+
type SlotUrlKey = 'CME_V2_WEB_SOCKET' | 'CME_LIVE_FEED_URL' | 'OPRA_V2_WEB_SOCKET' | 'OPRA_LIVE_FEED_URL' | 'BLK_V2_WEB_SOCKET' | 'BLK_LIVE_FEED_URL' | null;
|
|
44
|
+
type SlotPathPrefix = '/live/' | '/delayed/' | '';
|
|
45
|
+
export interface SlotSpec {
|
|
46
|
+
/** Inbound handler + registry family. `parking` = a GOING_AWAY handover target, never opened directly. */
|
|
47
|
+
family: SlotFamily;
|
|
48
|
+
provider: SlotProvider;
|
|
49
|
+
tier: SlotTier;
|
|
50
|
+
auth: SlotAuth;
|
|
51
|
+
/** The gate sends its per-exchange tier control frame first on every entitled socket (CME reader + live-feed). */
|
|
52
|
+
sendsTierFrame: boolean;
|
|
53
|
+
/** Live-feed subscribe-envelope tweaks (brotli + version v2 + replay). */
|
|
54
|
+
subscribeParams: SlotSubscribeParams;
|
|
55
|
+
workerKeepalive: SlotWorkerKeepalive;
|
|
56
|
+
mainThreadKeepalive: SlotMainThreadKeepalive;
|
|
57
|
+
/** GOING_AWAY handover target; a `WsSlotId` (validated by the table-shape spec), or null: no parking target (a gate slot bounces on the notice instead, a core reader only reports it). */
|
|
58
|
+
parkingSlot: string | null;
|
|
59
|
+
urlKey: SlotUrlKey;
|
|
60
|
+
pathPrefix: SlotPathPrefix;
|
|
61
|
+
/** false = never opened on its own (the GOING_AWAY parking slots). */
|
|
62
|
+
connectable: boolean;
|
|
63
|
+
/** The reader wire it speaks: /v3 frames decode with the v3 codec and route by request id (`v3-requests.ts`). */
|
|
64
|
+
wire: 'v2' | 'v3';
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The gate's read deadline: it kicks any connection that has sent nothing for
|
|
68
|
+
* roughly this long (wire-measured 2026-07-27: 1006 at ~61s on every lane).
|
|
69
|
+
* The keepalive interval is set well inside it, and the wake path treats a
|
|
70
|
+
* sleep longer than this as proof the socket is already gone.
|
|
71
|
+
*/
|
|
72
|
+
export declare const CME_GATE_READ_DEADLINE_MS = 60000;
|
|
73
|
+
export declare const SOCKET_SLOTS: {
|
|
74
|
+
readonly liveFeed: {
|
|
75
|
+
readonly family: "livefeed";
|
|
76
|
+
readonly provider: "core";
|
|
77
|
+
readonly tier: null;
|
|
78
|
+
readonly auth: "frame";
|
|
79
|
+
readonly sendsTierFrame: false;
|
|
80
|
+
readonly subscribeParams: "brotliV2";
|
|
81
|
+
readonly workerKeepalive: null;
|
|
82
|
+
readonly mainThreadKeepalive: "liveFeedService";
|
|
83
|
+
readonly parkingSlot: "pendingCloseLiveFeed";
|
|
84
|
+
readonly urlKey: null;
|
|
85
|
+
readonly pathPrefix: "";
|
|
86
|
+
readonly connectable: true;
|
|
87
|
+
readonly wire: "v2";
|
|
88
|
+
};
|
|
89
|
+
readonly liveFeedOrderbook: {
|
|
90
|
+
readonly family: "livefeed";
|
|
91
|
+
readonly provider: "core";
|
|
92
|
+
readonly tier: null;
|
|
93
|
+
readonly auth: "frame";
|
|
94
|
+
readonly sendsTierFrame: false;
|
|
95
|
+
readonly subscribeParams: "brotliV2";
|
|
96
|
+
readonly workerKeepalive: null;
|
|
97
|
+
readonly mainThreadKeepalive: "liveFeedService";
|
|
98
|
+
readonly parkingSlot: "pendingCloseLiveFeedOrderbook";
|
|
99
|
+
readonly urlKey: null;
|
|
100
|
+
readonly pathPrefix: "";
|
|
101
|
+
readonly connectable: true;
|
|
102
|
+
readonly wire: "v2";
|
|
103
|
+
};
|
|
104
|
+
readonly liveFeedInCluster: {
|
|
105
|
+
readonly family: "livefeed";
|
|
106
|
+
readonly provider: "core";
|
|
107
|
+
readonly tier: null;
|
|
108
|
+
readonly auth: "frame";
|
|
109
|
+
readonly sendsTierFrame: false;
|
|
110
|
+
readonly subscribeParams: "brotliV2";
|
|
111
|
+
readonly workerKeepalive: null;
|
|
112
|
+
readonly mainThreadKeepalive: "liveFeedService";
|
|
113
|
+
readonly parkingSlot: "pendingCloseLiveFeedInCluster";
|
|
114
|
+
readonly urlKey: null;
|
|
115
|
+
readonly pathPrefix: "";
|
|
116
|
+
readonly connectable: true;
|
|
117
|
+
readonly wire: "v2";
|
|
118
|
+
};
|
|
119
|
+
readonly v2: {
|
|
120
|
+
readonly family: "reader";
|
|
121
|
+
readonly provider: "core";
|
|
122
|
+
readonly tier: null;
|
|
123
|
+
readonly auth: "none";
|
|
124
|
+
readonly sendsTierFrame: false;
|
|
125
|
+
readonly subscribeParams: null;
|
|
126
|
+
readonly workerKeepalive: "readerIdlePing";
|
|
127
|
+
readonly mainThreadKeepalive: "v2PingPong";
|
|
128
|
+
readonly parkingSlot: null;
|
|
129
|
+
readonly urlKey: null;
|
|
130
|
+
readonly pathPrefix: "";
|
|
131
|
+
readonly connectable: true;
|
|
132
|
+
readonly wire: "v2";
|
|
133
|
+
};
|
|
134
|
+
readonly v2Orderbook: {
|
|
135
|
+
readonly family: "reader";
|
|
136
|
+
readonly provider: "core";
|
|
137
|
+
readonly tier: null;
|
|
138
|
+
readonly auth: "none";
|
|
139
|
+
readonly sendsTierFrame: false;
|
|
140
|
+
readonly subscribeParams: null;
|
|
141
|
+
readonly workerKeepalive: "readerIdlePing";
|
|
142
|
+
readonly mainThreadKeepalive: "v2PingPong";
|
|
143
|
+
readonly parkingSlot: null;
|
|
144
|
+
readonly urlKey: null;
|
|
145
|
+
readonly pathPrefix: "";
|
|
146
|
+
readonly connectable: true;
|
|
147
|
+
readonly wire: "v2";
|
|
148
|
+
};
|
|
149
|
+
readonly v3: {
|
|
150
|
+
readonly family: "reader";
|
|
151
|
+
readonly provider: "v3";
|
|
152
|
+
readonly tier: null;
|
|
153
|
+
readonly auth: "none";
|
|
154
|
+
readonly sendsTierFrame: false;
|
|
155
|
+
readonly subscribeParams: null;
|
|
156
|
+
readonly workerKeepalive: "gatePing";
|
|
157
|
+
readonly mainThreadKeepalive: null;
|
|
158
|
+
readonly parkingSlot: null;
|
|
159
|
+
readonly urlKey: null;
|
|
160
|
+
readonly pathPrefix: "";
|
|
161
|
+
readonly connectable: true;
|
|
162
|
+
readonly wire: "v3";
|
|
163
|
+
};
|
|
164
|
+
readonly v3Orderbook: {
|
|
165
|
+
readonly family: "reader";
|
|
166
|
+
readonly provider: "v3";
|
|
167
|
+
readonly tier: null;
|
|
168
|
+
readonly auth: "none";
|
|
169
|
+
readonly sendsTierFrame: false;
|
|
170
|
+
readonly subscribeParams: null;
|
|
171
|
+
readonly workerKeepalive: "gatePing";
|
|
172
|
+
readonly mainThreadKeepalive: null;
|
|
173
|
+
readonly parkingSlot: null;
|
|
174
|
+
readonly urlKey: null;
|
|
175
|
+
readonly pathPrefix: "";
|
|
176
|
+
readonly connectable: true;
|
|
177
|
+
readonly wire: "v3";
|
|
178
|
+
};
|
|
179
|
+
readonly v3Shadow: {
|
|
180
|
+
readonly family: "reader";
|
|
181
|
+
readonly provider: "v3";
|
|
182
|
+
readonly tier: null;
|
|
183
|
+
readonly auth: "none";
|
|
184
|
+
readonly sendsTierFrame: false;
|
|
185
|
+
readonly subscribeParams: null;
|
|
186
|
+
readonly workerKeepalive: "gatePing";
|
|
187
|
+
readonly mainThreadKeepalive: null;
|
|
188
|
+
readonly parkingSlot: null;
|
|
189
|
+
readonly urlKey: null;
|
|
190
|
+
readonly pathPrefix: "";
|
|
191
|
+
readonly connectable: true;
|
|
192
|
+
readonly wire: "v3";
|
|
193
|
+
};
|
|
194
|
+
readonly blkV2: {
|
|
195
|
+
readonly family: "reader";
|
|
196
|
+
readonly provider: "blk";
|
|
197
|
+
readonly tier: null;
|
|
198
|
+
readonly auth: "none";
|
|
199
|
+
readonly sendsTierFrame: false;
|
|
200
|
+
readonly subscribeParams: null;
|
|
201
|
+
readonly workerKeepalive: null;
|
|
202
|
+
readonly mainThreadKeepalive: "v2PingPong";
|
|
203
|
+
readonly parkingSlot: null;
|
|
204
|
+
readonly urlKey: "BLK_V2_WEB_SOCKET";
|
|
205
|
+
readonly pathPrefix: "";
|
|
206
|
+
readonly connectable: true;
|
|
207
|
+
readonly wire: "v2";
|
|
208
|
+
};
|
|
209
|
+
readonly blkV3: {
|
|
210
|
+
readonly family: "reader";
|
|
211
|
+
readonly provider: "blk";
|
|
212
|
+
readonly tier: null;
|
|
213
|
+
readonly auth: "none";
|
|
214
|
+
readonly sendsTierFrame: false;
|
|
215
|
+
readonly subscribeParams: null;
|
|
216
|
+
readonly workerKeepalive: "gatePing";
|
|
217
|
+
readonly mainThreadKeepalive: null;
|
|
218
|
+
readonly parkingSlot: null;
|
|
219
|
+
readonly urlKey: "BLK_V2_WEB_SOCKET";
|
|
220
|
+
readonly pathPrefix: "";
|
|
221
|
+
readonly connectable: true;
|
|
222
|
+
readonly wire: "v3";
|
|
223
|
+
};
|
|
224
|
+
readonly blkLiveFeed: {
|
|
225
|
+
readonly family: "livefeed";
|
|
226
|
+
readonly provider: "blk";
|
|
227
|
+
readonly tier: null;
|
|
228
|
+
readonly auth: "frame";
|
|
229
|
+
readonly sendsTierFrame: false;
|
|
230
|
+
readonly subscribeParams: "brotliV2";
|
|
231
|
+
readonly workerKeepalive: "gatePing";
|
|
232
|
+
readonly mainThreadKeepalive: null;
|
|
233
|
+
readonly parkingSlot: null;
|
|
234
|
+
readonly urlKey: "BLK_LIVE_FEED_URL";
|
|
235
|
+
readonly pathPrefix: "";
|
|
236
|
+
readonly connectable: true;
|
|
237
|
+
readonly wire: "v2";
|
|
238
|
+
};
|
|
239
|
+
readonly cmeV2Realtime: {
|
|
240
|
+
readonly family: "reader";
|
|
241
|
+
readonly provider: "cme";
|
|
242
|
+
readonly tier: "realtime";
|
|
243
|
+
readonly auth: "frame";
|
|
244
|
+
readonly sendsTierFrame: true;
|
|
245
|
+
readonly subscribeParams: null;
|
|
246
|
+
readonly workerKeepalive: "gatePing";
|
|
247
|
+
readonly mainThreadKeepalive: null;
|
|
248
|
+
readonly parkingSlot: null;
|
|
249
|
+
readonly urlKey: "CME_V2_WEB_SOCKET";
|
|
250
|
+
readonly pathPrefix: "/live/";
|
|
251
|
+
readonly connectable: true;
|
|
252
|
+
readonly wire: "v2";
|
|
253
|
+
};
|
|
254
|
+
readonly cmeV2Delayed: {
|
|
255
|
+
readonly family: "reader";
|
|
256
|
+
readonly provider: "cme";
|
|
257
|
+
readonly tier: "delayed";
|
|
258
|
+
readonly auth: "frame";
|
|
259
|
+
readonly sendsTierFrame: true;
|
|
260
|
+
readonly subscribeParams: null;
|
|
261
|
+
readonly workerKeepalive: "gatePing";
|
|
262
|
+
readonly mainThreadKeepalive: null;
|
|
263
|
+
readonly parkingSlot: null;
|
|
264
|
+
readonly urlKey: "CME_V2_WEB_SOCKET";
|
|
265
|
+
readonly pathPrefix: "/delayed/";
|
|
266
|
+
readonly connectable: true;
|
|
267
|
+
readonly wire: "v2";
|
|
268
|
+
};
|
|
269
|
+
readonly cmeV3Realtime: {
|
|
270
|
+
readonly family: "reader";
|
|
271
|
+
readonly provider: "cme";
|
|
272
|
+
readonly tier: "realtime";
|
|
273
|
+
readonly auth: "frame";
|
|
274
|
+
readonly sendsTierFrame: true;
|
|
275
|
+
readonly subscribeParams: null;
|
|
276
|
+
readonly workerKeepalive: "gatePing";
|
|
277
|
+
readonly mainThreadKeepalive: null;
|
|
278
|
+
readonly parkingSlot: null;
|
|
279
|
+
readonly urlKey: "CME_V2_WEB_SOCKET";
|
|
280
|
+
readonly pathPrefix: "/live/";
|
|
281
|
+
readonly connectable: true;
|
|
282
|
+
readonly wire: "v3";
|
|
283
|
+
};
|
|
284
|
+
readonly cmeV3Delayed: {
|
|
285
|
+
readonly family: "reader";
|
|
286
|
+
readonly provider: "cme";
|
|
287
|
+
readonly tier: "delayed";
|
|
288
|
+
readonly auth: "frame";
|
|
289
|
+
readonly sendsTierFrame: true;
|
|
290
|
+
readonly subscribeParams: null;
|
|
291
|
+
readonly workerKeepalive: "gatePing";
|
|
292
|
+
readonly mainThreadKeepalive: null;
|
|
293
|
+
readonly parkingSlot: null;
|
|
294
|
+
readonly urlKey: "CME_V2_WEB_SOCKET";
|
|
295
|
+
readonly pathPrefix: "/delayed/";
|
|
296
|
+
readonly connectable: true;
|
|
297
|
+
readonly wire: "v3";
|
|
298
|
+
};
|
|
299
|
+
readonly cmeLiveFeedRealtime: {
|
|
300
|
+
readonly family: "livefeed";
|
|
301
|
+
readonly provider: "cme";
|
|
302
|
+
readonly tier: "realtime";
|
|
303
|
+
readonly auth: "frame";
|
|
304
|
+
readonly sendsTierFrame: true;
|
|
305
|
+
readonly subscribeParams: "brotliV2";
|
|
306
|
+
readonly workerKeepalive: "gatePing";
|
|
307
|
+
readonly mainThreadKeepalive: null;
|
|
308
|
+
readonly parkingSlot: null;
|
|
309
|
+
readonly urlKey: "CME_LIVE_FEED_URL";
|
|
310
|
+
readonly pathPrefix: "/live/";
|
|
311
|
+
readonly connectable: true;
|
|
312
|
+
readonly wire: "v2";
|
|
313
|
+
};
|
|
314
|
+
readonly cmeLiveFeedDelayed: {
|
|
315
|
+
readonly family: "livefeed";
|
|
316
|
+
readonly provider: "cme";
|
|
317
|
+
readonly tier: "delayed";
|
|
318
|
+
readonly auth: "frame";
|
|
319
|
+
readonly sendsTierFrame: true;
|
|
320
|
+
readonly subscribeParams: "brotliV2";
|
|
321
|
+
readonly workerKeepalive: "gatePing";
|
|
322
|
+
readonly mainThreadKeepalive: null;
|
|
323
|
+
readonly parkingSlot: null;
|
|
324
|
+
readonly urlKey: "CME_LIVE_FEED_URL";
|
|
325
|
+
readonly pathPrefix: "/delayed/";
|
|
326
|
+
readonly connectable: true;
|
|
327
|
+
readonly wire: "v2";
|
|
328
|
+
};
|
|
329
|
+
readonly opraV2Realtime: {
|
|
330
|
+
readonly family: "reader";
|
|
331
|
+
readonly provider: "opra";
|
|
332
|
+
readonly tier: "realtime";
|
|
333
|
+
readonly auth: "frame";
|
|
334
|
+
readonly sendsTierFrame: true;
|
|
335
|
+
readonly subscribeParams: null;
|
|
336
|
+
readonly workerKeepalive: "gatePing";
|
|
337
|
+
readonly mainThreadKeepalive: null;
|
|
338
|
+
readonly parkingSlot: null;
|
|
339
|
+
readonly urlKey: "OPRA_V2_WEB_SOCKET";
|
|
340
|
+
readonly pathPrefix: "/live/";
|
|
341
|
+
readonly connectable: true;
|
|
342
|
+
readonly wire: "v2";
|
|
343
|
+
};
|
|
344
|
+
readonly opraV2Delayed: {
|
|
345
|
+
readonly family: "reader";
|
|
346
|
+
readonly provider: "opra";
|
|
347
|
+
readonly tier: "delayed";
|
|
348
|
+
readonly auth: "frame";
|
|
349
|
+
readonly sendsTierFrame: true;
|
|
350
|
+
readonly subscribeParams: null;
|
|
351
|
+
readonly workerKeepalive: "gatePing";
|
|
352
|
+
readonly mainThreadKeepalive: null;
|
|
353
|
+
readonly parkingSlot: null;
|
|
354
|
+
readonly urlKey: "OPRA_V2_WEB_SOCKET";
|
|
355
|
+
readonly pathPrefix: "/delayed/";
|
|
356
|
+
readonly connectable: true;
|
|
357
|
+
readonly wire: "v2";
|
|
358
|
+
};
|
|
359
|
+
readonly opraLiveFeedRealtime: {
|
|
360
|
+
readonly family: "livefeed";
|
|
361
|
+
readonly provider: "opra";
|
|
362
|
+
readonly tier: "realtime";
|
|
363
|
+
readonly auth: "frame";
|
|
364
|
+
readonly sendsTierFrame: true;
|
|
365
|
+
readonly subscribeParams: "brotliV2";
|
|
366
|
+
readonly workerKeepalive: "gatePing";
|
|
367
|
+
readonly mainThreadKeepalive: null;
|
|
368
|
+
readonly parkingSlot: null;
|
|
369
|
+
readonly urlKey: "OPRA_LIVE_FEED_URL";
|
|
370
|
+
readonly pathPrefix: "/live/";
|
|
371
|
+
readonly connectable: true;
|
|
372
|
+
readonly wire: "v2";
|
|
373
|
+
};
|
|
374
|
+
readonly opraLiveFeedDelayed: {
|
|
375
|
+
readonly family: "livefeed";
|
|
376
|
+
readonly provider: "opra";
|
|
377
|
+
readonly tier: "delayed";
|
|
378
|
+
readonly auth: "frame";
|
|
379
|
+
readonly sendsTierFrame: true;
|
|
380
|
+
readonly subscribeParams: "brotliV2";
|
|
381
|
+
readonly workerKeepalive: "gatePing";
|
|
382
|
+
readonly mainThreadKeepalive: null;
|
|
383
|
+
readonly parkingSlot: null;
|
|
384
|
+
readonly urlKey: "OPRA_LIVE_FEED_URL";
|
|
385
|
+
readonly pathPrefix: "/delayed/";
|
|
386
|
+
readonly connectable: true;
|
|
387
|
+
readonly wire: "v2";
|
|
388
|
+
};
|
|
389
|
+
readonly kscriptAlert: {
|
|
390
|
+
readonly family: "alert";
|
|
391
|
+
readonly provider: "core";
|
|
392
|
+
readonly tier: null;
|
|
393
|
+
readonly auth: "frame";
|
|
394
|
+
readonly sendsTierFrame: false;
|
|
395
|
+
readonly subscribeParams: null;
|
|
396
|
+
readonly workerKeepalive: "alertPing";
|
|
397
|
+
readonly mainThreadKeepalive: "alertService";
|
|
398
|
+
readonly parkingSlot: null;
|
|
399
|
+
readonly urlKey: null;
|
|
400
|
+
readonly pathPrefix: "";
|
|
401
|
+
readonly connectable: true;
|
|
402
|
+
readonly wire: "v2";
|
|
403
|
+
};
|
|
404
|
+
readonly pendingCloseLiveFeed: {
|
|
405
|
+
readonly family: "parking";
|
|
406
|
+
readonly provider: "core";
|
|
407
|
+
readonly tier: null;
|
|
408
|
+
readonly auth: "none";
|
|
409
|
+
readonly sendsTierFrame: false;
|
|
410
|
+
readonly subscribeParams: null;
|
|
411
|
+
readonly workerKeepalive: null;
|
|
412
|
+
readonly mainThreadKeepalive: null;
|
|
413
|
+
readonly parkingSlot: null;
|
|
414
|
+
readonly urlKey: null;
|
|
415
|
+
readonly pathPrefix: "";
|
|
416
|
+
readonly connectable: false;
|
|
417
|
+
readonly wire: "v2";
|
|
418
|
+
};
|
|
419
|
+
readonly pendingCloseLiveFeedOrderbook: {
|
|
420
|
+
readonly family: "parking";
|
|
421
|
+
readonly provider: "core";
|
|
422
|
+
readonly tier: null;
|
|
423
|
+
readonly auth: "none";
|
|
424
|
+
readonly sendsTierFrame: false;
|
|
425
|
+
readonly subscribeParams: null;
|
|
426
|
+
readonly workerKeepalive: null;
|
|
427
|
+
readonly mainThreadKeepalive: null;
|
|
428
|
+
readonly parkingSlot: null;
|
|
429
|
+
readonly urlKey: null;
|
|
430
|
+
readonly pathPrefix: "";
|
|
431
|
+
readonly connectable: false;
|
|
432
|
+
readonly wire: "v2";
|
|
433
|
+
};
|
|
434
|
+
readonly pendingCloseLiveFeedInCluster: {
|
|
435
|
+
readonly family: "parking";
|
|
436
|
+
readonly provider: "core";
|
|
437
|
+
readonly tier: null;
|
|
438
|
+
readonly auth: "none";
|
|
439
|
+
readonly sendsTierFrame: false;
|
|
440
|
+
readonly subscribeParams: null;
|
|
441
|
+
readonly workerKeepalive: null;
|
|
442
|
+
readonly mainThreadKeepalive: null;
|
|
443
|
+
readonly parkingSlot: null;
|
|
444
|
+
readonly urlKey: null;
|
|
445
|
+
readonly pathPrefix: "";
|
|
446
|
+
readonly connectable: false;
|
|
447
|
+
readonly wire: "v2";
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
/** THE slot union — every other slot-id type is an alias or subset of this. */
|
|
451
|
+
export type WsSlotId = keyof typeof SOCKET_SLOTS;
|
|
452
|
+
type SlotIdOfFamily<F extends SlotFamily> = {
|
|
453
|
+
[K in WsSlotId]: (typeof SOCKET_SLOTS)[K]['family'] extends F ? K : never;
|
|
454
|
+
}[WsSlotId];
|
|
455
|
+
/** Reader (tsdb RPC) slots: the core pair + the CME gate realtime/delayed tiers. */
|
|
456
|
+
export type ReaderSlotId = SlotIdOfFamily<'reader'>;
|
|
457
|
+
/** Live-feed slots tracked by transport health: core trio + CME gate realtime/delayed tiers. */
|
|
458
|
+
export type LivefeedSlotId = SlotIdOfFamily<'livefeed'>;
|
|
459
|
+
type SlotIdOfFamilyAndProvider<F extends SlotFamily, P extends SlotProvider> = {
|
|
460
|
+
[K in SlotIdOfFamily<F>]: (typeof SOCKET_SLOTS)[K]['provider'] extends P ? K : never;
|
|
461
|
+
}[SlotIdOfFamily<F>];
|
|
462
|
+
/** Core (ungoverned) reader slots. */
|
|
463
|
+
export type CoreReaderSlotId = SlotIdOfFamilyAndProvider<'reader', 'core'>;
|
|
464
|
+
/** Readers authenticating each RPC rather than the connection. */
|
|
465
|
+
export type RpcAuthReaderSlotId = CoreReaderSlotId | 'blkV2';
|
|
466
|
+
/** Core (ungoverned) live-feed slots. */
|
|
467
|
+
export type CoreLivefeedSlotId = SlotIdOfFamilyAndProvider<'livefeed', 'core'>;
|
|
468
|
+
/** CME gate reader tiers. */
|
|
469
|
+
export type CmeReaderSlotId = SlotIdOfFamilyAndProvider<'reader', 'cme'>;
|
|
470
|
+
/** CME gate live-feed tiers; a mixed-tier user holds both (realtime ticks + delayed book). */
|
|
471
|
+
export type CmeLivefeedSlotId = SlotIdOfFamilyAndProvider<'livefeed', 'cme'>;
|
|
472
|
+
/** Reader slots on the /v3 mount (`v3`, `v3Orderbook`, `v3Shadow`): one codec, one request table, one token bucket. */
|
|
473
|
+
export type V3ReaderSlotId = SlotIdOfFamilyAndProvider<'reader', 'v3'>;
|
|
474
|
+
/** The CME gate's /v3 reader tiers. */
|
|
475
|
+
export type CmeV3ReaderSlotId = 'cmeV3Realtime' | 'cmeV3Delayed';
|
|
476
|
+
/** The blk host's /v3 reader. */
|
|
477
|
+
export type BlkV3ReaderSlotId = 'blkV3';
|
|
478
|
+
/** Every reader speaking the /v3 wire: the tsdb-gateway mount's slots, the CME gate's /v3 tiers and the blk host's. */
|
|
479
|
+
export type V3WireSlotId = V3ReaderSlotId | CmeV3ReaderSlotId | BlkV3ReaderSlotId;
|
|
480
|
+
export declare const CME_READER_SLOT_IDS: readonly SlotIdOfFamilyAndProvider<"reader", "cme">[];
|
|
481
|
+
export declare const CME_LIVEFEED_SLOT_IDS: readonly SlotIdOfFamilyAndProvider<"livefeed", "cme">[];
|
|
482
|
+
export type CmeTier = Exclude<SlotTier, null>;
|
|
483
|
+
/**
|
|
484
|
+
* The gate slot serving each (family, tier). `satisfies` makes the compiler
|
|
485
|
+
* reject a missing pairing, so a new `SlotTier` member cannot ship unrouted;
|
|
486
|
+
* the table-shape spec checks the entries against each row's own tier/family.
|
|
487
|
+
*/
|
|
488
|
+
declare const CME_SLOT_BY_FAMILY_TIER: {
|
|
489
|
+
readonly reader: {
|
|
490
|
+
readonly realtime: "cmeV2Realtime";
|
|
491
|
+
readonly delayed: "cmeV2Delayed";
|
|
492
|
+
};
|
|
493
|
+
readonly livefeed: {
|
|
494
|
+
readonly realtime: "cmeLiveFeedRealtime";
|
|
495
|
+
readonly delayed: "cmeLiveFeedDelayed";
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
export declare function cmeSlotForTier<F extends 'reader' | 'livefeed', T extends CmeTier>(family: F, tier: T): (typeof CME_SLOT_BY_FAMILY_TIER)[F][T];
|
|
499
|
+
/** The /v3 twin of a CME reader tier: a routed read rides the same tier its v2 read would. */
|
|
500
|
+
export declare function cmeV3ReaderFor(slot: CmeReaderSlotId): CmeV3ReaderSlotId;
|
|
501
|
+
export declare function isCmeV3ReaderSlot(wsType: string): wsType is CmeV3ReaderSlotId;
|
|
502
|
+
/** A reader speaking /v3: its frames decode with the v3 codec and route by request id. */
|
|
503
|
+
export declare function isV3WireSlot(wsType: string): wsType is V3WireSlotId;
|
|
504
|
+
/** The ungated core reader; `v2` names the slot, and a routed read on it may still ask /v3. */
|
|
505
|
+
export declare function isPlainReaderSlot(wsType: string): wsType is 'v2';
|
|
506
|
+
/** The blk host's v2 reader; a routed read on it may still ask /v3 on `blkV3`. */
|
|
507
|
+
export declare function isBlkReaderSlot(wsType: string): wsType is 'blkV2';
|
|
508
|
+
export declare function isCmeReaderSlot(wsType: string): wsType is CmeReaderSlotId;
|
|
509
|
+
export declare function isCmeLivefeedSlot(wsType: string): wsType is CmeLivefeedSlotId;
|
|
510
|
+
export type GateProvider = 'cme' | 'opra';
|
|
511
|
+
export type OpraReaderSlotId = SlotIdOfFamilyAndProvider<'reader', 'opra'>;
|
|
512
|
+
export type OpraLivefeedSlotId = SlotIdOfFamilyAndProvider<'livefeed', 'opra'>;
|
|
513
|
+
export type GateReaderSlotId = CmeReaderSlotId | OpraReaderSlotId;
|
|
514
|
+
export type GateLivefeedSlotId = CmeLivefeedSlotId | OpraLivefeedSlotId;
|
|
515
|
+
export declare const OPRA_READER_SLOT_IDS: readonly SlotIdOfFamilyAndProvider<"reader", "opra">[];
|
|
516
|
+
export declare const OPRA_LIVEFEED_SLOT_IDS: readonly SlotIdOfFamilyAndProvider<"livefeed", "opra">[];
|
|
517
|
+
export declare const GATE_READER_SLOT_IDS_BY_PROVIDER: Record<GateProvider, readonly GateReaderSlotId[]>;
|
|
518
|
+
export declare const GATE_LIVEFEED_SLOT_IDS_BY_PROVIDER: Record<GateProvider, readonly GateLivefeedSlotId[]>;
|
|
519
|
+
/** Every gate plane's reader tiers, for the plane-neutral sweeps (sleep heal, idle release). */
|
|
520
|
+
export declare const GATE_READER_SLOT_IDS: readonly GateReaderSlotId[];
|
|
521
|
+
/** Every gate plane's live-feed tiers, for the plane-neutral sweeps. */
|
|
522
|
+
export declare const GATE_LIVEFEED_SLOT_IDS: readonly GateLivefeedSlotId[];
|
|
523
|
+
/**
|
|
524
|
+
* The gate slot serving each (provider, family, tier). `satisfies` makes the
|
|
525
|
+
* compiler reject a plane missing a tier pairing, so a new provider cannot
|
|
526
|
+
* ship unrouted; the table-shape spec checks the entries against each row.
|
|
527
|
+
*/
|
|
528
|
+
declare const GATE_SLOT_BY_PROVIDER_FAMILY_TIER: {
|
|
529
|
+
readonly cme: {
|
|
530
|
+
readonly reader: {
|
|
531
|
+
readonly realtime: "cmeV2Realtime";
|
|
532
|
+
readonly delayed: "cmeV2Delayed";
|
|
533
|
+
};
|
|
534
|
+
readonly livefeed: {
|
|
535
|
+
readonly realtime: "cmeLiveFeedRealtime";
|
|
536
|
+
readonly delayed: "cmeLiveFeedDelayed";
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
readonly opra: {
|
|
540
|
+
readonly reader: {
|
|
541
|
+
readonly realtime: "opraV2Realtime";
|
|
542
|
+
readonly delayed: "opraV2Delayed";
|
|
543
|
+
};
|
|
544
|
+
readonly livefeed: {
|
|
545
|
+
readonly realtime: "opraLiveFeedRealtime";
|
|
546
|
+
readonly delayed: "opraLiveFeedDelayed";
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
export declare function gateSlotForTier<P extends GateProvider, F extends 'reader' | 'livefeed', T extends CmeTier>(provider: P, family: F, tier: T): (typeof GATE_SLOT_BY_PROVIDER_FAMILY_TIER)[P][F][T];
|
|
551
|
+
/** The gate plane a slot belongs to, or null for the core, v3 and blk slots. */
|
|
552
|
+
export declare function gateProviderOf(wsType: string): GateProvider | null;
|
|
553
|
+
export declare function isGateReaderSlot(wsType: string): wsType is GateReaderSlotId;
|
|
554
|
+
export declare function isGateLivefeedSlot(wsType: string): wsType is GateLivefeedSlotId;
|
|
555
|
+
/** A gate slot on its delayed path tier (plane-neutral spelling of the `=== 'cmeV2Delayed'` tests). */
|
|
556
|
+
export declare function isDelayedTierSlot(wsType: string): boolean;
|
|
557
|
+
export declare function isCoreReaderSlot(wsType: string): wsType is CoreReaderSlotId;
|
|
558
|
+
export declare function isCoreLivefeedSlot(wsType: string): wsType is CoreLivefeedSlotId;
|
|
559
|
+
export declare function isV3ReaderSlot(wsType: string): wsType is V3ReaderSlotId;
|
|
560
|
+
export declare const READER_SLOT_IDS: readonly ReaderSlotId[];
|
|
561
|
+
export declare const LIVEFEED_SLOT_IDS: readonly LivefeedSlotId[];
|
|
562
|
+
/** Reader-family slot (was `isV2Connection`): frame auth is skipped, open-waiters/state listeners apply. */
|
|
563
|
+
export declare function isReaderSlot(id: WsSlotId): id is ReaderSlotId;
|
|
564
|
+
/** Live-feed-family slot (core or CME gate): transport-health tracked, brotli subscribe envelope. */
|
|
565
|
+
export declare function isLivefeedSlot(id: WsSlotId): id is LivefeedSlotId;
|
|
566
|
+
/**
|
|
567
|
+
* Slots the worker bootstrap may open before worker-impl loads: a bare
|
|
568
|
+
* `new WebSocket(url)` is their COMPLETE handshake, so the connect overlaps the
|
|
569
|
+
* heavy import. Frame-authenticated slots can't — the bootstrap sends no frame.
|
|
570
|
+
* `v3Shadow`, `v3Orderbook` and `blkV3` are never boot sockets. The bootstrap
|
|
571
|
+
* reads its own copy (worker-bootstrap.ts, pinned to this list by its spec).
|
|
572
|
+
*/
|
|
573
|
+
export declare const EARLY_CONNECT_SLOT_IDS: readonly WsSlotId[];
|
|
574
|
+
export {};
|