@orangecharts/wrun-chart-host 0.1.0 → 0.3.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 +39 -6
- 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/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 +161 -5
- package/dist/host-ports.types.d.ts +446 -0
- package/dist/host-ports.types.js +1 -0
- package/dist/index.d.ts +131 -0
- package/dist/index.js +131 -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/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/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/om-panel.util.js +6 -0
- package/dist/utility/chart/om-widget.util.d.ts +4 -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/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-run-result.util.js +10 -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/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 +30 -0
- package/dist/utility/wrun/sources/lanes/option_daily.js +53 -0
- package/dist/utility/wrun/sources/lanes/option_stats_10m.d.ts +23 -0
- package/dist/utility/wrun/sources/lanes/option_stats_10m.js +20 -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 +196 -0
- package/dist/utility/wrun/sources/opra-option-lanes.util.js +446 -0
- package/dist/utility/wrun/sources/registry.d.ts +21 -0
- package/dist/utility/wrun/sources/registry.js +207 -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 +6 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +70 -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 +13 -0
- package/dist/utility/wrun/sources/row-lanes/option_strikes.js +137 -0
- package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +38 -0
- package/dist/utility/wrun/sources/row-lanes/option_surface.js +150 -0
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +275 -0
- package/dist/utility/wrun/sources/wrun-poll-lane.types.js +26 -0
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +224 -0
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +394 -0
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +283 -0
- package/dist/utility/wrun/sources/wrun-row-lane.types.js +16 -0
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +205 -0
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +469 -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-color-settings.util.js +1 -1
- 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-failure-cause.d.ts +39 -0
- package/dist/utility/wrun/wrun-failure-cause.js +94 -0
- package/dist/utility/wrun/wrun-frames.d.ts +28 -3
- package/dist/utility/wrun/wrun-frames.js +132 -52
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +167 -4
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +47 -2
- package/dist/utility/wrun/wrun-hosted-wire.util.d.ts +5 -2
- package/dist/utility/wrun/wrun-hosted-wire.util.js +4 -2
- 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 +30 -0
- package/dist/utility/wrun/wrun-opra-stats.leaf.js +96 -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-pack.util.d.ts +6 -2
- package/dist/utility/wrun/wrun-pack.util.js +13 -3
- 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-param-values.util.d.ts +8 -0
- package/dist/utility/wrun/wrun-param-values.util.js +8 -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-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 +95 -7
- package/dist/utility/wrun/wrun-refusal.util.js +314 -18
- 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-render-select.util.js +1 -0
- package/dist/utility/wrun/wrun-row-market.util.d.ts +29 -0
- package/dist/utility/wrun/wrun-row-market.util.js +92 -0
- 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-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-symbol-code.util.d.ts +32 -0
- package/dist/utility/wrun/wrun-symbol-code.util.js +56 -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,200 @@
|
|
|
1
|
+
export type VolumeProfileBucket = [number, number, number, number, ...number[]];
|
|
2
|
+
/** True when any bucket in the list carries the trade-count extension. */
|
|
3
|
+
export declare function bucketsHaveCounts(buckets: VolumeProfileBucket[]): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Folds source-bucket counts into an accumulating target under the pipeline's
|
|
6
|
+
* all-or-nothing rule (mirrors the backend merge): counts survive only when
|
|
7
|
+
* BOTH sides carry them; a countless contributor strips the target back to a
|
|
8
|
+
* countless 4-element bucket. Volumes are handled by the caller.
|
|
9
|
+
*/
|
|
10
|
+
export declare function foldBucketCounts(target: VolumeProfileBucket, source: VolumeProfileBucket): void;
|
|
11
|
+
/**
|
|
12
|
+
* Row-level counts normalization for merged wide rows: when a row ends up
|
|
13
|
+
* MIXED (some buckets counts-bearing, some not, i.e. a countless contributor
|
|
14
|
+
* only overlapped part of the price range), strip counts from the whole row
|
|
15
|
+
* so it never presents partial counts as authoritative. Uniform rows pass
|
|
16
|
+
* through untouched. Mutates and returns the bucket list.
|
|
17
|
+
*/
|
|
18
|
+
export declare function normalizeRowCounts(buckets: VolumeProfileBucket[]): VolumeProfileBucket[];
|
|
19
|
+
/**
|
|
20
|
+
* The decode-side alignment guard for the optional counts extension: valid
|
|
21
|
+
* only when it is a [buyCount, sellCount] pair per profile triplet. Empty or
|
|
22
|
+
* misaligned arrays mean "counts unavailable" (never fabricate zeros).
|
|
23
|
+
*/
|
|
24
|
+
export declare function alignedProfileCounts(counts: unknown, profileLength: number): number[] | null;
|
|
25
|
+
/**
|
|
26
|
+
* Fill price gaps between volume profile buckets with zero-value buckets.
|
|
27
|
+
* This is a stateless utility function.
|
|
28
|
+
*/
|
|
29
|
+
export declare function fillVolumeProfilePriceGaps(data: any[], barHeight: number): any[];
|
|
30
|
+
/**
|
|
31
|
+
* Fill price gaps in sorted buckets array with zero-value buckets.
|
|
32
|
+
* Used within rebucketVolumeProfile after aggregation.
|
|
33
|
+
*/
|
|
34
|
+
export declare function fillVolumeProfileBucketPriceGaps(sortedBuckets: VolumeProfileBucket[], barHeight: number, precision: number): VolumeProfileBucket[];
|
|
35
|
+
/**
|
|
36
|
+
* Aggregate volume-profile buckets onto a coarser zero-based price grid of width
|
|
37
|
+
* `targetBarHeight`. Each source bucket's `priceLow` is floored to the grid; buy/sell
|
|
38
|
+
* volumes are summed per target cell. Returns target buckets sorted ascending. No gap-fill.
|
|
39
|
+
* Footprint and prediction grids opt into division-dust tolerance (the live fold's
|
|
40
|
+
* `floorFootprintGridIndex`) so exact boundary prices stay in their cell.
|
|
41
|
+
*/
|
|
42
|
+
export declare function rebucketBuckets(buckets: VolumeProfileBucket[], targetBarHeight: number, precision: number, clampToData?: boolean, tolerateFloatDust?: boolean): VolumeProfileBucket[];
|
|
43
|
+
/**
|
|
44
|
+
* Re-bucket a wide-row dataset ([timestamp, ...buckets][]) to `targetBarHeight`, filling
|
|
45
|
+
* price gaps afterwards. Behavior matches the formerly-private Volume Footprint method.
|
|
46
|
+
*/
|
|
47
|
+
export declare function rebucketVolumeProfile(data: (number | number[])[][], targetBarHeight: number, minimumBarHeight: number, clampToData?: boolean, tolerateFloatDust?: boolean): (number | number[])[][];
|
|
48
|
+
/**
|
|
49
|
+
* The row spacing a VOLUME_PROFILE_AGG response was ACTUALLY served on: the
|
|
50
|
+
* minimum positive delta between consecutive sorted level prices, folded
|
|
51
|
+
* across every point in the response. Returns null when nothing is measurable
|
|
52
|
+
* (no points, malformed aggregations, single-level profiles).
|
|
53
|
+
*
|
|
54
|
+
* Why it exists: the FE requests rows at its assumed block size, but the gate
|
|
55
|
+
* serves ONE advertised grid per instrument, and after a server-side
|
|
56
|
+
* block-size change (the CME exchange-tick move) history past raw-trade
|
|
57
|
+
* retention keeps arriving on the OLD, coarser grid. The assumed block is a
|
|
58
|
+
* request parameter, never a description of the response.
|
|
59
|
+
*
|
|
60
|
+
* Per-point deltas only (each timestamp's profile sits on one grid); prices
|
|
61
|
+
* are sorted defensively and zero deltas (duplicate levels) are skipped.
|
|
62
|
+
* The 9-significant-digit snap mirrors measureServedRowSpacing in
|
|
63
|
+
* heatmap-tile-height.util: it kills binary subtraction dust before the value
|
|
64
|
+
* becomes a stamped row height, while exceeding any real block's precision.
|
|
65
|
+
*
|
|
66
|
+
* A spacing counts as the served GRID only when every level sits on a
|
|
67
|
+
* multiple of it (`levelsOnLattice`). Profiles omit zero-volume levels, so a
|
|
68
|
+
* venue whose catalog block is FINER than its exchange tick (Binance PUMPUSDT:
|
|
69
|
+
* block 3.28125e-7 on a 1e-6 tick; Hyperliquid xyz:SNDK: 0.06 on 0.1) serves
|
|
70
|
+
* one level per traded tick, ~3 or ~2 blocks apart, and the minimum delta
|
|
71
|
+
* reads the TICK, not a grid: stamping it made rows 3 blocks tall on lows 2
|
|
72
|
+
* blocks off that lattice, and the live fold (zero-based on the stamped
|
|
73
|
+
* height) interleaved a second lattice into every bar (2026-09-14 field
|
|
74
|
+
* case). Null there, so the assumed block stays the stamp.
|
|
75
|
+
*/
|
|
76
|
+
export declare function measureServedProfileSpacing(points: unknown[] | null | undefined): number | null;
|
|
77
|
+
/** Every finite level price in a VOLUME_PROFILE_AGG response, wire order, duplicates kept. */
|
|
78
|
+
export declare function servedProfileLevels(points: unknown[] | null | undefined): number[];
|
|
79
|
+
/**
|
|
80
|
+
* Whether a measured spacing coarser than the block is the EXCHANGE TICK
|
|
81
|
+
* showing through sparse rows rather than a served grid: the catalog block is
|
|
82
|
+
* finer than the tick (one level per traded tick, nothing between), the tick
|
|
83
|
+
* is NOT a whole number of blocks, and the spacing is the tick to within one
|
|
84
|
+
* block (the tick rounded onto the block lattice). Unknown tick: false, the
|
|
85
|
+
* lattice test alone decides.
|
|
86
|
+
*
|
|
87
|
+
* The whole-multiple exemption carries two cases. (1) When the block divides
|
|
88
|
+
* the tick (NEARUSDT: catalog 0.0002 under a 0.001 tick), every per-tick level
|
|
89
|
+
* IS a multiple of the tick spacing, so stamping it puts the rows and the
|
|
90
|
+
* zero-based live fold on the same lattice: harmless, and exactly the
|
|
91
|
+
* served-coarse handling the 2026-09-12 NEAR fix relies on. Only a tick that
|
|
92
|
+
* is a fractional number of blocks (PUMPUSDT 3.05, xyz:SNDK 1.67) lands levels
|
|
93
|
+
* off the spacing's lattice. (2) The tick is an ESTIMATE (inferPriceTickFromRows,
|
|
94
|
+
* the smallest gap in a candle sample), which can only ever be the tick or a
|
|
95
|
+
* whole multiple of it; on a tick-snapped catalog (CME 0.25 block, 0.25 tick)
|
|
96
|
+
* an over-estimate of 2.0 is 8 blocks, so genuine pre-regrid 2.0 history is
|
|
97
|
+
* never mistaken for sparsity and keeps its served height.
|
|
98
|
+
*/
|
|
99
|
+
export declare function isSparseTickSpacing(blockSize: number, spacing: number, priceTick?: number | null, levels?: readonly number[]): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* The row height to stamp on parsed profile buckets: the measured served
|
|
102
|
+
* spacing when it is LARGER than the assumed block (coarse pre-change history
|
|
103
|
+
* would otherwise render thin bars with zero-filled gaps between levels), the
|
|
104
|
+
* assumed block otherwise. A finer-than-assumed measurement keeps the assumed
|
|
105
|
+
* block: parse-time toFixed snapping and the rebucket lane already own that
|
|
106
|
+
* direction, and venues serving exactly the assumed grid (crypto) stay
|
|
107
|
+
* byte-identical. Degenerate measurements keep the assumed block; a
|
|
108
|
+
* degenerate assumed block falls back to a valid measurement. With the
|
|
109
|
+
* exchange tick known (`priceTick`, the footprint anchor), a coarser
|
|
110
|
+
* measurement that is the tick showing through sparse rows keeps the block
|
|
111
|
+
* (`isSparseTickSpacing`; pass the response's `levels` so the call can demand
|
|
112
|
+
* positive evidence of per-tick rows before overriding an aligned grid).
|
|
113
|
+
*/
|
|
114
|
+
export declare function resolveServedProfileRowHeight(assumedBlockSize: number, measuredSpacing: number | null, priceTick?: number | null, levels?: readonly number[]): number;
|
|
115
|
+
export declare function resolveServedProfileRowHeightPerPoint(points: unknown[] | null | undefined, assumedBlockSize: number, priceTick?: number | null): number[];
|
|
116
|
+
/**
|
|
117
|
+
* The largest parse-stamped bucket height across wide rows — the coarsest grid
|
|
118
|
+
* actually present in the window. Each row carries ONE height by construction
|
|
119
|
+
* (parse stamps a single rowHeight per point), so only the first usable bucket
|
|
120
|
+
* per row is read. 0 when no bucket is found.
|
|
121
|
+
*/
|
|
122
|
+
export declare function maxProfileBucketHeight(rows: (number | number[])[][]): number;
|
|
123
|
+
/**
|
|
124
|
+
* Completion-side grid normalizer for window profiles. When the parsed rows
|
|
125
|
+
* carry MIXED bucket heights (recent tick-grid minutes plus coarser history in
|
|
126
|
+
* the same window), a merged profile cannot ride the fine grid: fine and
|
|
127
|
+
* coarse rows would overlap at incompatible anchors and the reduction walks
|
|
128
|
+
* row COUNTS, not price spans. Rebucket the whole window to the COARSEST
|
|
129
|
+
* served height so every bar is honest at the resolution the data actually
|
|
130
|
+
* has. A user-raised barHeight participates by rounding to the NEAREST
|
|
131
|
+
* multiple of the served coarse height (floor-assignment by priceLow can move
|
|
132
|
+
* a wide served bucket outside a non-multiple cell's span — e.g. 2.0-wide
|
|
133
|
+
* rows into 2.25 cells); with no coarse rows present the user height applies
|
|
134
|
+
* exactly, and uniform fine-grid windows (crypto, recent-only CME) keep the
|
|
135
|
+
* legacy branches byte-identically.
|
|
136
|
+
*/
|
|
137
|
+
export declare function finalizeVolumeProfileGrid(rows: any[], barHeight: number | undefined, minimumBarHeight: number): any[];
|
|
138
|
+
/**
|
|
139
|
+
* The price grid `finalizeVolumeProfileGrid` puts the rows on, derived from
|
|
140
|
+
* the SAME branch math so the two can never drift: the served-coarse target,
|
|
141
|
+
* else the user height, else the minimum block. This is the grid the live
|
|
142
|
+
* fold must adopt (aggregated-volume-profile-storage `stageEffectiveGrid`):
|
|
143
|
+
* live buckets folded at the requested height instead landed on a different
|
|
144
|
+
* lattice than the fetched rows and never merged (CME mixed-height windows;
|
|
145
|
+
* the 2026-08 "Delta Profile freezes / stacks above" reports). `null` when
|
|
146
|
+
* the rows carry no usable bucket: an empty response must never overwrite a
|
|
147
|
+
* committed grid.
|
|
148
|
+
*/
|
|
149
|
+
export declare function resolveFinalizedProfileGridHeight(rows: any[], barHeight: number | undefined, minimumBarHeight: number): number | null;
|
|
150
|
+
/** Rows split by their parsed (served) bucket height relative to the render height. */
|
|
151
|
+
export interface ServedHeightSplit {
|
|
152
|
+
/** Rows on (or finer than) the render grid: the legacy rebucket/gap-fill lane. */
|
|
153
|
+
fineRows: (number | number[])[][];
|
|
154
|
+
/** Rows served COARSER than the render height, grouped by their served height. */
|
|
155
|
+
coarseRowsByHeight: Map<number, (number | number[])[][]>;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Partition footprint rows by the grid they were ACTUALLY served on, read
|
|
159
|
+
* from the parse-stamped bucket height (resolveServedProfileRowHeight makes
|
|
160
|
+
* that stamp honest per response). Rows coarser than the render height cannot
|
|
161
|
+
* ride the legacy lane: rebucketting them onto the finer requested grid parks
|
|
162
|
+
* thin cells at floored rungs, and gap-filling at the render height inserts
|
|
163
|
+
* zero fillers between levels that were never separate. Callers process the
|
|
164
|
+
* coarse groups at their own served height and the fine rows exactly as
|
|
165
|
+
* before, which keeps on-grid venues byte-identical (empty coarse map).
|
|
166
|
+
* The relative epsilon absorbs settings-product float dust (0.1 x 3) so it
|
|
167
|
+
* can never move a row between lanes on its own.
|
|
168
|
+
*/
|
|
169
|
+
export declare function splitFootprintRowsByServedHeight(rows: (number | number[])[][], renderBarHeight: number): ServedHeightSplit;
|
|
170
|
+
/**
|
|
171
|
+
* Rows whose parse-stamped bucket height is FINER than `targetHeight`,
|
|
172
|
+
* rebucketed onto it; every other row is returned as the same reference.
|
|
173
|
+
* The gateway's served block varies across a response's windows (TAOUSDT
|
|
174
|
+
* alternated 0.1, 0.05 and 0.02 hour to hour on 2026-09-23) and each frame
|
|
175
|
+
* parses on its own series.blockSize, while the render height follows the
|
|
176
|
+
* response's block (the overlay's block when frames disagree): banded as-is,
|
|
177
|
+
* a finer frame's levels each become a full render-height cell and the cells
|
|
178
|
+
* stack. The floor is dust-tolerant because the levels are gateway-floored
|
|
179
|
+
* multiples of their served block: a level on a target rung boundary (314.3
|
|
180
|
+
* on 0.1, quotient 3142.9999999999995) must stay on its rung.
|
|
181
|
+
*/
|
|
182
|
+
export declare function regridRowsServedFinerThan(rows: (number | number[])[][], targetHeight: number): (number | number[])[][];
|
|
183
|
+
/**
|
|
184
|
+
* The price height (pHigh - pLow) of the first usable bucket across the given wide rows,
|
|
185
|
+
* i.e. the grid granularity the data currently uses. Returns 0 when no bucket is found.
|
|
186
|
+
*/
|
|
187
|
+
export declare function getProfileBucketHeight(rows: (number | number[])[][]): number;
|
|
188
|
+
/**
|
|
189
|
+
* Normalize a user-supplied `ticksPerBar` value: floor to an integer, clamp to [1, 500],
|
|
190
|
+
* and fall back to 1 for anything non-finite or < 1.
|
|
191
|
+
*/
|
|
192
|
+
export declare function normalizeTicksPerBar(value: unknown): number;
|
|
193
|
+
/**
|
|
194
|
+
* Snap freshly-parsed live buckets onto the price grid already established by existing
|
|
195
|
+
* historical rows. Computes the integer factor N = round(historicalGridHeight / liveBucketHeight)
|
|
196
|
+
* and only re-buckets when N >= 2 (i.e. the source uses ticksPerBar >= 2); otherwise the live
|
|
197
|
+
* buckets are returned unchanged so default (per-level) behavior is preserved. `Math.round`
|
|
198
|
+
* absorbs float noise in the ratio — real ticksPerBar is always an integer, so N is too.
|
|
199
|
+
*/
|
|
200
|
+
export declare function alignBucketsToGrid(liveBuckets: VolumeProfileBucket[], existingRows: (number | number[])[][]): VolumeProfileBucket[];
|