@orangecharts/wrun-chart-host 0.2.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 +14 -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 +128 -0
- package/dist/index.js +128 -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/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-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-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 +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-param-map.util.d.ts +298 -0
- package/dist/utility/wrun/wrun-param-map.util.js +581 -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 +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-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,149 @@
|
|
|
1
|
+
import type { RuntimeDiagnostic } from '../../interfaces/kscript-diagnostics.interface.js';
|
|
2
|
+
import type { WrunIndicatorMetadata } from '../../interfaces/wrun-runtime.interface.js';
|
|
3
|
+
import { WRUN_PIN_VENUE_UNKNOWN_CODE, type WrunPinnedLegRefusal } from './wrun-pin-venues.util.js';
|
|
4
|
+
import type { WrunPinnedMarket } from './wrun-source-rows.util.js';
|
|
5
|
+
/** A pin no market of ours answers to, as written or as the tables map it: refused by name before any fetch. */
|
|
6
|
+
export declare const WRUN_PIN_UNRESOLVABLE_CODE = "wrun_pin_unresolvable";
|
|
7
|
+
/** The catalog has not answered for a foreign spelling yet: ask it, then resolve again. */
|
|
8
|
+
export declare const WRUN_PIN_CATALOG_PENDING = "catalog-pending";
|
|
9
|
+
/** The legend note row of a respelled pin, and the run-owned set its publisher replaces per run. */
|
|
10
|
+
export declare const WRUN_PIN_RESPELLED_CODE = "WRUN_PIN_RESPELLED";
|
|
11
|
+
export declare const WRUN_PIN_ROW_CODES: ReadonlySet<string>;
|
|
12
|
+
/** The note's words: "Pinned {pin} runs as {market}." (every locale bundle). */
|
|
13
|
+
export declare const WRUN_PIN_RESPELLED_NOTE_KEY = "wrun.pin.respelled";
|
|
14
|
+
/** A pin as text (`EXCHANGE:SYMBOL`, `EXCHANGE/SYMBOL`, `EXCHANGE|SYMBOL`, `OPENMARKET:<key>`) or as a sheet's halves. */
|
|
15
|
+
export type WrunPinInput = string | WrunPinnedMarket;
|
|
16
|
+
/** One identity to ask the catalog for: a raw symbol where the form is known, else the normalized pair. */
|
|
17
|
+
export interface WrunPinCandidate {
|
|
18
|
+
exchange: string;
|
|
19
|
+
rawSymbol?: string;
|
|
20
|
+
normalizedSymbol?: string;
|
|
21
|
+
}
|
|
22
|
+
/** A market the catalog answered (venue names, never enum numbers). */
|
|
23
|
+
export interface WrunPinCatalogRow {
|
|
24
|
+
exchange: string;
|
|
25
|
+
rawSymbol: string;
|
|
26
|
+
}
|
|
27
|
+
/** The catalog's answer for one candidate: the market, `null` (asked, none), `unavailable` (the ask failed), or
|
|
28
|
+
* `undefined` (never asked: the catalog is pending for it). */
|
|
29
|
+
export type WrunPinCatalogLookup = (candidate: WrunPinCandidate) => WrunPinCatalogRow | null | 'unavailable' | undefined;
|
|
30
|
+
/** What `metadataService.getMarketsRaw` answers (structural: the raw protobuf rows, numeric enums). */
|
|
31
|
+
export interface WrunPinCatalogPage {
|
|
32
|
+
marketSymbols?: ReadonlyArray<unknown>;
|
|
33
|
+
vetoed?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/** `wrun_pin_venue_unknown`: a venue word no table maps (the venue judge's code and words). */
|
|
36
|
+
export type WrunPinRefusalCode = typeof WRUN_PIN_UNRESOLVABLE_CODE | typeof WRUN_PIN_VENUE_UNKNOWN_CODE;
|
|
37
|
+
export type WrunPinMarketResolution =
|
|
38
|
+
/** `market` is `EXCHANGE|SYMBOL`; `respelled` when it differs from the written spelling. */
|
|
39
|
+
{
|
|
40
|
+
market: string;
|
|
41
|
+
respelled: boolean;
|
|
42
|
+
} | {
|
|
43
|
+
refusal: WrunPinRefusalCode;
|
|
44
|
+
} | {
|
|
45
|
+
pending: typeof WRUN_PIN_CATALOG_PENDING;
|
|
46
|
+
candidates: WrunPinCandidate[];
|
|
47
|
+
};
|
|
48
|
+
/** One pinned input of a sheet, as the leg planner reads it. */
|
|
49
|
+
export interface WrunPinLeg {
|
|
50
|
+
inputName: string;
|
|
51
|
+
market: WrunPinnedMarket;
|
|
52
|
+
/** A symbol setting holds the market (`symbol_param`): the settings are the way out of a refusal. */
|
|
53
|
+
settingBound?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/** One respelled pin: the note's facts. */
|
|
56
|
+
export interface WrunPinRespelling {
|
|
57
|
+
inputName: string;
|
|
58
|
+
/** As written (`COINBASE:BTCUSD`). */
|
|
59
|
+
from: string;
|
|
60
|
+
/** The market the run reads (`COINBASE|BTC-USD`). */
|
|
61
|
+
to: string;
|
|
62
|
+
}
|
|
63
|
+
export interface WrunPinnedLegsResolution {
|
|
64
|
+
/** Every leg in order; a respelled one carries the resolved halves. */
|
|
65
|
+
legs: WrunPinLeg[];
|
|
66
|
+
notes: WrunPinRespelling[];
|
|
67
|
+
/** The first refused leg in declaration order (none while an earlier leg waits on the catalog). */
|
|
68
|
+
refusal?: WrunPinnedLegRefusal;
|
|
69
|
+
/** The catalog asks the verdict still waits on, deduplicated. */
|
|
70
|
+
pending: WrunPinCandidate[];
|
|
71
|
+
}
|
|
72
|
+
export type WrunPinnedSheetResolution = {
|
|
73
|
+
metadata: WrunIndicatorMetadata;
|
|
74
|
+
notes: WrunPinRespelling[];
|
|
75
|
+
} | {
|
|
76
|
+
pending: WrunPinCandidate[];
|
|
77
|
+
} | {
|
|
78
|
+
refusal: WrunPinnedLegRefusal;
|
|
79
|
+
};
|
|
80
|
+
export interface WrunPinResolveOptions {
|
|
81
|
+
/** The chart's exchange: the venue of a pin that names a symbol alone. */
|
|
82
|
+
chartExchange?: string;
|
|
83
|
+
}
|
|
84
|
+
interface PinReading {
|
|
85
|
+
exchange: string;
|
|
86
|
+
symbol: string;
|
|
87
|
+
}
|
|
88
|
+
/** `EXCHANGE<sep>SYMBOL`: split at the first `|` or `:` (whichever comes first), else at the first `/`; no
|
|
89
|
+
* separator, a symbol alone. `HYPERLIQUID_HIP3:xyz:TSLA` keeps `xyz:TSLA`, `POLYGON|BRK.B/USD` keeps `BRK.B/USD`. */
|
|
90
|
+
export declare function parseWrunPinSpelling(text: string): PinReading;
|
|
91
|
+
/**
|
|
92
|
+
* Whether a pin's spelling could name no market of ours as written, so the catalog must confirm it (or name the
|
|
93
|
+
* market it means) before any fetch: sync, no catalog. False for our own spellings (`BINANCE:BTCUSDT`,
|
|
94
|
+
* `COINBASE:BTC-USD`, `FX_OTC:EUR/USD`, `POLYGON:AAPL/USD`, `CME:ES1!`), which run as written.
|
|
95
|
+
*/
|
|
96
|
+
export declare function isForeignSpelling(input: WrunPinInput, chartExchange?: string): boolean;
|
|
97
|
+
/** The catalog identities a pin's spelling may name, in the order the resolver reads them (the asks a caller sends
|
|
98
|
+
* when the resolver answers `catalog-pending`). */
|
|
99
|
+
export declare function wrunPinCandidates(input: WrunPinInput, chartExchange?: string): WrunPinCandidate[];
|
|
100
|
+
/**
|
|
101
|
+
* The market one pin runs on, sync over an already-loaded catalog (`lookup`, `wrunPinCatalogLookupOf`): see the
|
|
102
|
+
* header. Our own spelling never waits; a foreign one reads `catalog-pending` (with the asks) until the catalog
|
|
103
|
+
* answered for its candidates. A catalog that could not answer leaves a spelling as written (the venue judge and the
|
|
104
|
+
* fetch take it as before), except one that provably names nothing of ours, refused by name.
|
|
105
|
+
*/
|
|
106
|
+
export declare function resolveWrunPinMarket(input: WrunPinInput, lookup: WrunPinCatalogLookup | undefined, chartExchange?: string): WrunPinMarketResolution;
|
|
107
|
+
/** The venue word the spelling step refuses without asking the catalog (`wrun_pin_venue_unknown`: no venue of ours and
|
|
108
|
+
* no table maps it), else undefined: the spelling-aware form of `wrunSymbolSettingUnknownVenue` for the settings row
|
|
109
|
+
* and the works-on verdict, where a word the run respells (`NASDAQ:AAPL`) is no refusal. Reads the shared host. */
|
|
110
|
+
export declare function wrunPinUnknownVenue(input: WrunPinInput, chartExchange?: string): string | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* The sync lookup over one catalog answer: `asked` are the candidates the page was asked for (any other reads
|
|
113
|
+
* `undefined`, pending), `page` what `getMarketsRaw` answered (null when the ask failed: every asked candidate reads
|
|
114
|
+
* `unavailable`, as does a page vetoed at the gateway's deadline). Rows are read raw: a hidden or retired venue still
|
|
115
|
+
* answers for a spelling written on it, as the fetch would.
|
|
116
|
+
*/
|
|
117
|
+
export declare function wrunPinCatalogLookupOf(asked: readonly WrunPinCandidate[], page: WrunPinCatalogPage | null | undefined): WrunPinCatalogLookup;
|
|
118
|
+
/**
|
|
119
|
+
* Resolve every pinned leg's spelling, in declaration order (`legs` as `wrunSheetPinLegs` lists them): the legs the
|
|
120
|
+
* run plans (a respelled one carries the resolved halves), one note per respelling, the first refusal (held back
|
|
121
|
+
* while an earlier leg waits on the catalog, so the refusal named is the first in order), and the catalog asks the
|
|
122
|
+
* verdict waits on.
|
|
123
|
+
*/
|
|
124
|
+
export declare function resolveWrunPinnedLegs(legs: readonly WrunPinLeg[], lookup: WrunPinCatalogLookup | undefined, options?: WrunPinResolveOptions): WrunPinnedLegsResolution;
|
|
125
|
+
/** The sheet's pinned inputs in declaration order, as the leg planner reads them. */
|
|
126
|
+
export declare function wrunSheetPinLegs(metadata: WrunIndicatorMetadata): WrunPinLeg[];
|
|
127
|
+
/**
|
|
128
|
+
* The run's sheet with every pinned spelling resolved: the same sheet when nothing changed, else a copy whose
|
|
129
|
+
* respelled inputs carry the resolved halves (the saved settings and the sheet passed in are never written);
|
|
130
|
+
* `pending` while the catalog has not answered for a foreign spelling; `refusal` for the first unresolvable pin.
|
|
131
|
+
*/
|
|
132
|
+
export declare function resolveWrunPinnedSheet(metadata: WrunIndicatorMetadata, lookup: WrunPinCatalogLookup | undefined, options?: WrunPinResolveOptions): WrunPinnedSheetResolution;
|
|
133
|
+
type WrunPinnedSheetVerdict = Exclude<WrunPinnedSheetResolution, {
|
|
134
|
+
pending: WrunPinCandidate[];
|
|
135
|
+
}>;
|
|
136
|
+
/**
|
|
137
|
+
* `resolveWrunPinnedSheet` with the catalog asked once when a spelling is foreign: `ask` sends the candidates to the
|
|
138
|
+
* markets catalog (the run's transport: `metadataService.getMarketsRaw` over `buildMarketsRequestFromSymbols`) and
|
|
139
|
+
* answers the raw page, or null when it failed. A sheet of our own spellings never asks.
|
|
140
|
+
*/
|
|
141
|
+
export declare function resolveWrunPinnedSheetWithCatalog(metadata: WrunIndicatorMetadata, ask: (candidates: WrunPinCandidate[]) => Promise<WrunPinCatalogPage | null>, options?: WrunPinResolveOptions): Promise<WrunPinnedSheetVerdict>;
|
|
142
|
+
/**
|
|
143
|
+
* The legend note rows of the respelled pins, one per spelling (its inputs merged), warnings in the run-owned set
|
|
144
|
+
* `WRUN_PIN_ROW_CODES`: `message` the technical words (Copy details), `details` the facts the legend's localized
|
|
145
|
+
* sentence reads (`WRUN_PIN_RESPELLED_NOTE_KEY`: `{ pin, market }`). Empty for no respelling, which is what clears
|
|
146
|
+
* the rows of an earlier run.
|
|
147
|
+
*/
|
|
148
|
+
export declare function wrunPinRespelledDiagnostics(notes: readonly WrunPinRespelling[]): RuntimeDiagnostic[];
|
|
149
|
+
export {};
|