@orangecharts/wrun-chart-host 0.11.0 → 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 +18 -0
- package/dist/index.js +19 -0
- package/dist/indicators/controls/tpo-session.util.d.ts +78 -15
- package/dist/indicators/controls/tpo-session.util.js +320 -242
- 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/market-sessions.util.d.ts +83 -0
- package/dist/utility/chart/market-sessions.util.js +220 -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-interval.util.d.ts +2 -1
- package/dist/utility/chart/session-interval.util.js +1 -3
- 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 +44 -32
- 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 +11 -11
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
// The large lane folds the collector's TRADE_LARGE rows (one per order), any other tape raw TRADE fills: never mix them.
|
|
9
9
|
import { Intervals } from '../../constants/interval.constants.js';
|
|
10
10
|
import { barEndMs, barStartMs } from '../../utility/chart/calendar-interval.util.js';
|
|
11
|
-
import {
|
|
11
|
+
import { isCmeSessionLatticeExchange } from '../../utility/chart/cme-session-bucket.util.js';
|
|
12
|
+
import { isSessionLatticeIntervalMs, sessionLatticeBarEndMs, sessionLatticeBarOpenMs, sessionLatticeBucketMs, sessionLatticeNextBarMs, sessionLatticeOf, } from '../../utility/chart/session-lattice.util.js';
|
|
12
13
|
import { findMonday } from '../../workers/utils/time.worker.util.js';
|
|
13
14
|
import { liveOptionPrintUsdPremium } from '../../utility/options/option-trade-units.util.js';
|
|
14
15
|
export const LIVE_MAX_CELLS_PER_BAR = 20_000;
|
|
@@ -23,12 +24,14 @@ export const TRADES_RETENTION_SEC = 2 * 24 * 3600;
|
|
|
23
24
|
export const TRADES_LARGE_RETENTION_SEC = 90 * 24 * 3600;
|
|
24
25
|
/** tsdb-gateway's bar limit on the large lane (validateKiyoPlusBar, kiyo_plus_validation.go): an
|
|
25
26
|
* unaggregated read (TRADE_LARGE included) is estimated at one point per minute, and a tier user's
|
|
26
|
-
* window
|
|
27
|
-
*
|
|
27
|
+
* window longer than the tier's default max_bar_limit (15,000 on every tier of ore and cme) is
|
|
28
|
+
* trimmed to its last 15,000 minutes without a word, counted from the window's own end (a window
|
|
29
|
+
* ending at now counts from the gateway's clock). About 10.4 days: the lane's history horizon on
|
|
30
|
+
* one ask, at any date, so a replay weeks back reads its history too. */
|
|
28
31
|
export const TRADES_LARGE_BAR_LIMIT_SEC = 15_000 * 60;
|
|
29
|
-
/** How far inside that horizon the large lane opens:
|
|
30
|
-
* lands, later than this one (the worker queue, the wire, a slow client
|
|
31
|
-
* moved past the ask's first bar would cut that bar in two again. */
|
|
32
|
+
/** How far inside that horizon the large lane opens: on a window ending at now the gateway reads
|
|
33
|
+
* its own clock when the ask lands, later than this one (the worker queue, the wire, a slow client
|
|
34
|
+
* clock), and a horizon that moved past the ask's first bar would cut that bar in two again. */
|
|
32
35
|
const TRADES_LARGE_BAR_LIMIT_MARGIN_SEC = 600;
|
|
33
36
|
/** A copy of the collector's `peggedUSDQuotes`, which the dollar-unit rule reads too: keep the two lists identical. */
|
|
34
37
|
const TRADES_LARGE_USD_QUOTES = new Set([
|
|
@@ -48,61 +51,25 @@ const TRADES_LARGE_USD_QUOTES = new Set([
|
|
|
48
51
|
/** A raw-tape acquisition's seed cap: a longer window over the raw TRADE table costs the gateway a
|
|
49
52
|
* scan over cold chunks (measured 18-30 s, or a server-side internal error, for ten days). */
|
|
50
53
|
export const TRADES_MAX_HISTORY_SEC = 2 * 3600;
|
|
51
|
-
/** A CME Group contract code: the product root, a delivery month letter, one or two year digits. */
|
|
52
|
-
const CME_CONTRACT_CODE = /^([A-Z0-9]+?)[FGHJKMNQUVXZ]\d{1,2}$/;
|
|
53
54
|
/**
|
|
54
|
-
* The
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* collector's list.
|
|
55
|
+
* The payload field a run names the instant its lanes' declared history counts back from, when that instant is not
|
|
56
|
+
* the server's now. A market replay run names the replay's present (the close of the newest completed bar the replay
|
|
57
|
+
* shows, the open of the bar its playhead is in), while its lanes run on to the replay window's end (the forward
|
|
58
|
+
* runway), on every lane it asks (wrun-overlay-run.util `fetchLane`). A live run names its session's pin for the tape
|
|
59
|
+
* (wrun-history-as-of.util: the instant the session's first run counted the tape's history back from), from the
|
|
60
|
+
* session's second run on, while the window still ends at the server's now; its first run names none, so that ask is
|
|
61
|
+
* the payload it always was. Every reader of a declared history counts back from it (`sourceHistoryAsOfMs`: the
|
|
62
|
+
* K_TRADES seed, the wrun reconcile's served start). The table's retention and the gateway's bar limit never read it:
|
|
63
|
+
* the table keeps, and the gateway trims a window, by the wall clock.
|
|
64
64
|
*/
|
|
65
|
-
export const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
'
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
// Energy and metals
|
|
74
|
-
'CL',
|
|
75
|
-
'NG',
|
|
76
|
-
'GC',
|
|
77
|
-
'SI',
|
|
78
|
-
'HG',
|
|
79
|
-
// FX
|
|
80
|
-
'6A',
|
|
81
|
-
'6B',
|
|
82
|
-
'6C',
|
|
83
|
-
'6E',
|
|
84
|
-
'6J',
|
|
85
|
-
'6S',
|
|
86
|
-
'6N',
|
|
87
|
-
'6M',
|
|
88
|
-
// Rates
|
|
89
|
-
'ZN',
|
|
90
|
-
'ZF',
|
|
91
|
-
'ZT',
|
|
92
|
-
'TN',
|
|
93
|
-
'ZB',
|
|
94
|
-
'UB',
|
|
95
|
-
// Grains
|
|
96
|
-
'ZC',
|
|
97
|
-
'ZS',
|
|
98
|
-
'ZM',
|
|
99
|
-
'ZL',
|
|
100
|
-
'ZW',
|
|
101
|
-
// Crypto
|
|
102
|
-
'BTC',
|
|
103
|
-
'MBT',
|
|
104
|
-
'ETH',
|
|
105
|
-
]);
|
|
65
|
+
export const SOURCE_HISTORY_AS_OF_FIELD = 'historyAsOfMs';
|
|
66
|
+
/** The instant a declared history counts back from: the one an ask names (`SOURCE_HISTORY_AS_OF_FIELD`, a finite
|
|
67
|
+
* instant above zero, never later than the server's now), else the server's now. */
|
|
68
|
+
export function sourceHistoryAsOfMs(named, serverNowMs) {
|
|
69
|
+
return typeof named === 'number' && Number.isFinite(named) && named > 0 ? Math.min(named, serverNowMs) : serverNowMs;
|
|
70
|
+
}
|
|
71
|
+
/** A CME Group contract code: the product root, a delivery month letter, one or two year digits. */
|
|
72
|
+
const CME_CONTRACT_CODE = /^([A-Z0-9]+?)[FGHJKMNQUVXZ]\d{1,2}$/;
|
|
106
73
|
/** Every reader of a live amount reads here, so a floor never reads one channel's case while the fold reads the other. */
|
|
107
74
|
export function liveTradeOfPoint(point, large) {
|
|
108
75
|
if (!point || typeof point !== 'object')
|
|
@@ -112,33 +79,52 @@ export function liveTradeOfPoint(point, large) {
|
|
|
112
79
|
return trade ?? tradeLarge;
|
|
113
80
|
return large ? tradeLarge : trade;
|
|
114
81
|
}
|
|
82
|
+
/** The market's session lattice at an interval the gateway rolls it up on (session-lattice.util), else null. */
|
|
83
|
+
function tradesLatticeAt(exchange, intervalMs) {
|
|
84
|
+
const lattice = sessionLatticeOf(exchange);
|
|
85
|
+
return lattice !== null && isSessionLatticeIntervalMs(lattice, intervalMs) ? lattice : null;
|
|
86
|
+
}
|
|
115
87
|
/**
|
|
116
88
|
* The chart bar a print at `tsMs` lands in, keyed the way the chart's candles of that market are:
|
|
117
|
-
* the
|
|
118
|
-
*
|
|
119
|
-
* epoch week opens on a Thursday no weekly candle carries),
|
|
120
|
-
* boundary on a month-class bar).
|
|
89
|
+
* the market's session lattice at 4h, 1d and 1w on a session-lattice venue (the gateway's
|
|
90
|
+
* `sessionProfile.bucketExpression`: the CME family, forex), else a week bar on its Monday
|
|
91
|
+
* (`findMonday`, the chart's week: the epoch week opens on a Thursday no weekly candle carries),
|
|
92
|
+
* else the UTC floor (the calendar boundary on a month-class bar).
|
|
121
93
|
*/
|
|
122
94
|
export function tradesBarStartMs(tsMs, intervalMs, exchange) {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
95
|
+
const lattice = tradesLatticeAt(exchange, intervalMs);
|
|
96
|
+
if (lattice !== null)
|
|
97
|
+
return sessionLatticeBucketMs(lattice, tsMs, intervalMs) ?? barStartMs(tsMs, intervalMs);
|
|
126
98
|
return intervalMs === Intervals.WEEK ? findMonday(tsMs) : barStartMs(tsMs, intervalMs);
|
|
127
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* The key of the chart bar after the one keyed `barMs` (a `tradesBarStartMs` key), for a walk over a window's bars:
|
|
102
|
+
* the session lattice's next bar on a lattice venue (`sessionLatticeNextBarMs`: a lattice bar can outlast its width,
|
|
103
|
+
* so the bucket of `barMs + intervalMs` can be the bar itself), else the bar's end (a calendar bar's next boundary, a
|
|
104
|
+
* fixed bar its width on). Null when no later bar can be named: a walk stops there, it never repeats `barMs`.
|
|
105
|
+
*/
|
|
106
|
+
export function tradesNextBarStartMs(barMs, intervalMs, exchange) {
|
|
107
|
+
if (!Number.isFinite(barMs) || !Number.isFinite(intervalMs) || intervalMs <= 0)
|
|
108
|
+
return null;
|
|
109
|
+
const lattice = tradesLatticeAt(exchange, intervalMs);
|
|
110
|
+
const nextMs = lattice !== null ? sessionLatticeNextBarMs(lattice, barMs, intervalMs) : barEndMs(barMs, intervalMs);
|
|
111
|
+
return nextMs !== null && nextMs > barMs ? nextMs : null;
|
|
112
|
+
}
|
|
128
113
|
/**
|
|
129
114
|
* Where a seeded history ask opens: the open of the chart bar holding `nowMs - historySec`, so the
|
|
130
115
|
* seed covers whole bars and a bar is never bought from its middle (it would be replaced by its
|
|
131
116
|
* later prints on every poll). A CME session lattice bar opens where the lattice opens it (a daily
|
|
132
117
|
* bar at the prior 17:00 Chicago open, ahead of its 00:00Z label); every other bar on
|
|
133
|
-
* `tradesBarStartMs` (a Monday on a week chart). Without a history the live edge itself.
|
|
118
|
+
* `tradesBarStartMs` (a Monday on a week chart). Without a history the live edge itself. `nowMs` is
|
|
119
|
+
* the ask's as-of (`sourceHistoryAsOfMs`: a replay's present, else the server's now).
|
|
134
120
|
*/
|
|
135
121
|
export function tradesSeedStartMs(nowMs, historySec, intervalMs, exchange) {
|
|
136
122
|
const seedMs = nowMs - historySec * 1000;
|
|
137
123
|
if (!(historySec > 0) || !Number.isFinite(intervalMs) || intervalMs <= 0)
|
|
138
124
|
return seedMs;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
125
|
+
const lattice = tradesLatticeAt(exchange, intervalMs);
|
|
126
|
+
if (lattice !== null)
|
|
127
|
+
return sessionLatticeBarOpenMs(lattice, seedMs, intervalMs) ?? barStartMs(seedMs, intervalMs);
|
|
142
128
|
return tradesBarStartMs(seedMs, intervalMs, exchange);
|
|
143
129
|
}
|
|
144
130
|
/**
|
|
@@ -150,9 +136,9 @@ export function tradesSeedStartMs(nowMs, historySec, intervalMs, exchange) {
|
|
|
150
136
|
export function tradesBarOpenMs(tsMs, intervalMs, exchange) {
|
|
151
137
|
if (!Number.isFinite(intervalMs) || intervalMs <= 0)
|
|
152
138
|
return tsMs;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
139
|
+
const lattice = tradesLatticeAt(exchange, intervalMs);
|
|
140
|
+
if (lattice !== null)
|
|
141
|
+
return sessionLatticeBarOpenMs(lattice, tsMs, intervalMs) ?? barStartMs(tsMs, intervalMs);
|
|
156
142
|
return tradesBarStartMs(tsMs, intervalMs, exchange);
|
|
157
143
|
}
|
|
158
144
|
/** The open of the first chart bar opening at or after `tsMs`: the bar holding it when it opens
|
|
@@ -162,19 +148,22 @@ export function tradesFirstBarOpenFromMs(tsMs, intervalMs, exchange) {
|
|
|
162
148
|
const open = tradesBarOpenMs(tsMs, intervalMs, exchange);
|
|
163
149
|
if (open >= tsMs || !Number.isFinite(intervalMs) || intervalMs <= 0)
|
|
164
150
|
return open;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
const
|
|
151
|
+
const lattice = tradesLatticeAt(exchange, intervalMs);
|
|
152
|
+
if (lattice !== null) {
|
|
153
|
+
const key = sessionLatticeBucketMs(lattice, tsMs, intervalMs);
|
|
154
|
+
const end = key === null ? null : sessionLatticeBarEndMs(lattice, key, intervalMs);
|
|
168
155
|
if (end !== null && end > tsMs)
|
|
169
156
|
return tradesBarOpenMs(end, intervalMs, exchange);
|
|
170
157
|
}
|
|
171
158
|
return barEndMs(tradesBarStartMs(tsMs, intervalMs, exchange), intervalMs);
|
|
172
159
|
}
|
|
173
|
-
/** Where a large-lane ask opens at the earliest: the first bar open at or after
|
|
174
|
-
* gateway's bar limit (TRADES_LARGE_BAR_LIMIT_SEC, kept a margin inside it), so the
|
|
175
|
-
* trims the window it was handed and the worker's grid opens where the answer does.
|
|
176
|
-
|
|
177
|
-
|
|
160
|
+
/** Where a large-lane ask opens at the earliest: the first bar open at or after the ask's window
|
|
161
|
+
* end minus the gateway's bar limit (TRADES_LARGE_BAR_LIMIT_SEC, kept a margin inside it), so the
|
|
162
|
+
* gateway never trims the window it was handed and the worker's grid opens where the answer does.
|
|
163
|
+
* The gateway counts a raw window's cap from the window's own end (now, for a window ending there),
|
|
164
|
+
* so the limit bounds the ask's length, never how far back it sits. */
|
|
165
|
+
export function tradesBarLimitStartMs(windowEndMs, barLimitSec, intervalMs, exchange) {
|
|
166
|
+
return tradesFirstBarOpenFromMs(windowEndMs - (barLimitSec - TRADES_LARGE_BAR_LIMIT_MARGIN_SEC) * 1000, intervalMs, exchange);
|
|
178
167
|
}
|
|
179
168
|
/**
|
|
180
169
|
* The first stamp a seeded history ask serves prints from, whichever of these is latest (K_TRADES's
|
|
@@ -182,14 +171,18 @@ export function tradesBarLimitStartMs(nowMs, barLimitSec, intervalMs, exchange)
|
|
|
182
171
|
* never opens inside a bar: a CME daily-class bar's key runs ahead of its open), the seed start
|
|
183
172
|
* (`tradesSeedStartMs`), the table's retention horizon, and on the large lane the gateway's bar
|
|
184
173
|
* limit (`barLimitSec`, `tradesBarLimitStartMs`). A reader of the answer (the wrun reconcile) tells
|
|
185
|
-
* a PARTIAL first bucket, one that opened before this stamp, from a bucket served whole.
|
|
174
|
+
* a PARTIAL first bucket, one that opened before this stamp, from a bucket served whole. The seed
|
|
175
|
+
* counts back from the ask's as-of (`historyAsOfMs`, the ask's `SOURCE_HISTORY_AS_OF_FIELD`:
|
|
176
|
+
* `sourceHistoryAsOfMs`, the request builder's rule), the retention from `nowMs`, and the bar limit
|
|
177
|
+
* from the ask's window end (`windowEndMs`, else `nowMs`: the gateway counts a raw window's cap from
|
|
178
|
+
* its own end).
|
|
186
179
|
*/
|
|
187
180
|
export function tradesServedStartMs(nowMs, historySec, intervalMs, options = {}) {
|
|
188
181
|
return Math.max(options.windowFromMs === undefined
|
|
189
182
|
? Number.NEGATIVE_INFINITY
|
|
190
|
-
: tradesBarOpenMs(options.windowFromMs, intervalMs, options.exchange), tradesSeedStartMs(nowMs, historySec, intervalMs, options.exchange), nowMs - (options.retentionSec ?? TRADES_RETENTION_SEC) * 1000, options.barLimitSec === undefined
|
|
183
|
+
: tradesBarOpenMs(options.windowFromMs, intervalMs, options.exchange), tradesSeedStartMs(sourceHistoryAsOfMs(options.historyAsOfMs, nowMs), historySec, intervalMs, options.exchange), nowMs - (options.retentionSec ?? TRADES_RETENTION_SEC) * 1000, options.barLimitSec === undefined
|
|
191
184
|
? Number.NEGATIVE_INFINITY
|
|
192
|
-
: tradesBarLimitStartMs(nowMs, options.barLimitSec, intervalMs, options.exchange));
|
|
185
|
+
: tradesBarLimitStartMs(options.windowEndMs ?? nowMs, options.barLimitSec, intervalMs, options.exchange));
|
|
193
186
|
}
|
|
194
187
|
/** Null for a point the fold rejects, another channel's included; without `large`, either channel (stamp readers). */
|
|
195
188
|
export function readLiveTradePrint(newPoint, large) {
|
|
@@ -280,24 +273,6 @@ export function tradesCmeProductRoot(market) {
|
|
|
280
273
|
return symbol.slice(0, -2) || undefined;
|
|
281
274
|
return CME_CONTRACT_CODE.exec(symbol)?.[1] ?? symbol;
|
|
282
275
|
}
|
|
283
|
-
/** Whether the collector copies a CME Group product root into the large-print table (`TRADES_LARGE_CME_ROOTS`); false
|
|
284
|
-
* for an unknown root. */
|
|
285
|
-
export function tradesLargeServesCmeRoot(root) {
|
|
286
|
-
return typeof root === 'string' && TRADES_LARGE_CME_ROOTS.has(root.trim().toUpperCase());
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* Whether the large-print table holds a market's big trades, the ONE rule of the tape lane a market rides
|
|
290
|
-
* (`tradesLaneLimits`): on a CME Group venue only a product root the collector copies (`tradesLargeServesCmeRoot`, the
|
|
291
|
-
* root `tradesCmeProductRoot` reads: `MGC1!`, `MGCZ6` and `MGC-USD` are MGC, which it does not); every other market
|
|
292
|
-
* is the collector's dollar rule's, which copies every print of at least $10k quote on a dollar-quoted market (a
|
|
293
|
-
* dollar tape on any other quote is refused by name before any fetch, `wrun_tape_value_unproven`). A tape on a market
|
|
294
|
-
* the table does not hold rides the raw tape, never the empty table.
|
|
295
|
-
*/
|
|
296
|
-
export function tradesLargeServesMarket(market) {
|
|
297
|
-
if (!isCmeSessionLatticeExchange(market.exchange))
|
|
298
|
-
return true;
|
|
299
|
-
return tradesLargeServesCmeRoot(tradesCmeProductRoot(market));
|
|
300
|
-
}
|
|
301
276
|
/** The venues whose TRADE_LARGE read honors `minAmountPerOrder`; no other read may name it (a v2-only field leaves /v3). */
|
|
302
277
|
export function tradesFloorPerOrder(exchange) {
|
|
303
278
|
return isCmeSessionLatticeExchange(exchange);
|
|
@@ -309,11 +284,9 @@ export function tradesTapeFloorIsDollars(floor) {
|
|
|
309
284
|
}
|
|
310
285
|
/** The tape lane an acquisition rides: the large lane (the table's retention, the gateway's bar
|
|
311
286
|
* limit, the declared history) when it asks `large`, else the raw tape (a two-hour seed inside the
|
|
312
|
-
* raw table's retention). Big trades read the large-print table
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
* the collector does not copy rides the raw tape (its two hours and the raw live channel, every fill
|
|
316
|
-
* judged on its own) instead of an empty table that draws nothing. A dollar floor (`floor.minValue`)
|
|
287
|
+
* raw table's retention). Big trades read the large-print table only, never the raw tape: raw trade
|
|
288
|
+
* is kept about two days, so a longer chart would show its small prints on the newest bars alone. A
|
|
289
|
+
* market the collector never copies reads the table empty and gets no live row either. A dollar floor (`floor.minValue`)
|
|
317
290
|
* on the raw tape reads no history at all (`historyCapSec` 0, the live edge): the raw tape's quote
|
|
318
291
|
* amounts are priced by no writer rule (a backfill gap is NULL), so its rows are no proven dollars.
|
|
319
292
|
* The ONE rule of a tape's served history: the request builder, the reconcile's served start and the
|
|
@@ -158,6 +158,13 @@ export interface MarketDataSubscriptionDto {
|
|
|
158
158
|
pendingDowngrade?: MarketDataPendingDowngrade | null;
|
|
159
159
|
/** The Stripe payment method the subscription charges, or null. Additive (a multi-product venue's DTO names it). */
|
|
160
160
|
paymentMethodId?: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* True exactly while Stripe's status is `past_due`: the renewal payment failed, so nothing renews at `renewsAt`.
|
|
163
|
+
* Additive: a server from before it answers none, which the mapper reads as false.
|
|
164
|
+
*/
|
|
165
|
+
pastDue?: boolean;
|
|
166
|
+
/** Stripe's hosted page for the owed renewal invoice while `pastDue`; absent or null when none is owed or on a server from before it. */
|
|
167
|
+
invoiceUrl?: string | null;
|
|
161
168
|
}
|
|
162
169
|
/** `grant.steps`: the declaration and the agreement the release waits on, as orange judges the records now. */
|
|
163
170
|
export interface MarketDataOperatorGrantStepsDto {
|
|
@@ -221,7 +228,8 @@ export interface MarketDataPostalAddress {
|
|
|
221
228
|
line2?: string;
|
|
222
229
|
city: string;
|
|
223
230
|
region?: string;
|
|
224
|
-
|
|
231
|
+
/** Absent where the country's address has no postal code (the UAE, Hong Kong, Qatar and more). */
|
|
232
|
+
postalCode?: string;
|
|
225
233
|
country: string;
|
|
226
234
|
}
|
|
227
235
|
/**
|
|
@@ -185,7 +185,7 @@ export interface MarketDataPlanCard {
|
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
187
|
* The surfaces that carry a venue's delay disclosure wherever its delayed data shows (docs/features/search/
|
|
188
|
-
* option-chain-browser.md, "Delay and disclosure"; tests/structure/
|
|
188
|
+
* option-chain-browser.md, "Delay and disclosure"; tests/structure/delay-notice-surfaces.spec.ts holds the rule).
|
|
189
189
|
*/
|
|
190
190
|
export type MarketDataDisclosureSurface = 'chain-page-subtitle' | 'chain-price-pill' | 'chain-table-marker' | 'chain-strike-preview' | 'chain-index-notice' | 'flow-tape' | 'terminal-options-tab' | 'options-overlay-legends' | 'indicator-legend-notes' | 'contract-chart-delay-chip' | 'contract-chart-delay-card' | 'chart-source-line' | 'watchlist-panel' | 'watchlist-cell-tooltip' | 'board' | 'purchase-live-price';
|
|
191
191
|
export interface MarketDataVenue {
|
|
@@ -235,7 +235,7 @@ export declare const FLAG_GATED_MARKET_DATA_VENUES: readonly [{
|
|
|
235
235
|
readonly internalRolePolicy: "refuse";
|
|
236
236
|
readonly payFirst: true;
|
|
237
237
|
readonly questionnaire: {
|
|
238
|
-
readonly formVersion: "stocks-
|
|
238
|
+
readonly formVersion: "stocks-2026-10-20";
|
|
239
239
|
readonly questions: readonly [{
|
|
240
240
|
readonly id: "personal_non_business_use";
|
|
241
241
|
readonly qualifying: true;
|
|
@@ -319,7 +319,7 @@ export declare const FLAG_GATED_MARKET_DATA_VENUES: readonly [{
|
|
|
319
319
|
readonly agreements: readonly [{
|
|
320
320
|
readonly id: "cta-exhibit-b";
|
|
321
321
|
readonly productGroups: import("../../interfaces/stocks-realtime.interface.js").StocksGovernedExchange[];
|
|
322
|
-
readonly version: "cta-exhibit-b-
|
|
322
|
+
readonly version: "cta-exhibit-b-2013-11-01";
|
|
323
323
|
readonly url: "/api/v1/market-data/stocks/agreements/cta-exhibit-b";
|
|
324
324
|
readonly recordedAs: "assent";
|
|
325
325
|
readonly delayedRequiresAcceptance: false;
|
|
@@ -327,7 +327,7 @@ export declare const FLAG_GATED_MARKET_DATA_VENUES: readonly [{
|
|
|
327
327
|
}, {
|
|
328
328
|
readonly id: "utp-subscriber";
|
|
329
329
|
readonly productGroups: import("../../interfaces/stocks-realtime.interface.js").StocksGovernedExchange[];
|
|
330
|
-
readonly version: "utp-subscriber-
|
|
330
|
+
readonly version: "utp-subscriber-2019-1b";
|
|
331
331
|
readonly url: "/api/v1/market-data/stocks/agreements/utp-subscriber";
|
|
332
332
|
readonly recordedAs: "assent";
|
|
333
333
|
readonly delayedRequiresAcceptance: false;
|
|
@@ -340,7 +340,7 @@ export declare const FLAG_GATED_MARKET_DATA_VENUES: readonly [{
|
|
|
340
340
|
readonly i18nNamespace: "stocksRealtimeData";
|
|
341
341
|
readonly storeId: "stocksRealtime";
|
|
342
342
|
readonly surfaces: readonly ["contract-chart-delay-chip", "chart-source-line"];
|
|
343
|
-
readonly contractRevision: "2026-
|
|
343
|
+
readonly contractRevision: "2026-11-04.1";
|
|
344
344
|
}];
|
|
345
345
|
type CarriedMarketDataVenue = (typeof MARKET_DATA_VENUES)[number] | (typeof FLAG_GATED_MARKET_DATA_VENUES)[number];
|
|
346
346
|
/** A registered venue's key: a card the build carries, served now or dark. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"revision": "2026-
|
|
2
|
+
"revision": "2026-11-04.1",
|
|
3
3
|
"key": "stocks",
|
|
4
4
|
"productGroups": ["NYSE", "NYSE_ARCA", "NASDAQ"],
|
|
5
5
|
"products": [
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"interval": "1m"
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
|
-
"formVersion": "stocks-
|
|
13
|
+
"formVersion": "stocks-2026-10-20",
|
|
14
14
|
"questions": [
|
|
15
15
|
{ "id": "personal_non_business_use", "qualifying": true },
|
|
16
16
|
{ "id": "receives_for_business_or_entity", "qualifying": false },
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
{
|
|
37
37
|
"id": "cta-exhibit-b",
|
|
38
38
|
"productGroups": ["NYSE", "NYSE_ARCA"],
|
|
39
|
-
"version": "cta-exhibit-b-
|
|
39
|
+
"version": "cta-exhibit-b-2013-11-01",
|
|
40
40
|
"url": "/api/v1/market-data/stocks/agreements/cta-exhibit-b",
|
|
41
41
|
"recordedAs": "assent"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"id": "utp-subscriber",
|
|
45
45
|
"productGroups": ["NASDAQ"],
|
|
46
|
-
"version": "utp-subscriber-
|
|
46
|
+
"version": "utp-subscriber-2019-1b",
|
|
47
47
|
"url": "/api/v1/market-data/stocks/agreements/utp-subscriber",
|
|
48
48
|
"recordedAs": "assent"
|
|
49
49
|
}
|
|
@@ -21,7 +21,7 @@ export declare const STOCKS_VENUE: {
|
|
|
21
21
|
readonly internalRolePolicy: "refuse";
|
|
22
22
|
readonly payFirst: true;
|
|
23
23
|
readonly questionnaire: {
|
|
24
|
-
readonly formVersion: "stocks-
|
|
24
|
+
readonly formVersion: "stocks-2026-10-20";
|
|
25
25
|
readonly questions: readonly [{
|
|
26
26
|
readonly id: "personal_non_business_use";
|
|
27
27
|
readonly qualifying: true;
|
|
@@ -105,7 +105,7 @@ export declare const STOCKS_VENUE: {
|
|
|
105
105
|
readonly agreements: readonly [{
|
|
106
106
|
readonly id: "cta-exhibit-b";
|
|
107
107
|
readonly productGroups: import("../../interfaces/stocks-realtime.interface.js").StocksGovernedExchange[];
|
|
108
|
-
readonly version: "cta-exhibit-b-
|
|
108
|
+
readonly version: "cta-exhibit-b-2013-11-01";
|
|
109
109
|
readonly url: "/api/v1/market-data/stocks/agreements/cta-exhibit-b";
|
|
110
110
|
readonly recordedAs: "assent";
|
|
111
111
|
readonly delayedRequiresAcceptance: false;
|
|
@@ -113,7 +113,7 @@ export declare const STOCKS_VENUE: {
|
|
|
113
113
|
}, {
|
|
114
114
|
readonly id: "utp-subscriber";
|
|
115
115
|
readonly productGroups: import("../../interfaces/stocks-realtime.interface.js").StocksGovernedExchange[];
|
|
116
|
-
readonly version: "utp-subscriber-
|
|
116
|
+
readonly version: "utp-subscriber-2019-1b";
|
|
117
117
|
readonly url: "/api/v1/market-data/stocks/agreements/utp-subscriber";
|
|
118
118
|
readonly recordedAs: "assent";
|
|
119
119
|
readonly delayedRequiresAcceptance: false;
|
|
@@ -126,5 +126,5 @@ export declare const STOCKS_VENUE: {
|
|
|
126
126
|
readonly i18nNamespace: "stocksRealtimeData";
|
|
127
127
|
readonly storeId: "stocksRealtime";
|
|
128
128
|
readonly surfaces: readonly ["contract-chart-delay-chip", "chart-source-line"];
|
|
129
|
-
readonly contractRevision: "2026-
|
|
129
|
+
readonly contractRevision: "2026-11-04.1";
|
|
130
130
|
};
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
* OPRA's policy set (pay first, one product, a professional refused), with what the tape adds: two agreements, one per
|
|
8
8
|
* set of product groups (`agreements`: CTA's Exhibit B covers Tapes A and B, `NYSE_TAPE` and `NYSE_ARCA_TAPE`, the UTP
|
|
9
|
-
* Subscriber Agreement covers Tape C, `NASDAQ_TAPE`; the gate release's `agreements:` names and versions,
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Subscriber Agreement covers Tape C, `NASDAQ_TAPE`; the gate release's `agreements:` names and versions, each version
|
|
10
|
+
* the revision of the text orange serves), staff refused (ENTITLEMENT.md §7: no staff real time, the release's
|
|
11
|
+
* `internal_realtime: false`), and a declaration that records the Exhibit B Section 2 answers (a) to (k), the
|
|
12
|
+
* Paragraph 12 data and the UTP subscriber fields (`recordFields`, `legalNameFrom`). The question wording is the screen
|
|
13
|
+
* NYSE approved on 2026-10-21: the content module is marked approved, so the plan page sells
|
|
14
|
+
* (src/components/dialogs/market-data/questionnaires/stocks.ts).
|
|
15
15
|
*
|
|
16
16
|
* Pinned against the contract copy beside this file (`stocks.contract.copy.json`, written from this card until orange's
|
|
17
17
|
* export replaces it) and the gate's release mirror (`gate-mirror.copy.yaml` beside the spec) by
|
|
@@ -40,9 +40,9 @@ export const STOCKS_VENUE = {
|
|
|
40
40
|
internalRolePolicy: 'refuse',
|
|
41
41
|
payFirst: true,
|
|
42
42
|
questionnaire: {
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
formVersion: 'stocks-
|
|
43
|
+
// The approved screen's submission date: the Exhibit B screen went to NYSE with Exhibit A on 2026-10-20, approved
|
|
44
|
+
// on 2026-10-21. Bump on any change to the questions, their order or their wording.
|
|
45
|
+
formVersion: 'stocks-2026-10-20',
|
|
46
46
|
// CTA Exhibit B, Section 2, Paragraph 10 (a) to (k), in order: (a) personal, non-business use qualifies with Yes,
|
|
47
47
|
// every other question with No.
|
|
48
48
|
questions: [
|
|
@@ -87,7 +87,8 @@ export const STOCKS_VENUE = {
|
|
|
87
87
|
{
|
|
88
88
|
id: 'cta-exhibit-b',
|
|
89
89
|
productGroups: CTA_TAPES,
|
|
90
|
-
|
|
90
|
+
// The text's revision date: Exhibit B R1 of 2013-11-01, its vendor blank completed (Thanefield Capital Limited).
|
|
91
|
+
version: 'cta-exhibit-b-2013-11-01',
|
|
91
92
|
url: '/api/v1/market-data/stocks/agreements/cta-exhibit-b',
|
|
92
93
|
recordedAs: 'assent',
|
|
93
94
|
delayedRequiresAcceptance: false,
|
|
@@ -97,7 +98,8 @@ export const STOCKS_VENUE = {
|
|
|
97
98
|
{
|
|
98
99
|
id: 'utp-subscriber',
|
|
99
100
|
productGroups: UTP_TAPES,
|
|
100
|
-
|
|
101
|
+
// The text's footer revision: the UTP Plan Subscriber Agreement 2019-1B, behind the Option 4 statement.
|
|
102
|
+
version: 'utp-subscriber-2019-1b',
|
|
101
103
|
url: '/api/v1/market-data/stocks/agreements/utp-subscriber',
|
|
102
104
|
recordedAs: 'assent',
|
|
103
105
|
delayedRequiresAcceptance: false,
|
|
@@ -106,12 +108,12 @@ export const STOCKS_VENUE = {
|
|
|
106
108
|
// CTA and UTP define delayed data as 15 minutes after publication; the gate's window adds a 5 s margin (905 s).
|
|
107
109
|
delayMinutes: 15,
|
|
108
110
|
// The CTA Delayed Market Data Policy's exact statement: STOCKS_DELAY_STATEMENT in
|
|
109
|
-
//
|
|
111
|
+
// constants/stocks-compliance.constants.ts ("Delayed 15 minutes").
|
|
110
112
|
disclosure: { kind: 'verbatim' },
|
|
111
113
|
flagKey: FeatureFlag.UsEquitiesFull,
|
|
112
114
|
i18nNamespace: 'stocksRealtimeData',
|
|
113
115
|
storeId: 'stocksRealtime',
|
|
114
116
|
// For now the delay statement shows on a tape chart's delay chip and its source line only.
|
|
115
117
|
surfaces: ['contract-chart-delay-chip', 'chart-source-line'],
|
|
116
|
-
contractRevision: '2026-
|
|
118
|
+
contractRevision: '2026-11-04.1',
|
|
117
119
|
};
|
|
@@ -17,7 +17,7 @@ import type { DeclaredFieldRow } from './indicator-fields.js';
|
|
|
17
17
|
* - `row`: the companion's workspace row (the workspace save keeps it).
|
|
18
18
|
* - `mirror`: the box's copy of its companion, so a profile rebuilt from the box mounts it.
|
|
19
19
|
* - `template`: a named FRVP template (a drawing template: the box's style and Show on, the profile's preferences).
|
|
20
|
-
* - `default`: the saved FRVP defaults the next FRVP starts from (Save as default, every
|
|
20
|
+
* - `default`: the saved FRVP defaults the next FRVP starts from (Save as default, every edit the user makes).
|
|
21
21
|
*
|
|
22
22
|
* Generic drawing keys every tool has (`isLocked`, `isHidden`, ...) are not FRVP fields and are not listed. Imports
|
|
23
23
|
* nothing at run time: the tool tables' generator reads this table at package build.
|
|
@@ -25,3 +25,14 @@ import type { DeclaredFieldRow } from './indicator-fields.js';
|
|
|
25
25
|
/** The FRVP's drawing type (chart-schema TOOLS), the key its templates are filed under. */
|
|
26
26
|
export declare const FRVP_TOOL_TYPE = "FixedRangeVolumeProfile";
|
|
27
27
|
export declare const FRVP_FIELD_ROWS: readonly DeclaredFieldRow[];
|
|
28
|
+
/**
|
|
29
|
+
* The stamp of the saved FRVP defaults' profile half in the account's style memory (the `profileDefaultsVersion` row):
|
|
30
|
+
* the version of the writers that wrote it. From 2026-10-20 the web panel wrote the profile there with no reader (an
|
|
31
|
+
* edit's keys, a Reset's white level lines and its theme's colours), so an entry without the stamp holds values no one
|
|
32
|
+
* chose for new profiles: a new profile reads the profile half only from an entry stamped at this version or later,
|
|
33
|
+
* which Save as default, Reset and every profile edit write since 2026-11-02.
|
|
34
|
+
*/
|
|
35
|
+
export declare const FRVP_PROFILE_DEFAULTS_STAMP: Readonly<{
|
|
36
|
+
key: "profileDefaultsVersion";
|
|
37
|
+
version: 2;
|
|
38
|
+
}>;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* - `row`: the companion's workspace row (the workspace save keeps it).
|
|
17
17
|
* - `mirror`: the box's copy of its companion, so a profile rebuilt from the box mounts it.
|
|
18
18
|
* - `template`: a named FRVP template (a drawing template: the box's style and Show on, the profile's preferences).
|
|
19
|
-
* - `default`: the saved FRVP defaults the next FRVP starts from (Save as default, every
|
|
19
|
+
* - `default`: the saved FRVP defaults the next FRVP starts from (Save as default, every edit the user makes).
|
|
20
20
|
*
|
|
21
21
|
* Generic drawing keys every tool has (`isLocked`, `isHidden`, ...) are not FRVP fields and are not listed. Imports
|
|
22
22
|
* nothing at run time: the tool tables' generator reads this table at package build.
|
|
@@ -40,9 +40,9 @@ export const FRVP_FIELD_ROWS = [
|
|
|
40
40
|
['color', BOX_STYLE],
|
|
41
41
|
['lineStyle', BOX_STYLE],
|
|
42
42
|
['lineWidth', BOX_STYLE],
|
|
43
|
-
// "Show on": the intervals the box shows on
|
|
44
|
-
//
|
|
45
|
-
['visibleIntervalsMs', { owner: 'box', lanes: ['template'], unset: Object.freeze([]) }],
|
|
43
|
+
// "Show on": the intervals the box shows on, All intervals as [] (TEMPLATES-PLAN decision 3). A template keeps it as
|
|
44
|
+
// every drawing's template does, and so does the default: a new FRVP shows where the last one did (TradingView).
|
|
45
|
+
['visibleIntervalsMs', { owner: 'box', lanes: ['template', 'default'], unset: Object.freeze([]) }],
|
|
46
46
|
['profileData', BOX_DRAWN],
|
|
47
47
|
['profileNote', BOX_DRAWN],
|
|
48
48
|
['profileStale', BOX_DRAWN],
|
|
@@ -119,4 +119,15 @@ export const FRVP_FIELD_ROWS = [
|
|
|
119
119
|
['levelLineStyle', PREFERENCE],
|
|
120
120
|
// Stamped on every mount in the reader's language: mirrored so the box prints it, never saved.
|
|
121
121
|
['profileStatsLabels', { owner: 'profile', lanes: ['mirror'] }],
|
|
122
|
+
// Not a setting: the stamp the saved defaults' profile half carries in the account's style memory, written with it
|
|
123
|
+
// (FRVP_PROFILE_DEFAULTS_STAMP below). In the default lane so the memory keeps it; no panel, row or copy holds it.
|
|
124
|
+
['profileDefaultsVersion', { owner: 'profile', lanes: ['default'] }],
|
|
122
125
|
];
|
|
126
|
+
/**
|
|
127
|
+
* The stamp of the saved FRVP defaults' profile half in the account's style memory (the `profileDefaultsVersion` row):
|
|
128
|
+
* the version of the writers that wrote it. From 2026-10-20 the web panel wrote the profile there with no reader (an
|
|
129
|
+
* edit's keys, a Reset's white level lines and its theme's colours), so an entry without the stamp holds values no one
|
|
130
|
+
* chose for new profiles: a new profile reads the profile half only from an entry stamped at this version or later,
|
|
131
|
+
* which Save as default, Reset and every profile edit write since 2026-11-02.
|
|
132
|
+
*/
|
|
133
|
+
export const FRVP_PROFILE_DEFAULTS_STAMP = Object.freeze({ key: 'profileDefaultsVersion', version: 2 });
|
|
@@ -124,10 +124,12 @@ function indicatorSpecs(type) {
|
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* A drawing type's fields, from the generated tables: its style (registry defaultStyle and held extras) and "Show on"
|
|
127
|
-
* in the template lane, its style minus
|
|
128
|
-
* in the template lane only, and the per-drawing instance keys, the type's own included (a GhostFeed's
|
|
129
|
-
* high-low and variance: in its style, in no lane).
|
|
130
|
-
*
|
|
127
|
+
* in the template lane, its style minus a placed drawing's geometry and its "Show on" in the default lane, a label
|
|
128
|
+
* type's label in the template lane only, and the per-drawing instance keys, the type's own included (a GhostFeed's
|
|
129
|
+
* seeded average high-low and variance: in its style, in no lane). An interval-bound type's "Show on" is instance
|
|
130
|
+
* state, and a type whose defaults keep nothing (Image) has it in the template lane only. The FRVP's are its own
|
|
131
|
+
* table (box and profile). A type the registry does not know declares only the instance keys: nothing of it is taken
|
|
132
|
+
* from a template.
|
|
131
133
|
*/
|
|
132
134
|
function toolSpecs(type) {
|
|
133
135
|
if (type === FRVP_TOOL_TYPE)
|
|
@@ -156,7 +158,12 @@ function toolSpecs(type) {
|
|
|
156
158
|
if (isIntervalBoundTool(type))
|
|
157
159
|
specs.push(specOf(VISIBLE_INTERVALS_KEY, { lanes: [], instance: true }));
|
|
158
160
|
else if (templateKeys.has(VISIBLE_INTERVALS_KEY)) {
|
|
159
|
-
|
|
161
|
+
// "Show on" is the user's pick for the type, as TradingView keeps it: a drawing hidden on minute charts makes the
|
|
162
|
+
// next drawing of its type hidden there too (checked 2026-11-02 on its demo chart, a Long Position and a
|
|
163
|
+
// horizontal line). So Save as default and the style memory keep it with the look; until then it rode the
|
|
164
|
+
// template lane only, and every new drawing forgot it.
|
|
165
|
+
const lanes = keepsDefaults ? ['template', 'default'] : ['template'];
|
|
166
|
+
specs.push(specOf(VISIBLE_INTERVALS_KEY, { lanes, unset: Object.freeze([]) }));
|
|
160
167
|
}
|
|
161
168
|
for (const key of instanceKeys)
|
|
162
169
|
specs.push(specOf(key, { lanes: [], instance: true }));
|