@orangecharts/wrun-chart-host 0.11.1 → 0.14.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 +1 -0
- package/dist/constants/feature-flags.constants.d.ts +3 -4
- package/dist/constants/feature-flags.constants.js +34 -52
- package/dist/constants/feature-limits.constants.d.ts +1 -1
- package/dist/constants/feature-limits.constants.js +5 -4
- package/dist/constants/interval.constants.d.ts +7 -0
- package/dist/constants/interval.constants.js +7 -0
- package/dist/constants/scriptEditor/cme-official-scripts.constants.d.ts +20 -149
- package/dist/constants/scriptEditor/cme-official-scripts.constants.js +20 -309
- package/dist/constants/stocks-compliance.constants.d.ts +15 -0
- package/dist/constants/stocks-compliance.constants.js +15 -0
- package/dist/host-env.d.ts +55 -3
- package/dist/host-env.js +6 -0
- package/dist/host-ports.types.d.ts +36 -3
- package/dist/index.d.ts +17 -0
- package/dist/index.js +18 -0
- package/dist/indicators/controls/tpo-session.util.d.ts +52 -12
- package/dist/indicators/controls/tpo-session.util.js +113 -16
- package/dist/instances/script-engine-worker-ohlcv-transfer.d.ts +6 -0
- package/dist/instances/script-engine-worker-ohlcv-transfer.js +16 -0
- package/dist/interfaces/cme-realtime.interface.d.ts +8 -0
- package/dist/interfaces/cme-realtime.interface.js +2 -1
- package/dist/interfaces/feed.interface.d.ts +15 -1
- package/dist/interfaces/replay.interface.d.ts +5 -0
- package/dist/interfaces/stocks-realtime.interface.d.ts +4 -3
- package/dist/interfaces/stocks-realtime.interface.js +5 -4
- package/dist/interfaces/wrun-runtime.interface.d.ts +97 -19
- package/dist/kscript-data/controls/live-ohlcv-merge.util.d.ts +17 -0
- package/dist/kscript-data/controls/live-ohlcv-merge.util.js +22 -0
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +46 -40
- package/dist/kscript-data/controls/live-trades-merge.util.js +80 -107
- package/dist/market-data/billing.interface.d.ts +9 -1
- package/dist/market-data/venue.d.ts +1 -1
- package/dist/market-data/venues/index.d.ts +4 -4
- package/dist/market-data/venues/stocks.contract.copy.json +4 -4
- package/dist/market-data/venues/stocks.d.ts +4 -4
- package/dist/market-data/venues/stocks.js +15 -13
- package/dist/settings-templates/frvp-fields.d.ts +12 -1
- package/dist/settings-templates/frvp-fields.js +15 -4
- package/dist/settings-templates/index.js +12 -5
- package/dist/settings-templates/indicator-fields.js +28 -2
- package/dist/settings-templates/tool-rules.d.ts +17 -8
- package/dist/settings-templates/tool-rules.js +15 -8
- package/dist/settings-templates/tool-tables.generated.js +4 -2
- package/dist/utility/auth/server-clock.util.d.ts +3 -1
- package/dist/utility/auth/server-clock.util.js +3 -1
- package/dist/utility/chart/book-live-bucket.util.js +2 -2
- package/dist/utility/chart/cache-alignment.util.d.ts +15 -7
- package/dist/utility/chart/cache-alignment.util.js +14 -7
- package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +2 -0
- package/dist/utility/chart/chart-data-fetch-generation.util.js +16 -0
- package/dist/utility/chart/cme-session-bucket.util.d.ts +18 -75
- package/dist/utility/chart/cme-session-bucket.util.js +25 -332
- package/dist/utility/chart/continuous-contracts.util.js +6 -5
- package/dist/utility/chart/display-offset.leaf.d.ts +24 -0
- package/dist/utility/chart/display-offset.leaf.js +41 -0
- package/dist/utility/chart/effective-chart-session.util.d.ts +2 -1
- package/dist/utility/chart/effective-chart-session.util.js +13 -5
- package/dist/utility/chart/feed-interval.util.d.ts +6 -20
- package/dist/utility/chart/feed-interval.util.js +13 -22
- package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +27 -7
- package/dist/utility/chart/fetch-dedupe-policy.util.js +86 -11
- package/dist/utility/chart/host-bar-placement.util.d.ts +7 -4
- package/dist/utility/chart/host-bar-placement.util.js +8 -2
- package/dist/utility/chart/indicator-inflight-registry.util.d.ts +32 -0
- package/dist/utility/chart/indicator-inflight-registry.util.js +52 -0
- package/dist/utility/chart/indicator-run-interval.util.d.ts +10 -4
- package/dist/utility/chart/indicator-run-interval.util.js +21 -12
- package/dist/utility/chart/interval-registry.util.d.ts +1 -1
- package/dist/utility/chart/interval-registry.util.js +1 -1
- package/dist/utility/chart/kscript-legend-entries.util.d.ts +12 -0
- package/dist/utility/chart/kscript-legend-entries.util.js +16 -0
- package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +1 -1
- package/dist/utility/chart/kscript-run-interval-projection.util.js +4 -2
- package/dist/utility/chart/kscript-venue-policy.util.d.ts +53 -62
- package/dist/utility/chart/kscript-venue-policy.util.js +85 -94
- package/dist/utility/chart/live-bucket.util.d.ts +39 -17
- package/dist/utility/chart/live-bucket.util.js +103 -57
- package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +58 -20
- package/dist/utility/chart/local-kscript-source-revalidation.util.js +98 -23
- package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +35 -11
- package/dist/utility/chart/local-kscript-warmup-depth.util.js +24 -3
- package/dist/utility/chart/market-session-schedule.util.d.ts +8 -0
- package/dist/utility/chart/market-session-schedule.util.js +39 -1
- package/dist/utility/chart/market-session.util.d.ts +136 -0
- package/dist/utility/chart/market-session.util.js +341 -0
- package/dist/utility/chart/om-panel.util.d.ts +5 -3
- package/dist/utility/chart/om-panel.util.js +42 -7
- package/dist/utility/chart/om-target.util.d.ts +14 -1
- package/dist/utility/chart/om-target.util.js +22 -5
- package/dist/utility/chart/opra-read-access.leaf.d.ts +16 -1
- package/dist/utility/chart/opra-read-access.leaf.js +22 -0
- package/dist/utility/chart/profile-row-height.util.d.ts +49 -16
- package/dist/utility/chart/profile-row-height.util.js +74 -37
- package/dist/utility/chart/rth-session.util.d.ts +55 -20
- package/dist/utility/chart/rth-session.util.js +94 -46
- package/dist/utility/chart/session-lattice.util.d.ts +150 -0
- package/dist/utility/chart/session-lattice.util.js +488 -0
- package/dist/utility/chart/trading-day.util.d.ts +40 -2
- package/dist/utility/chart/trading-day.util.js +84 -7
- package/dist/utility/chart/us-equities-session.util.d.ts +32 -11
- package/dist/utility/chart/us-equities-session.util.js +44 -15
- package/dist/utility/chart/window-geometry.leaf.d.ts +28 -7
- package/dist/utility/chart/window-geometry.leaf.js +57 -8
- package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +21 -14
- package/dist/utility/chart/wrun-bar-session-facts.util.js +32 -38
- package/dist/utility/chart/wrun-run-result.util.d.ts +29 -12
- package/dist/utility/chart/wrun-run-result.util.js +89 -25
- package/dist/utility/common/time.util.js +5 -4
- package/dist/utility/market-events/earnings-scope.util.d.ts +10 -5
- package/dist/utility/market-events/earnings-scope.util.js +17 -9
- package/dist/utility/market-events/market-events.util.d.ts +14 -7
- package/dist/utility/market-events/market-events.util.js +30 -17
- package/dist/utility/number-format.util.d.ts +14 -21
- package/dist/utility/number-format.util.js +38 -24
- package/dist/utility/options/option-venue-disclosure.util.d.ts +40 -6
- package/dist/utility/options/option-venue-disclosure.util.js +71 -11
- package/dist/utility/options/option-venue.util.d.ts +1 -1
- package/dist/utility/options/option-venue.util.js +1 -1
- package/dist/utility/pool-symbol.leaf.d.ts +7 -0
- package/dist/utility/pool-symbol.leaf.js +50 -5
- package/dist/utility/stocks/stock-display.util.d.ts +15 -0
- package/dist/utility/stocks/stock-display.util.js +37 -0
- package/dist/utility/symbol-selection/contract-expiry.util.js +5 -4
- package/dist/utility/v2/gate-plane.util.d.ts +6 -0
- package/dist/utility/v2/gate-plane.util.js +11 -1
- package/dist/utility/v2/gate-session-latch.util.d.ts +1 -1
- package/dist/utility/v2/gate-session-latch.util.js +3 -3
- package/dist/utility/v2/governed-tier.leaf.d.ts +17 -16
- package/dist/utility/v2/governed-tier.leaf.js +17 -16
- package/dist/utility/v2/stocks-governed.util.d.ts +5 -0
- package/dist/utility/v2/stocks-governed.util.js +14 -0
- package/dist/utility/v2/v2-enums.leaf.d.ts +13 -0
- package/dist/utility/v2/v2-enums.leaf.js +458 -0
- package/dist/utility/wrun/derived-roots.leaf.d.ts +21 -1
- package/dist/utility/wrun/derived-roots.leaf.js +27 -1
- package/dist/utility/wrun/derived-roots.util.d.ts +44 -32
- package/dist/utility/wrun/derived-roots.util.js +97 -56
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +4 -3
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +4 -3
- package/dist/utility/wrun/sources/lanes/option_daily.d.ts +2 -1
- package/dist/utility/wrun/sources/lanes/option_daily.js +2 -1
- package/dist/utility/wrun/sources/lanes/options_flow.d.ts +3 -0
- package/dist/utility/wrun/sources/lanes/options_flow.js +23 -5
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +3 -4
- package/dist/utility/wrun/sources/row-lane-registry.js +9 -4
- package/dist/utility/wrun/sources/row-lanes/dark_pool.d.ts +19 -0
- package/dist/utility/wrun/sources/row-lanes/dark_pool.js +104 -0
- package/dist/utility/wrun/sources/row-lanes/index.js +2 -0
- package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.d.ts +20 -0
- package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.js +103 -0
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -2
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +15 -13
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +49 -23
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +14 -9
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +75 -27
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +139 -82
- package/dist/utility/wrun/wrun-app-layer.leaf.d.ts +78 -0
- package/dist/utility/wrun/wrun-app-layer.leaf.js +89 -0
- package/dist/utility/wrun/wrun-bar-count.util.d.ts +11 -7
- package/dist/utility/wrun/wrun-bar-count.util.js +12 -8
- package/dist/utility/wrun/wrun-batched-kinds.leaf.d.ts +13 -0
- package/dist/utility/wrun/wrun-batched-kinds.leaf.js +18 -0
- package/dist/utility/wrun/wrun-batched-marks.util.d.ts +41 -22
- package/dist/utility/wrun/wrun-batched-marks.util.js +255 -59
- package/dist/utility/wrun/wrun-batched-readout.util.d.ts +26 -19
- package/dist/utility/wrun/wrun-batched-readout.util.js +81 -27
- package/dist/utility/wrun/wrun-book-bands.leaf.d.ts +8 -0
- package/dist/utility/wrun/wrun-book-bands.leaf.js +7 -0
- package/dist/utility/wrun/wrun-candle-equal.leaf.d.ts +19 -0
- package/dist/utility/wrun/wrun-candle-equal.leaf.js +40 -0
- package/dist/utility/wrun/wrun-canvas-readout.util.d.ts +4 -2
- package/dist/utility/wrun/wrun-canvases.util.js +7 -3
- package/dist/utility/wrun/wrun-chart-context-names.util.d.ts +6 -3
- package/dist/utility/wrun/wrun-chart-context-names.util.js +8 -4
- package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +47 -29
- package/dist/utility/wrun/wrun-chart-market-facts.util.js +201 -201
- package/dist/utility/wrun/wrun-child-overlay-id.util.js +2 -1
- package/dist/utility/wrun/wrun-cme-legs-note.util.d.ts +15 -0
- package/dist/utility/wrun/wrun-cme-legs-note.util.js +49 -0
- package/dist/utility/wrun/wrun-cme-root-specs.util.d.ts +38 -0
- package/dist/utility/wrun/wrun-cme-root-specs.util.js +81 -0
- package/dist/utility/wrun/wrun-coin-lane-live.util.js +3 -0
- package/dist/utility/wrun/wrun-color-settings.util.d.ts +6 -1
- package/dist/utility/wrun/wrun-color-settings.util.js +32 -7
- package/dist/utility/wrun/wrun-dark-pool.util.d.ts +50 -0
- package/dist/utility/wrun/wrun-dark-pool.util.js +127 -0
- package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +67 -12
- package/dist/utility/wrun/wrun-declared-warmup.util.js +165 -13
- package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +18 -8
- package/dist/utility/wrun/wrun-draft-legend-note.util.js +57 -11
- package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +14 -10
- package/dist/utility/wrun/wrun-draft-overlay.util.js +26 -14
- package/dist/utility/wrun/wrun-earnings-facts.util.js +3 -2
- package/dist/utility/wrun/wrun-etf-funds.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-etf-funds.util.js +4 -0
- package/dist/utility/wrun/wrun-held-lanes.util.js +8 -2
- package/dist/utility/wrun/wrun-history-as-of.util.d.ts +77 -0
- package/dist/utility/wrun/wrun-history-as-of.util.js +108 -0
- package/dist/utility/wrun/wrun-host.service.d.ts +64 -14
- package/dist/utility/wrun/wrun-host.service.js +137 -27
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +3 -3
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +12 -2
- package/dist/utility/wrun/wrun-inert-legend.util.d.ts +13 -0
- package/dist/utility/wrun/wrun-inert-legend.util.js +31 -3
- package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +7 -5
- package/dist/utility/wrun/wrun-input-requirements.leaf.js +16 -6
- package/dist/utility/wrun/wrun-install-pacer.util.d.ts +26 -0
- package/dist/utility/wrun/wrun-install-pacer.util.js +145 -0
- package/dist/utility/wrun/wrun-kit-refusal-stages.types.d.ts +22 -0
- package/dist/utility/wrun/wrun-kit-refusal-stages.types.js +1 -0
- package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +12 -5
- package/dist/utility/wrun/wrun-lane-refusal.leaf.js +23 -5
- package/dist/utility/wrun/wrun-lane-warmup.util.js +22 -4
- package/dist/utility/wrun/wrun-leg-close.util.d.ts +6 -5
- package/dist/utility/wrun/wrun-leg-close.util.js +11 -9
- package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +3 -1
- package/dist/utility/wrun/wrun-leg-fetch.util.js +9 -2
- package/dist/utility/wrun/wrun-levels-child.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-levels-child.util.js +6 -0
- package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +4 -0
- package/dist/utility/wrun/wrun-live-intake.util.d.ts +15 -6
- package/dist/utility/wrun/wrun-live-intake.util.js +167 -47
- package/dist/utility/wrun/wrun-live-tick.util.d.ts +52 -8
- package/dist/utility/wrun/wrun-live-tick.util.js +648 -97
- package/dist/utility/wrun/wrun-market-facts.util.d.ts +16 -2
- package/dist/utility/wrun/wrun-market-facts.util.js +32 -3
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +27 -27
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +28 -16
- package/dist/utility/wrun/wrun-market-size-defaults.util.js +34 -5
- package/dist/utility/wrun/wrun-oi-lane.util.d.ts +10 -7
- package/dist/utility/wrun/wrun-oi-lane.util.js +16 -10
- package/dist/utility/wrun/wrun-option-strike-flow.util.js +1 -1
- package/dist/utility/wrun/wrun-option-views.util.d.ts +2 -2
- package/dist/utility/wrun/wrun-option-views.util.js +5 -2
- package/dist/utility/wrun/wrun-options-flow-underlying.leaf.d.ts +5 -0
- package/dist/utility/wrun/wrun-options-flow-underlying.leaf.js +16 -0
- package/dist/utility/wrun/wrun-options-stop.util.d.ts +3 -2
- package/dist/utility/wrun/wrun-options-stop.util.js +6 -4
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +75 -11
- package/dist/utility/wrun/wrun-overlay-drivers.util.js +176 -43
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +20 -10
- package/dist/utility/wrun/wrun-overlay-park.util.d.ts +84 -0
- package/dist/utility/wrun/wrun-overlay-park.util.js +135 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +37 -4
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +26 -14
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +239 -24
- package/dist/utility/wrun/wrun-overlay-run.util.js +2204 -405
- package/dist/utility/wrun/wrun-pack.util.d.ts +8 -5
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +2 -1
- package/dist/utility/wrun/wrun-panel-mount.util.js +20 -14
- package/dist/utility/wrun/wrun-panel-style.util.d.ts +4 -2
- package/dist/utility/wrun/wrun-panel-style.util.js +3 -2
- package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +7 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.js +18 -4
- package/dist/utility/wrun/wrun-pin-venues.util.d.ts +26 -17
- package/dist/utility/wrun/wrun-pin-venues.util.js +43 -36
- package/dist/utility/wrun/wrun-pinned-lanes.util.d.ts +58 -0
- package/dist/utility/wrun/wrun-pinned-lanes.util.js +72 -0
- package/dist/utility/wrun/wrun-prefix-cohort.util.js +2 -1
- package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +22 -9
- package/dist/utility/wrun/wrun-prefix-lanes.util.js +145 -26
- package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +29 -0
- package/dist/utility/wrun/wrun-prefix-proof.util.js +23 -5
- package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +9 -1
- package/dist/utility/wrun/wrun-refusal-surface.util.js +15 -1
- package/dist/utility/wrun/wrun-refusal.util.d.ts +19 -1
- package/dist/utility/wrun/wrun-refusal.util.js +103 -16
- package/dist/utility/wrun/wrun-registry-errors.util.d.ts +20 -6
- package/dist/utility/wrun/wrun-registry-errors.util.js +20 -6
- package/dist/utility/wrun/wrun-replay-rows.util.js +6 -10
- package/dist/utility/wrun/wrun-run-health.util.d.ts +89 -2
- package/dist/utility/wrun/wrun-run-health.util.js +204 -1
- package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +2 -2
- package/dist/utility/wrun/wrun-run-interval-session.util.js +2 -2
- package/dist/utility/wrun/wrun-run-interval.util.d.ts +9 -8
- package/dist/utility/wrun/wrun-run-interval.util.js +13 -11
- package/dist/utility/wrun/wrun-sandbox-row-source.js +5 -2
- package/dist/utility/wrun/wrun-script-inputs.util.d.ts +13 -3
- package/dist/utility/wrun/wrun-script-inputs.util.js +51 -13
- package/dist/utility/wrun/wrun-session-composition.util.d.ts +81 -0
- package/dist/utility/wrun/wrun-session-composition.util.js +169 -0
- package/dist/utility/wrun/wrun-setting-words.util.d.ts +10 -7
- package/dist/utility/wrun/wrun-setting-words.util.js +25 -7
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +94 -28
- package/dist/utility/wrun/wrun-source-rows.util.js +738 -93
- package/dist/utility/wrun/wrun-stream-clock.util.d.ts +45 -0
- package/dist/utility/wrun/wrun-stream-clock.util.js +108 -0
- package/dist/utility/wrun/wrun-tape-coins.util.d.ts +116 -0
- package/dist/utility/wrun/wrun-tape-coins.util.js +110 -0
- package/dist/utility/wrun/wrun-tape-source.util.d.ts +62 -32
- package/dist/utility/wrun/wrun-tape-source.util.js +72 -34
- package/dist/utility/wrun/wrun-tier-grid.util.d.ts +13 -5
- package/dist/utility/wrun/wrun-tier-grid.util.js +23 -13
- package/dist/utility/wrun/wrun-tpo-rows.util.js +2 -1
- package/dist/utility/wrun/wrun-trades-lane.util.d.ts +73 -0
- package/dist/utility/wrun/wrun-trades-lane.util.js +82 -0
- package/dist/utility/wrun/wrun-twin-compute-inputs.util.d.ts +5 -0
- package/dist/utility/wrun/wrun-twin-compute-inputs.util.js +9 -2
- package/dist/utility/wrun/wrun-visibility-table.d.ts +13 -0
- package/dist/utility/wrun/wrun-visibility-table.js +9 -0
- package/dist/utility/wrun/wrun-volume-profile.util.js +7 -3
- package/dist/utils/replay/replay-buffer-math.d.ts +16 -6
- package/dist/utils/replay/replay-buffer-math.js +60 -30
- package/dist/workers/constants/socket-slots.d.ts +11 -7
- package/dist/workers/constants/socket-slots.js +6 -5
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from './constants/scriptEditor/cme-official-scripts.constants.js';
|
|
|
21
21
|
export * from './constants/scriptEditor/converted-script-id.leaf.js';
|
|
22
22
|
export * from './constants/scriptEditor/execution.constants.js';
|
|
23
23
|
export * from './constants/scriptEditor/technicalIndicatorScriptKeys.constants.js';
|
|
24
|
+
export * from './constants/stocks-compliance.constants.js';
|
|
24
25
|
export * from './constants/tpo-color-schemes.constants.js';
|
|
25
26
|
export * from './constants/venue-presets.constants.js';
|
|
26
27
|
export * from './constants/wrun-prefix-safe.constants.js';
|
|
@@ -76,12 +77,14 @@ export * from './utility/chart/chart-time-domain.util.js';
|
|
|
76
77
|
export * from './utility/chart/cme-cache-context.util.js';
|
|
77
78
|
export * from './utility/chart/cme-realtime.util.js';
|
|
78
79
|
export * from './utility/chart/cme-session-bucket.util.js';
|
|
80
|
+
export { CME_SESSION_LATTICE, FOREX_SESSION_LATTICE, SESSION_LATTICE_PROFILES, isSessionLatticeIntervalMs, sessionLatticeBarEndMs, sessionLatticeBarOpenMs, sessionLatticeBucketMs, sessionLatticeById, sessionLatticeOf, type SessionLatticeId, type SessionLatticeProfile, type SessionTradeCalendar, } from './utility/chart/session-lattice.util.js';
|
|
79
81
|
export * from './utility/chart/cme-trade-calendar.util.js';
|
|
80
82
|
export * from './utility/chart/cme-user-scripts-gate.util.js';
|
|
81
83
|
export * from './utility/chart/color-customization.leaf.js';
|
|
82
84
|
export * from './utility/chart/continuous-contracts.util.js';
|
|
83
85
|
export * from './utility/chart/crypto-index.leaf.js';
|
|
84
86
|
export * from './utility/chart/date-labelled-interval.leaf.js';
|
|
87
|
+
export * from './utility/chart/display-offset.leaf.js';
|
|
85
88
|
export * from './utility/chart/effective-chart-session.util.js';
|
|
86
89
|
export * from './utility/chart/feed-interval.util.js';
|
|
87
90
|
export * from './utility/chart/fetch-dedupe-policy.util.js';
|
|
@@ -147,6 +150,7 @@ export * from './utility/chart/local-kscript-warmup-depth.util.js';
|
|
|
147
150
|
export * from './utility/chart/local-technical-script-live-apply-coalescer.util.js';
|
|
148
151
|
export * from './utility/chart/local-technical-script-range.leaf.js';
|
|
149
152
|
export * from './utility/chart/market-session-schedule.util.js';
|
|
153
|
+
export * from './utility/chart/market-session.util.js';
|
|
150
154
|
export * from './utility/chart/market-sessions.util.js';
|
|
151
155
|
export * from './utility/chart/marketKind.util.js';
|
|
152
156
|
export * from './utility/chart/mixed-mode.util.js';
|
|
@@ -209,6 +213,7 @@ export * from './utility/pool-symbol.leaf.js';
|
|
|
209
213
|
export * from './utility/scriptEditor/package-semver.util.js';
|
|
210
214
|
export * from './utility/scriptEditor/temp-script-id.util.js';
|
|
211
215
|
export * from './utility/scriptEditor/wrun-runtime-diagnostics.leaf.js';
|
|
216
|
+
export * from './utility/stocks/stock-display.util.js';
|
|
212
217
|
export * from './utility/symbol-selection/contract-expiry.util.js';
|
|
213
218
|
export * from './utility/symbol-selection/markets-request-from-symbols.leaf.js';
|
|
214
219
|
export * from './utility/v2/gate-plane.util.js';
|
|
@@ -216,10 +221,12 @@ export * from './utility/v2/gate-session-latch.util.js';
|
|
|
216
221
|
export * from './utility/v2/governed-tier.leaf.js';
|
|
217
222
|
export * from './utility/v2/opra-governed.util.js';
|
|
218
223
|
export * from './utility/v2/stocks-governed.util.js';
|
|
224
|
+
export * from './utility/v2/v2-enums.leaf.js';
|
|
219
225
|
export * from './utility/watchlist/import/import-request.leaf.js';
|
|
220
226
|
export * from './utility/watchlist/import/tradingview-symbols.leaf.js';
|
|
221
227
|
export * from './utility/wrun-alert-params.leaf.js';
|
|
222
228
|
export * from './utility/wrun-display-name.util.js';
|
|
229
|
+
export * from './utility/wrun/derived-roots.leaf.js';
|
|
223
230
|
export * from './utility/wrun/derived-roots.util.js';
|
|
224
231
|
export * from './utility/wrun/run-schedule/wrun-chart-gate-reader.util.js';
|
|
225
232
|
export * from './utility/wrun/run-schedule/wrun-gate-reader-warm.util.js';
|
|
@@ -236,6 +243,7 @@ export * from './utility/wrun/sources/registry.js';
|
|
|
236
243
|
export * from './utility/wrun/sources/row-lane-registry.js';
|
|
237
244
|
export * from './utility/wrun/sources/row-lanes/index.js';
|
|
238
245
|
export * from './utility/wrun/sources/row-lanes/option_contract_flow.js';
|
|
246
|
+
export * from './utility/wrun/sources/wrun-lane-fetch-abort.util.js';
|
|
239
247
|
export * from './utility/wrun/sources/wrun-poll-lane.types.js';
|
|
240
248
|
export * from './utility/wrun/sources/wrun-poll-lanes.util.js';
|
|
241
249
|
export * from './utility/wrun/sources/wrun-row-lane-add-memo.util.js';
|
|
@@ -245,6 +253,7 @@ export * from './utility/wrun/sources/wrun-row-lanes.util.js';
|
|
|
245
253
|
export * from './utility/wrun/wrun-alert-outputs.registry.js';
|
|
246
254
|
export * from './utility/wrun/wrun-auto-row.util.js';
|
|
247
255
|
export * from './utility/wrun/wrun-bar-count.util.js';
|
|
256
|
+
export * from './utility/wrun/wrun-batched-kinds.leaf.js';
|
|
248
257
|
export * from './utility/wrun/wrun-batched-marks.util.js';
|
|
249
258
|
export * from './utility/wrun/wrun-batched-readout.util.js';
|
|
250
259
|
export * from './utility/wrun/wrun-box-segment.util.js';
|
|
@@ -252,6 +261,7 @@ export * from './utility/wrun/wrun-browser-sources.leaf.js';
|
|
|
252
261
|
export * from './utility/wrun/wrun-build-memo.util.js';
|
|
253
262
|
export * from './utility/wrun/wrun-builtin-twin-ports.util.js';
|
|
254
263
|
export * from './utility/wrun/wrun-builtin-twin.util.js';
|
|
264
|
+
export * from './utility/wrun/wrun-candle-equal.leaf.js';
|
|
255
265
|
export * from './utility/wrun/wrun-canvas-cache.util.js';
|
|
256
266
|
export * from './utility/wrun/wrun-canvas-readout.util.js';
|
|
257
267
|
export * from './utility/wrun/wrun-canvases.util.js';
|
|
@@ -267,6 +277,8 @@ export * from './utility/wrun/wrun-child-overlay-id.util.js';
|
|
|
267
277
|
export * from './utility/wrun/wrun-cloud-opra-stamp.util.js';
|
|
268
278
|
export * from './utility/wrun/wrun-cloud-record.leaf.js';
|
|
269
279
|
export * from './utility/wrun/wrun-cloud-record.util.js';
|
|
280
|
+
export * from './utility/wrun/wrun-cme-legs-note.util.js';
|
|
281
|
+
export * from './utility/wrun/wrun-cme-root-specs.util.js';
|
|
270
282
|
export * from './utility/wrun/wrun-coin-lane-live.util.js';
|
|
271
283
|
export * from './utility/wrun/wrun-color-facts.util.js';
|
|
272
284
|
export * from './utility/wrun/wrun-color-settings.lazy.js';
|
|
@@ -291,6 +303,7 @@ export * from './utility/wrun/wrun-gate-plane-readers.util.js';
|
|
|
291
303
|
export * from './utility/wrun/wrun-handles.util.js';
|
|
292
304
|
export * from './utility/wrun/wrun-heatmap-cell-budget.util.js';
|
|
293
305
|
export * from './utility/wrun/wrun-held-lanes.util.js';
|
|
306
|
+
export * from './utility/wrun/wrun-history-as-of.util.js';
|
|
294
307
|
export * from './utility/wrun/wrun-host-visible-clock.util.js';
|
|
295
308
|
export * from './utility/wrun/wrun-host.service.js';
|
|
296
309
|
export * from './utility/wrun/wrun-hosted-wire-caps.js';
|
|
@@ -301,6 +314,7 @@ export * from './utility/wrun/wrun-inert-legend.util.js';
|
|
|
301
314
|
export * from './utility/wrun/wrun-input-requirements.leaf.js';
|
|
302
315
|
export * from './utility/wrun/wrun-integration-budget.util.js';
|
|
303
316
|
export * from './utility/wrun/wrun-integration-route.util.js';
|
|
317
|
+
export * from './utility/wrun/wrun-kit-refusal-stages.types.js';
|
|
304
318
|
export * from './utility/wrun/wrun-kit-run-tables.util.js';
|
|
305
319
|
export * from './utility/wrun/wrun-lane-refusal.leaf.js';
|
|
306
320
|
export * from './utility/wrun/wrun-lane-warmup.util.js';
|
|
@@ -338,11 +352,13 @@ export * from './utility/wrun/wrun-option-strike-flow-lane.util.js';
|
|
|
338
352
|
export * from './utility/wrun/wrun-option-strike-flow.util.js';
|
|
339
353
|
export * from './utility/wrun/wrun-option-summary-lane.util.js';
|
|
340
354
|
export * from './utility/wrun/wrun-option-views.util.js';
|
|
355
|
+
export * from './utility/wrun/wrun-options-flow-underlying.leaf.js';
|
|
341
356
|
export * from './utility/wrun/wrun-options-stop.util.js';
|
|
342
357
|
export * from './utility/wrun/wrun-output-style.util.js';
|
|
343
358
|
export * from './utility/wrun/wrun-overlay-drivers.util.js';
|
|
344
359
|
export * from './utility/wrun/wrun-overlay-lifecycle.util.js';
|
|
345
360
|
export * from './utility/wrun/wrun-overlay-metadata.util.js';
|
|
361
|
+
export * from './utility/wrun/wrun-overlay-park.util.js';
|
|
346
362
|
export * from './utility/wrun/wrun-overlay-recovery.util.js';
|
|
347
363
|
export * from './utility/wrun/wrun-overlay-result.util.js';
|
|
348
364
|
export * from './utility/wrun/wrun-pack-widths.leaf.js';
|
|
@@ -396,6 +412,7 @@ export * from './utility/wrun/wrun-style-flags.util.js';
|
|
|
396
412
|
export * from './utility/wrun/wrun-symbol-code.util.js';
|
|
397
413
|
export * from './utility/wrun/wrun-table-chrome.util.js';
|
|
398
414
|
export * from './utility/wrun/wrun-table-look.util.js';
|
|
415
|
+
export * from './utility/wrun/wrun-tape-coins.util.js';
|
|
399
416
|
export * from './utility/wrun/wrun-tape-per-order.util.js';
|
|
400
417
|
export * from './utility/wrun/wrun-tape-source.util.js';
|
|
401
418
|
export * from './utility/wrun/wrun-text-look.util.js';
|
package/dist/index.js
CHANGED
|
@@ -24,6 +24,7 @@ export * from './constants/scriptEditor/cme-official-scripts.constants.js';
|
|
|
24
24
|
export * from './constants/scriptEditor/converted-script-id.leaf.js';
|
|
25
25
|
export * from './constants/scriptEditor/execution.constants.js';
|
|
26
26
|
export * from './constants/scriptEditor/technicalIndicatorScriptKeys.constants.js';
|
|
27
|
+
export * from './constants/stocks-compliance.constants.js';
|
|
27
28
|
export * from './constants/tpo-color-schemes.constants.js';
|
|
28
29
|
export * from './constants/venue-presets.constants.js';
|
|
29
30
|
export * from './constants/wrun-prefix-safe.constants.js';
|
|
@@ -79,12 +80,15 @@ export * from './utility/chart/chart-time-domain.util.js';
|
|
|
79
80
|
export * from './utility/chart/cme-cache-context.util.js';
|
|
80
81
|
export * from './utility/chart/cme-realtime.util.js';
|
|
81
82
|
export * from './utility/chart/cme-session-bucket.util.js';
|
|
83
|
+
// Named, not `export *`: cme-session-bucket.util re-exports sessionGridStartMs, so a second star would make it ambiguous.
|
|
84
|
+
export { CME_SESSION_LATTICE, FOREX_SESSION_LATTICE, SESSION_LATTICE_PROFILES, isSessionLatticeIntervalMs, sessionLatticeBarEndMs, sessionLatticeBarOpenMs, sessionLatticeBucketMs, sessionLatticeById, sessionLatticeOf, } from './utility/chart/session-lattice.util.js';
|
|
82
85
|
export * from './utility/chart/cme-trade-calendar.util.js';
|
|
83
86
|
export * from './utility/chart/cme-user-scripts-gate.util.js';
|
|
84
87
|
export * from './utility/chart/color-customization.leaf.js';
|
|
85
88
|
export * from './utility/chart/continuous-contracts.util.js';
|
|
86
89
|
export * from './utility/chart/crypto-index.leaf.js';
|
|
87
90
|
export * from './utility/chart/date-labelled-interval.leaf.js';
|
|
91
|
+
export * from './utility/chart/display-offset.leaf.js';
|
|
88
92
|
export * from './utility/chart/effective-chart-session.util.js';
|
|
89
93
|
export * from './utility/chart/feed-interval.util.js';
|
|
90
94
|
export * from './utility/chart/fetch-dedupe-policy.util.js';
|
|
@@ -150,6 +154,7 @@ export * from './utility/chart/local-kscript-warmup-depth.util.js';
|
|
|
150
154
|
export * from './utility/chart/local-technical-script-live-apply-coalescer.util.js';
|
|
151
155
|
export * from './utility/chart/local-technical-script-range.leaf.js';
|
|
152
156
|
export * from './utility/chart/market-session-schedule.util.js';
|
|
157
|
+
export * from './utility/chart/market-session.util.js';
|
|
153
158
|
export * from './utility/chart/market-sessions.util.js';
|
|
154
159
|
export * from './utility/chart/marketKind.util.js';
|
|
155
160
|
export * from './utility/chart/mixed-mode.util.js';
|
|
@@ -212,6 +217,7 @@ export * from './utility/pool-symbol.leaf.js';
|
|
|
212
217
|
export * from './utility/scriptEditor/package-semver.util.js';
|
|
213
218
|
export * from './utility/scriptEditor/temp-script-id.util.js';
|
|
214
219
|
export * from './utility/scriptEditor/wrun-runtime-diagnostics.leaf.js';
|
|
220
|
+
export * from './utility/stocks/stock-display.util.js';
|
|
215
221
|
export * from './utility/symbol-selection/contract-expiry.util.js';
|
|
216
222
|
export * from './utility/symbol-selection/markets-request-from-symbols.leaf.js';
|
|
217
223
|
export * from './utility/v2/gate-plane.util.js';
|
|
@@ -219,10 +225,12 @@ export * from './utility/v2/gate-session-latch.util.js';
|
|
|
219
225
|
export * from './utility/v2/governed-tier.leaf.js';
|
|
220
226
|
export * from './utility/v2/opra-governed.util.js';
|
|
221
227
|
export * from './utility/v2/stocks-governed.util.js';
|
|
228
|
+
export * from './utility/v2/v2-enums.leaf.js';
|
|
222
229
|
export * from './utility/watchlist/import/import-request.leaf.js';
|
|
223
230
|
export * from './utility/watchlist/import/tradingview-symbols.leaf.js';
|
|
224
231
|
export * from './utility/wrun-alert-params.leaf.js';
|
|
225
232
|
export * from './utility/wrun-display-name.util.js';
|
|
233
|
+
export * from './utility/wrun/derived-roots.leaf.js';
|
|
226
234
|
export * from './utility/wrun/derived-roots.util.js';
|
|
227
235
|
export * from './utility/wrun/run-schedule/wrun-chart-gate-reader.util.js';
|
|
228
236
|
export * from './utility/wrun/run-schedule/wrun-gate-reader-warm.util.js';
|
|
@@ -239,6 +247,7 @@ export * from './utility/wrun/sources/registry.js';
|
|
|
239
247
|
export * from './utility/wrun/sources/row-lane-registry.js';
|
|
240
248
|
export * from './utility/wrun/sources/row-lanes/index.js';
|
|
241
249
|
export * from './utility/wrun/sources/row-lanes/option_contract_flow.js';
|
|
250
|
+
export * from './utility/wrun/sources/wrun-lane-fetch-abort.util.js';
|
|
242
251
|
export * from './utility/wrun/sources/wrun-poll-lane.types.js';
|
|
243
252
|
export * from './utility/wrun/sources/wrun-poll-lanes.util.js';
|
|
244
253
|
export * from './utility/wrun/sources/wrun-row-lane-add-memo.util.js';
|
|
@@ -248,6 +257,7 @@ export * from './utility/wrun/sources/wrun-row-lanes.util.js';
|
|
|
248
257
|
export * from './utility/wrun/wrun-alert-outputs.registry.js';
|
|
249
258
|
export * from './utility/wrun/wrun-auto-row.util.js';
|
|
250
259
|
export * from './utility/wrun/wrun-bar-count.util.js';
|
|
260
|
+
export * from './utility/wrun/wrun-batched-kinds.leaf.js';
|
|
251
261
|
export * from './utility/wrun/wrun-batched-marks.util.js';
|
|
252
262
|
export * from './utility/wrun/wrun-batched-readout.util.js';
|
|
253
263
|
export * from './utility/wrun/wrun-box-segment.util.js';
|
|
@@ -255,6 +265,7 @@ export * from './utility/wrun/wrun-browser-sources.leaf.js';
|
|
|
255
265
|
export * from './utility/wrun/wrun-build-memo.util.js';
|
|
256
266
|
export * from './utility/wrun/wrun-builtin-twin-ports.util.js';
|
|
257
267
|
export * from './utility/wrun/wrun-builtin-twin.util.js';
|
|
268
|
+
export * from './utility/wrun/wrun-candle-equal.leaf.js';
|
|
258
269
|
export * from './utility/wrun/wrun-canvas-cache.util.js';
|
|
259
270
|
export * from './utility/wrun/wrun-canvas-readout.util.js';
|
|
260
271
|
export * from './utility/wrun/wrun-canvases.util.js';
|
|
@@ -270,6 +281,8 @@ export * from './utility/wrun/wrun-child-overlay-id.util.js';
|
|
|
270
281
|
export * from './utility/wrun/wrun-cloud-opra-stamp.util.js';
|
|
271
282
|
export * from './utility/wrun/wrun-cloud-record.leaf.js';
|
|
272
283
|
export * from './utility/wrun/wrun-cloud-record.util.js';
|
|
284
|
+
export * from './utility/wrun/wrun-cme-legs-note.util.js';
|
|
285
|
+
export * from './utility/wrun/wrun-cme-root-specs.util.js';
|
|
273
286
|
export * from './utility/wrun/wrun-coin-lane-live.util.js';
|
|
274
287
|
export * from './utility/wrun/wrun-color-facts.util.js';
|
|
275
288
|
export * from './utility/wrun/wrun-color-settings.lazy.js';
|
|
@@ -294,6 +307,7 @@ export * from './utility/wrun/wrun-gate-plane-readers.util.js';
|
|
|
294
307
|
export * from './utility/wrun/wrun-handles.util.js';
|
|
295
308
|
export * from './utility/wrun/wrun-heatmap-cell-budget.util.js';
|
|
296
309
|
export * from './utility/wrun/wrun-held-lanes.util.js';
|
|
310
|
+
export * from './utility/wrun/wrun-history-as-of.util.js';
|
|
297
311
|
export * from './utility/wrun/wrun-host-visible-clock.util.js';
|
|
298
312
|
export * from './utility/wrun/wrun-host.service.js';
|
|
299
313
|
export * from './utility/wrun/wrun-hosted-wire-caps.js';
|
|
@@ -304,6 +318,7 @@ export * from './utility/wrun/wrun-inert-legend.util.js';
|
|
|
304
318
|
export * from './utility/wrun/wrun-input-requirements.leaf.js';
|
|
305
319
|
export * from './utility/wrun/wrun-integration-budget.util.js';
|
|
306
320
|
export * from './utility/wrun/wrun-integration-route.util.js';
|
|
321
|
+
export * from './utility/wrun/wrun-kit-refusal-stages.types.js';
|
|
307
322
|
export * from './utility/wrun/wrun-kit-run-tables.util.js';
|
|
308
323
|
export * from './utility/wrun/wrun-lane-refusal.leaf.js';
|
|
309
324
|
export * from './utility/wrun/wrun-lane-warmup.util.js';
|
|
@@ -341,11 +356,13 @@ export * from './utility/wrun/wrun-option-strike-flow-lane.util.js';
|
|
|
341
356
|
export * from './utility/wrun/wrun-option-strike-flow.util.js';
|
|
342
357
|
export * from './utility/wrun/wrun-option-summary-lane.util.js';
|
|
343
358
|
export * from './utility/wrun/wrun-option-views.util.js';
|
|
359
|
+
export * from './utility/wrun/wrun-options-flow-underlying.leaf.js';
|
|
344
360
|
export * from './utility/wrun/wrun-options-stop.util.js';
|
|
345
361
|
export * from './utility/wrun/wrun-output-style.util.js';
|
|
346
362
|
export * from './utility/wrun/wrun-overlay-drivers.util.js';
|
|
347
363
|
export * from './utility/wrun/wrun-overlay-lifecycle.util.js';
|
|
348
364
|
export * from './utility/wrun/wrun-overlay-metadata.util.js';
|
|
365
|
+
export * from './utility/wrun/wrun-overlay-park.util.js';
|
|
349
366
|
export * from './utility/wrun/wrun-overlay-recovery.util.js';
|
|
350
367
|
export * from './utility/wrun/wrun-overlay-result.util.js';
|
|
351
368
|
export * from './utility/wrun/wrun-pack-widths.leaf.js';
|
|
@@ -399,6 +416,7 @@ export * from './utility/wrun/wrun-style-flags.util.js';
|
|
|
399
416
|
export * from './utility/wrun/wrun-symbol-code.util.js';
|
|
400
417
|
export * from './utility/wrun/wrun-table-chrome.util.js';
|
|
401
418
|
export * from './utility/wrun/wrun-table-look.util.js';
|
|
419
|
+
export * from './utility/wrun/wrun-tape-coins.util.js';
|
|
402
420
|
export * from './utility/wrun/wrun-tape-per-order.util.js';
|
|
403
421
|
export * from './utility/wrun/wrun-tape-source.util.js';
|
|
404
422
|
export * from './utility/wrun/wrun-text-look.util.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MarketSplitSliceId } from '../../utility/chart/market-sessions.util.js';
|
|
2
|
+
import { type MarketSessionKind } from '../../utility/chart/market-session.util.js';
|
|
2
3
|
export type TpoTimeRange = {
|
|
3
4
|
start_time?: unknown;
|
|
4
5
|
end_time?: unknown;
|
|
@@ -32,24 +33,63 @@ export interface TpoTimeRangeSettings {
|
|
|
32
33
|
customSessions?: TpoCustomSessionsSettings;
|
|
33
34
|
tradingDayAnchor?: unknown;
|
|
34
35
|
exchange?: unknown;
|
|
36
|
+
symbol?: unknown;
|
|
37
|
+
meta?: unknown;
|
|
38
|
+
tradingHourVersion?: unknown;
|
|
35
39
|
}
|
|
40
|
+
/** "Chart session", every TPO's default: it names no window until tpoEffectiveTradingHour reads the chart's session. */
|
|
41
|
+
export declare const TPO_CHART_TRADING_HOUR = "Chart";
|
|
42
|
+
/** The stamp every writer puts beside a stored choice: an All Hours without it is a row the old mounts filled unasked. */
|
|
43
|
+
export declare const TPO_TRADING_HOUR_VERSION = 2;
|
|
44
|
+
/** The stored choice and its stamp: a reader always takes the whole settings, never the bare word, so it sees both. */
|
|
45
|
+
export interface TpoTradingHourSettings {
|
|
46
|
+
tradingHour?: unknown;
|
|
47
|
+
tradingHourVersion?: unknown;
|
|
48
|
+
}
|
|
49
|
+
/** The trading-hour choice the settings hold: no choice (absent, null, empty) is 'Chart'; never a session to build on. */
|
|
50
|
+
export declare function tpoTradingHourOf(settings: TpoTradingHourSettings | null | undefined): string;
|
|
51
|
+
/** A TPO's choice as its settings store it, 'Chart' as null: a JSON frame or a template keeps null and drops an absent key. */
|
|
52
|
+
export declare function tpoStoredTradingHour(settings: TpoTradingHourSettings | null | undefined): string | null;
|
|
53
|
+
/** Whether an indicator type names one of the two TPO indicators, in either vocabulary. */
|
|
54
|
+
export declare function isTpoIndicatorType(indicatorType: unknown): boolean;
|
|
55
|
+
/** How a TPO type cuts its sessions (resolveTpoSettingsTimeRange): `venueTradingDay: false` keeps All Hours on UTC days. */
|
|
56
|
+
export interface TpoSessionRangeOptions {
|
|
57
|
+
readonly venueTradingDay?: boolean;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The range options of a TPO type (either vocabulary), the one place its readers take them from: its fetch, its
|
|
61
|
+
* refetch decision, its live merge and its cache key all cut sessions with them, so its live sessions are its
|
|
62
|
+
* history's. The aggregated TPO sums venues whose trading days differ, so its All Hours is the UTC day; the
|
|
63
|
+
* single-venue TPO rides its venue's trading day.
|
|
64
|
+
*/
|
|
65
|
+
export declare function tpoSessionRangeOptions(indicatorType: unknown): TpoSessionRangeOptions;
|
|
66
|
+
/** Outside settings over a live TPO (an old template, an old peer): their own unstamped All Hours lands as 'Chart'. */
|
|
67
|
+
export declare function tpoIncomingTradingHour<T>(indicatorType: unknown, incoming: T): T;
|
|
68
|
+
/** An agent's TPO write (an add, a patch) is a deliberate pick, like a form's: the trading hour it names is stamped. */
|
|
69
|
+
export declare function tpoAgentTradingHour<T>(indicatorType: unknown, settings: T): T;
|
|
70
|
+
/** THE session every TPO reader builds on: 'Chart' is Regular on a US stock under a US regular-hours chart, else All Hours. */
|
|
71
|
+
export declare function tpoEffectiveTradingHour(settings: TpoTimeRangeSettings | null | undefined, chartRegularKind: MarketSessionKind | null): string;
|
|
36
72
|
/**
|
|
37
73
|
* The trading-day anchored time range that APPLIES to these settings, or
|
|
38
|
-
* undefined. The anchor only shapes the
|
|
39
|
-
*
|
|
40
|
-
*
|
|
74
|
+
* undefined. The anchor only shapes the full-day case, an effective 'All
|
|
75
|
+
* Hours': any other trading hour, a non-Daily session type, or active custom
|
|
76
|
+
* sessions each keep their existing behavior. A range saved beside All Hours
|
|
77
|
+
* never displaces the venue's day: every save of the old form wrote the time
|
|
78
|
+
* rows it showed (00:00 to 00:00 UTC) beside the choice, so a saved range is
|
|
79
|
+
* no sign of a window anyone picked. 'Custom' is the one choice that carries
|
|
80
|
+
* its own window (a time row no preset matches turns into Custom).
|
|
41
81
|
*/
|
|
42
|
-
export declare function resolveTradingDayTpoTimeRange(settings: TpoTimeRangeSettings | null | undefined): TpoTimeRange | undefined;
|
|
43
|
-
/** The trading-hour choice the settings hold: no choice is All Hours, as every TPO payload sends it. */
|
|
44
|
-
export declare function tpoTradingHourOf(settings: {
|
|
45
|
-
tradingHour?: unknown;
|
|
46
|
-
} | null | undefined): string;
|
|
82
|
+
export declare function resolveTradingDayTpoTimeRange(settings: TpoTimeRangeSettings | null | undefined, chartRegularKind: MarketSessionKind | null): TpoTimeRange | undefined;
|
|
47
83
|
/** A choice's window, venue day aside: a preset's table row (never the range saved beside it), else the saved range. */
|
|
48
84
|
export declare function tpoTradingHourTimeRange(tradingHour: string, savedRange: unknown): TpoTimeRange | undefined;
|
|
49
|
-
/**
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
85
|
+
/**
|
|
86
|
+
* The one window a TPO cuts its sessions to, for every reader: All Hours the venue's trading day, a preset its table
|
|
87
|
+
* row, Custom its saved range. A range saved beside All Hours or a preset is the old form's echo of its time rows (a
|
|
88
|
+
* preset's old hours, All Hours' 00:00 to 00:00 UTC) and is never read.
|
|
89
|
+
*/
|
|
90
|
+
export declare function resolveTpoSettingsTimeRange(settings: TpoTimeRangeSettings, chartRegularKind: MarketSessionKind | null, options?: TpoSessionRangeOptions): TpoTimeRange | undefined;
|
|
91
|
+
/** Whether two saves of one TPO ask another session on some chart: a save never knows its chart, so it asks each. */
|
|
92
|
+
export declare function tpoSessionAskChanged(next: TpoTimeRangeSettings, prev: TpoTimeRangeSettings, options?: TpoSessionRangeOptions): boolean;
|
|
53
93
|
/** The IANA zone a range's clock names: 'ET' is New York, nothing is UTC. */
|
|
54
94
|
export declare function tpoTimeZone(value: unknown): string;
|
|
55
95
|
/** The daily window `timestamp` reads, on the range's own zone clock: device-independent, daylight saving included. */
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { MARKET_SESSION_SPLIT, marketSessionInstantsOn, marketSessionNamed, sessionClockText, zoneWallEdgeToUtcMs, } from '../../utility/chart/market-sessions.util.js';
|
|
2
|
+
import { marketSessionKind } from '../../utility/chart/market-session.util.js';
|
|
2
3
|
import { NY_TIME_ZONE, zoneOffsetMsAt, zoneWallMsAt } from '../../utility/chart/ny-calendar.util.js';
|
|
3
4
|
import { getTradingDayAnchor, getTradingDayTpoTimeRange } from '../../utility/chart/trading-day.util.js';
|
|
5
|
+
import { singleStockTapeVenue } from '../../utility/v2/stocks-governed.util.js';
|
|
4
6
|
/** A gateway TradingHour session's row: its hours on the gateway's own clock, its weeks and months on UTC. */
|
|
5
7
|
function gatewaySessionRange(start_time, end_time, timezone) {
|
|
6
8
|
return Object.freeze({ start_time, end_time, timezone, periodCalendar: 'UTC' });
|
|
@@ -70,6 +72,91 @@ function getTpoCrossDayOffsetMinutes(customTimeRange) {
|
|
|
70
72
|
return 0;
|
|
71
73
|
return parseTpoTimeToMinutes(customTimeRange.end_time) ?? 0;
|
|
72
74
|
}
|
|
75
|
+
/** "Chart session", every TPO's default: it names no window until tpoEffectiveTradingHour reads the chart's session. */
|
|
76
|
+
export const TPO_CHART_TRADING_HOUR = 'Chart';
|
|
77
|
+
/** The stamp every writer puts beside a stored choice: an All Hours without it is a row the old mounts filled unasked. */
|
|
78
|
+
export const TPO_TRADING_HOUR_VERSION = 2;
|
|
79
|
+
/** The trading-hour choice the settings hold: no choice (absent, null, empty) is 'Chart'; never a session to build on. */
|
|
80
|
+
export function tpoTradingHourOf(settings) {
|
|
81
|
+
const tradingHour = settings?.tradingHour;
|
|
82
|
+
if (typeof tradingHour !== 'string' || !tradingHour)
|
|
83
|
+
return TPO_CHART_TRADING_HOUR;
|
|
84
|
+
// The one legacy rule: every mount and form before the stamp wrote All Hours whether or not anyone picked it.
|
|
85
|
+
if (tradingHour === 'All Hours' && settings?.tradingHourVersion !== TPO_TRADING_HOUR_VERSION) {
|
|
86
|
+
return TPO_CHART_TRADING_HOUR;
|
|
87
|
+
}
|
|
88
|
+
return tradingHour;
|
|
89
|
+
}
|
|
90
|
+
/** A TPO's choice as its settings store it, 'Chart' as null: a JSON frame or a template keeps null and drops an absent key. */
|
|
91
|
+
export function tpoStoredTradingHour(settings) {
|
|
92
|
+
const name = tpoTradingHourOf(settings);
|
|
93
|
+
// Titan reads `tradingHour || 'All Hours'` for its label and merge key: null draws as the old default did.
|
|
94
|
+
return name === TPO_CHART_TRADING_HOUR ? null : name;
|
|
95
|
+
}
|
|
96
|
+
// Both vocabularies of the two TPO indicators: the registry key (settings.ovType) and the template overlay type.
|
|
97
|
+
const AGGREGATED_TPO_INDICATOR_TYPES = new Set([
|
|
98
|
+
'AGGREGATED_TIME_PRICE_OPPORTUNITY',
|
|
99
|
+
'AggregatedTimePriceOpportunity',
|
|
100
|
+
]);
|
|
101
|
+
const TPO_INDICATOR_TYPES = new Set([
|
|
102
|
+
'TIME_PRICE_OPPORTUNITY',
|
|
103
|
+
'TimePriceOpportunity',
|
|
104
|
+
...AGGREGATED_TPO_INDICATOR_TYPES,
|
|
105
|
+
]);
|
|
106
|
+
/** Whether an indicator type names one of the two TPO indicators, in either vocabulary. */
|
|
107
|
+
export function isTpoIndicatorType(indicatorType) {
|
|
108
|
+
return typeof indicatorType === 'string' && TPO_INDICATOR_TYPES.has(indicatorType);
|
|
109
|
+
}
|
|
110
|
+
const SINGLE_VENUE_TPO_SESSION_RANGE = Object.freeze({});
|
|
111
|
+
const AGGREGATED_TPO_SESSION_RANGE = Object.freeze({ venueTradingDay: false });
|
|
112
|
+
/**
|
|
113
|
+
* The range options of a TPO type (either vocabulary), the one place its readers take them from: its fetch, its
|
|
114
|
+
* refetch decision, its live merge and its cache key all cut sessions with them, so its live sessions are its
|
|
115
|
+
* history's. The aggregated TPO sums venues whose trading days differ, so its All Hours is the UTC day; the
|
|
116
|
+
* single-venue TPO rides its venue's trading day.
|
|
117
|
+
*/
|
|
118
|
+
export function tpoSessionRangeOptions(indicatorType) {
|
|
119
|
+
return typeof indicatorType === 'string' && AGGREGATED_TPO_INDICATOR_TYPES.has(indicatorType)
|
|
120
|
+
? AGGREGATED_TPO_SESSION_RANGE
|
|
121
|
+
: SINGLE_VENUE_TPO_SESSION_RANGE;
|
|
122
|
+
}
|
|
123
|
+
/** Outside settings over a live TPO (an old template, an old peer): their own unstamped All Hours lands as 'Chart'. */
|
|
124
|
+
export function tpoIncomingTradingHour(indicatorType, incoming) {
|
|
125
|
+
if (!isTpoIndicatorType(indicatorType) || !incoming || typeof incoming !== 'object')
|
|
126
|
+
return incoming;
|
|
127
|
+
const own = incoming;
|
|
128
|
+
// Their own stamp decides, read before a merge hands them the live row's stamp.
|
|
129
|
+
if (own.tradingHour !== 'All Hours' || own.tradingHourVersion != null)
|
|
130
|
+
return incoming;
|
|
131
|
+
return { ...incoming, tradingHour: null, tradingHourVersion: TPO_TRADING_HOUR_VERSION };
|
|
132
|
+
}
|
|
133
|
+
/** An agent's TPO write (an add, a patch) is a deliberate pick, like a form's: the trading hour it names is stamped. */
|
|
134
|
+
export function tpoAgentTradingHour(indicatorType, settings) {
|
|
135
|
+
if (!isTpoIndicatorType(indicatorType) || !settings || typeof settings !== 'object')
|
|
136
|
+
return settings;
|
|
137
|
+
// A write that names no trading hour neither adds nor removes the stamp: the row keeps its choice as it was.
|
|
138
|
+
if (settings.tradingHour === undefined)
|
|
139
|
+
return settings;
|
|
140
|
+
return { ...settings, tradingHourVersion: TPO_TRADING_HOUR_VERSION };
|
|
141
|
+
}
|
|
142
|
+
/** The regular session of the market a TPO reads: an aggregated twin's one stocks tape (a sum has none), else its own. */
|
|
143
|
+
function tpoMarketSessionKind(settings) {
|
|
144
|
+
const venues = settings.meta?.exchanges;
|
|
145
|
+
if (venues !== undefined && venues !== null) {
|
|
146
|
+
const tape = singleStockTapeVenue(venues);
|
|
147
|
+
return tape ? marketSessionKind(tape, settings.symbol) : null;
|
|
148
|
+
}
|
|
149
|
+
return marketSessionKind(settings.exchange, settings.symbol);
|
|
150
|
+
}
|
|
151
|
+
/** THE session every TPO reader builds on: 'Chart' is Regular on a US stock under a US regular-hours chart, else All Hours. */
|
|
152
|
+
export function tpoEffectiveTradingHour(settings, chartRegularKind) {
|
|
153
|
+
const choice = tpoTradingHourOf(settings);
|
|
154
|
+
if (choice !== TPO_CHART_TRADING_HOUR)
|
|
155
|
+
return choice;
|
|
156
|
+
return chartRegularKind === 'us-equity' && settings && tpoMarketSessionKind(settings) === 'us-equity'
|
|
157
|
+
? 'Regular'
|
|
158
|
+
: 'All Hours';
|
|
159
|
+
}
|
|
73
160
|
/**
|
|
74
161
|
* The venue anchor these settings run on. It is venue knowledge, never
|
|
75
162
|
* persisted: a workspace row restored on load carries none until an interval
|
|
@@ -86,15 +173,18 @@ function resolveTpoTradingDayAnchor(settings) {
|
|
|
86
173
|
}
|
|
87
174
|
/**
|
|
88
175
|
* The trading-day anchored time range that APPLIES to these settings, or
|
|
89
|
-
* undefined. The anchor only shapes the
|
|
90
|
-
*
|
|
91
|
-
*
|
|
176
|
+
* undefined. The anchor only shapes the full-day case, an effective 'All
|
|
177
|
+
* Hours': any other trading hour, a non-Daily session type, or active custom
|
|
178
|
+
* sessions each keep their existing behavior. A range saved beside All Hours
|
|
179
|
+
* never displaces the venue's day: every save of the old form wrote the time
|
|
180
|
+
* rows it showed (00:00 to 00:00 UTC) beside the choice, so a saved range is
|
|
181
|
+
* no sign of a window anyone picked. 'Custom' is the one choice that carries
|
|
182
|
+
* its own window (a time row no preset matches turns into Custom).
|
|
92
183
|
*/
|
|
93
|
-
export function resolveTradingDayTpoTimeRange(settings) {
|
|
94
|
-
if (!settings
|
|
184
|
+
export function resolveTradingDayTpoTimeRange(settings, chartRegularKind) {
|
|
185
|
+
if (!settings)
|
|
95
186
|
return undefined;
|
|
96
|
-
|
|
97
|
-
if (tradingHour && tradingHour !== 'All Hours')
|
|
187
|
+
if (tpoEffectiveTradingHour(settings, chartRegularKind) !== 'All Hours')
|
|
98
188
|
return undefined;
|
|
99
189
|
if ((settings.sessionType ?? 'Daily') !== 'Daily')
|
|
100
190
|
return undefined;
|
|
@@ -102,11 +192,6 @@ export function resolveTradingDayTpoTimeRange(settings) {
|
|
|
102
192
|
return undefined;
|
|
103
193
|
return getTradingDayTpoTimeRange(resolveTpoTradingDayAnchor(settings));
|
|
104
194
|
}
|
|
105
|
-
/** The trading-hour choice the settings hold: no choice is All Hours, as every TPO payload sends it. */
|
|
106
|
-
export function tpoTradingHourOf(settings) {
|
|
107
|
-
const tradingHour = settings?.tradingHour;
|
|
108
|
-
return typeof tradingHour === 'string' && tradingHour ? tradingHour : 'All Hours';
|
|
109
|
-
}
|
|
110
195
|
/** A choice's window, venue day aside: a preset's table row (never the range saved beside it), else the saved range. */
|
|
111
196
|
export function tpoTradingHourTimeRange(tradingHour, savedRange) {
|
|
112
197
|
if (tradingHour !== 'Custom' && Object.prototype.hasOwnProperty.call(TPO_TRADING_HOUR_TIME_RANGES, tradingHour)) {
|
|
@@ -114,12 +199,24 @@ export function tpoTradingHourTimeRange(tradingHour, savedRange) {
|
|
|
114
199
|
}
|
|
115
200
|
return savedRange && typeof savedRange === 'object' ? savedRange : undefined;
|
|
116
201
|
}
|
|
117
|
-
/**
|
|
118
|
-
|
|
119
|
-
|
|
202
|
+
/**
|
|
203
|
+
* The one window a TPO cuts its sessions to, for every reader: All Hours the venue's trading day, a preset its table
|
|
204
|
+
* row, Custom its saved range. A range saved beside All Hours or a preset is the old form's echo of its time rows (a
|
|
205
|
+
* preset's old hours, All Hours' 00:00 to 00:00 UTC) and is never read.
|
|
206
|
+
*/
|
|
207
|
+
export function resolveTpoSettingsTimeRange(settings, chartRegularKind, options = {}) {
|
|
208
|
+
const tradingHour = tpoEffectiveTradingHour(settings, chartRegularKind);
|
|
120
209
|
if (tradingHour !== 'All Hours')
|
|
121
210
|
return tpoTradingHourTimeRange(tradingHour, settings.customTimeRange);
|
|
122
|
-
return options.venueTradingDay === false ? undefined : resolveTradingDayTpoTimeRange(settings);
|
|
211
|
+
return options.venueTradingDay === false ? undefined : resolveTradingDayTpoTimeRange(settings, chartRegularKind);
|
|
212
|
+
}
|
|
213
|
+
// Every regular session a chart can draw (none, CME's, the US stock market's).
|
|
214
|
+
const TPO_CHART_SESSIONS = [null, 'cme', 'us-equity'];
|
|
215
|
+
/** Whether two saves of one TPO ask another session on some chart: a save never knows its chart, so it asks each. */
|
|
216
|
+
export function tpoSessionAskChanged(next, prev, options = {}) {
|
|
217
|
+
return TPO_CHART_SESSIONS.some((chartRegularKind) => tpoEffectiveTradingHour(next, chartRegularKind) !== tpoEffectiveTradingHour(prev, chartRegularKind) ||
|
|
218
|
+
JSON.stringify(resolveTpoSettingsTimeRange(next, chartRegularKind, options) ?? null) !==
|
|
219
|
+
JSON.stringify(resolveTpoSettingsTimeRange(prev, chartRegularKind, options) ?? null));
|
|
123
220
|
}
|
|
124
221
|
/** The IANA zone a range's clock names: 'ET' is New York, nothing is UTC. */
|
|
125
222
|
export function tpoTimeZone(value) {
|
|
@@ -16,6 +16,12 @@ export declare function mergeKScriptWorkerSourceRows(existingRows: unknown, next
|
|
|
16
16
|
export declare function kScriptWorkerRowsBackfillExisting(existingRows: unknown, incomingRows: unknown): boolean;
|
|
17
17
|
export declare function packSourceRows(rows: unknown): KScriptWorkerSourceRowsPayload;
|
|
18
18
|
export declare function unpackOhlcvRows(payload: unknown): number[][];
|
|
19
|
+
/**
|
|
20
|
+
* The rows of a packed transfer as zero-copy views of its buffer, one per row, each cut at the row's own length by
|
|
21
|
+
* `unpackOhlcvRows`'s rule (`rowLengths`, else the block's `cols`), so the zero padding past a shorter row never shows
|
|
22
|
+
* and no row is copied to a plain array. Every view keeps the transferred buffer alive.
|
|
23
|
+
*/
|
|
24
|
+
export declare function packedOhlcvRowViews(payload: KScriptWorkerPackedOhlcvRows): Float64Array[];
|
|
19
25
|
/**
|
|
20
26
|
* Volume-less OHLC bars as the six-column rows the engine's `ohlcv` source
|
|
21
27
|
* declares (PROPERTY_MAPPINGS.ohlcv maps volume to column 5). Forex and
|
|
@@ -115,6 +115,22 @@ export function unpackOhlcvRows(payload) {
|
|
|
115
115
|
}
|
|
116
116
|
return rows;
|
|
117
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* The rows of a packed transfer as zero-copy views of its buffer, one per row, each cut at the row's own length by
|
|
120
|
+
* `unpackOhlcvRows`'s rule (`rowLengths`, else the block's `cols`), so the zero padding past a shorter row never shows
|
|
121
|
+
* and no row is copied to a plain array. Every view keeps the transferred buffer alive.
|
|
122
|
+
*/
|
|
123
|
+
export function packedOhlcvRowViews(payload) {
|
|
124
|
+
const values = new Float64Array(payload.buffer);
|
|
125
|
+
const rowLengths = payload.rowLengths ? new Uint32Array(payload.rowLengths) : undefined;
|
|
126
|
+
const rows = [];
|
|
127
|
+
for (let rowIndex = 0; rowIndex < payload.rows; rowIndex += 1) {
|
|
128
|
+
const length = rowLengths?.[rowIndex] ?? payload.cols;
|
|
129
|
+
const offset = rowIndex * payload.cols;
|
|
130
|
+
rows.push(values.subarray(offset, offset + length));
|
|
131
|
+
}
|
|
132
|
+
return rows;
|
|
133
|
+
}
|
|
118
134
|
const OHLC_ROW_LENGTH = 5;
|
|
119
135
|
/**
|
|
120
136
|
* Volume-less OHLC bars as the six-column rows the engine's `ohlcv` source
|
|
@@ -71,6 +71,8 @@ export type CmeCheckoutResponseDto = {
|
|
|
71
71
|
};
|
|
72
72
|
/** Subscription as served by GET /cme/subscription (already camelCase on the wire). */
|
|
73
73
|
export interface CmeSubscriptionDto {
|
|
74
|
+
/** `past_due` while Stripe retries a failed renewal; absent on a server from before it. */
|
|
75
|
+
status?: 'active' | 'past_due';
|
|
74
76
|
/** Held-now access level ('depth' while a downgrade is pending). */
|
|
75
77
|
level: CmeDepthDto;
|
|
76
78
|
pendingDowngrade: 'l1' | null;
|
|
@@ -80,6 +82,8 @@ export interface CmeSubscriptionDto {
|
|
|
80
82
|
pendingCancellation: boolean;
|
|
81
83
|
/** Next-cycle price (already L1-priced during a pending downgrade). */
|
|
82
84
|
priceUsd: number;
|
|
85
|
+
/** Stripe's hosted page for the owed renewal invoice while `past_due`; absent or null when none is owed or on a server from before it. */
|
|
86
|
+
invoiceUrl?: string | null;
|
|
83
87
|
}
|
|
84
88
|
/** GET /cme/subscription -> 200 body. */
|
|
85
89
|
export interface GetCmeSubscriptionResponseDto {
|
|
@@ -111,6 +115,10 @@ export interface CmeSubscription {
|
|
|
111
115
|
renewsAt: string;
|
|
112
116
|
pendingCancellation: boolean;
|
|
113
117
|
priceUsd: number;
|
|
118
|
+
/** The renewal payment failed: a cancel ends the subscription now (orange's `cancelPlanOf`). */
|
|
119
|
+
pastDue: boolean;
|
|
120
|
+
/** Where the owed renewal invoice is paid (Stripe's hosted invoice), or null: nothing owed, or a server from before the field. */
|
|
121
|
+
invoiceUrl: string | null;
|
|
114
122
|
}
|
|
115
123
|
export interface CmeAttestationSubmission {
|
|
116
124
|
classification: CmeClassification;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { serverNowMs } from '../utility/auth/server-clock.util.js';
|
|
1
2
|
/**
|
|
2
3
|
* The single source of truth for CME-family exchange codes and their role.
|
|
3
4
|
* Every governed/purchasable/filter list derives from this table, so GLOBEX's
|
|
@@ -22,7 +23,7 @@ export const CME_GOVERNED_EXCHANGES = CME_EXCHANGE_CATALOG.map((e) => e.code);
|
|
|
22
23
|
*/
|
|
23
24
|
export const CME_BUNDLE_EXCHANGES = CME_EXCHANGE_CATALOG.filter((e) => e.role === 'purchasable').map((e) => e.code);
|
|
24
25
|
/** Attestation validity is derived at read time from expiresAt, never cached. */
|
|
25
|
-
export function isCmeAttestationValid(attestation, now =
|
|
26
|
+
export function isCmeAttestationValid(attestation, now = serverNowMs()) {
|
|
26
27
|
if (!attestation)
|
|
27
28
|
return false;
|
|
28
29
|
const expires = Date.parse(attestation.expiresAt);
|
|
@@ -14,6 +14,16 @@ export interface FeedValueKey {
|
|
|
14
14
|
/** The column's combine rule; the relay resolves the default by name (P3 C7). */
|
|
15
15
|
combine?: FeedCombineRule;
|
|
16
16
|
}
|
|
17
|
+
/** The publisher's creator tier (C15 v2); the relay's old `request` word reads as `pro`. */
|
|
18
|
+
export type FeedTier = 'free' | 'plus' | 'pro' | 'business';
|
|
19
|
+
/** A listed feed's sale terms on its head (C13 rule 5): the registry's price words, the billing model, the buy page. */
|
|
20
|
+
export interface FeedListing {
|
|
21
|
+
price_label: string;
|
|
22
|
+
model: string;
|
|
23
|
+
buy_url: string;
|
|
24
|
+
}
|
|
25
|
+
/** What the relay lets the calling credential read of a listed feed (C13 rule 5). */
|
|
26
|
+
export type FeedAccess = 'granted' | 'payment_required' | 'pending';
|
|
17
27
|
/** `GET /api/v2/feeds/{scope}/{name}/head`: the feed's newest row and its state at read time. */
|
|
18
28
|
export interface FeedHead {
|
|
19
29
|
address: string;
|
|
@@ -30,7 +40,7 @@ export interface FeedHead {
|
|
|
30
40
|
rows: number;
|
|
31
41
|
state: 'live' | 'lagging' | 'stale' | 'offline';
|
|
32
42
|
/** P3 C7 head facts (optional until every relay serves them). */
|
|
33
|
-
tier?:
|
|
43
|
+
tier?: FeedTier;
|
|
34
44
|
/** Readings the feed keeps before the oldest drop (the tier's cap). */
|
|
35
45
|
cap?: number;
|
|
36
46
|
/** The storage grain in seconds: one reading kept per slot of this length. */
|
|
@@ -41,6 +51,10 @@ export interface FeedHead {
|
|
|
41
51
|
observed_cadence_s?: number | null;
|
|
42
52
|
/** True when the feed is published at its cadence only: no coarser bars. */
|
|
43
53
|
exact_interval?: boolean;
|
|
54
|
+
/** A listed feed's sale terms, null while it is not for sale; absent on every other feed. */
|
|
55
|
+
listing?: FeedListing | null;
|
|
56
|
+
/** A listed feed only: whether this caller may read its rows, has to buy them, or waits for the sale. */
|
|
57
|
+
access?: FeedAccess;
|
|
44
58
|
}
|
|
45
59
|
/** One row on the wire (C1): `[ts_seconds, v1..vN]`, or `[ts_seconds, state]` for a state feed. */
|
|
46
60
|
export type FeedWireRow = [number, ...(number | string | null)[]];
|
|
@@ -117,6 +117,11 @@ export interface ReplayBuffer {
|
|
|
117
117
|
forwardScannedAtMs?: number;
|
|
118
118
|
fullRows: number[][];
|
|
119
119
|
heatmapColumns: Float64Array[];
|
|
120
|
+
/**
|
|
121
|
+
* The heatmap overlay whose surface `heatmapColumns` holds (one heatmap per chart). A load of another overlay, or a
|
|
122
|
+
* settings save of this one, starts a new surface: the pool is dropped before its legs plan.
|
|
123
|
+
*/
|
|
124
|
+
heatmapPoolOwnerId?: string;
|
|
120
125
|
/**
|
|
121
126
|
* Last pan-back gap-fill outcome, keyed to stable evidence (column count and
|
|
122
127
|
* deepest captured column) rather than window bounds: the window's floor
|