@orangecharts/wrun-chart-host 0.9.0 → 0.11.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 +2 -0
- package/dist/constants/feature-flags.constants.d.ts +15 -1
- package/dist/constants/feature-flags.constants.js +130 -24
- package/dist/constants/governed-exchanges.constants.d.ts +12 -0
- package/dist/constants/governed-exchanges.constants.js +16 -0
- package/dist/constants/opra-compliance.constants.d.ts +3 -2
- package/dist/constants/opra-compliance.constants.js +3 -2
- package/dist/constants/option-venues.constants.d.ts +2 -2
- package/dist/constants/scriptEditor/builtin-script-snippets.d.ts +26 -0
- package/dist/constants/scriptEditor/builtin-script-snippets.js +6 -0
- package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.d.ts +15 -0
- package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.js +17 -0
- package/dist/constants/venue-presets.constants.d.ts +20 -20
- package/dist/constants/venue-presets.constants.js +24 -26
- package/dist/host-env.d.ts +21 -5
- package/dist/host-env.js +6 -0
- package/dist/host-ports.types.d.ts +102 -19
- package/dist/index.d.ts +18 -0
- package/dist/index.js +18 -0
- package/dist/interfaces/cancel-reason.interface.d.ts +1 -1
- package/dist/interfaces/cme-realtime.interface.d.ts +16 -9
- package/dist/interfaces/cme-realtime.interface.js +6 -3
- package/dist/interfaces/kscript-diagnostics.interface.d.ts +12 -0
- package/dist/interfaces/opra-realtime.interface.d.ts +1 -5
- package/dist/interfaces/prediction-market.interface.d.ts +7 -0
- package/dist/interfaces/replay.interface.d.ts +8 -0
- package/dist/interfaces/stocks-realtime.interface.d.ts +57 -0
- package/dist/interfaces/stocks-realtime.interface.js +32 -0
- package/dist/interfaces/wrun-runtime.interface.d.ts +18 -2
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +62 -94
- package/dist/kscript-data/controls/live-trades-merge.util.js +106 -171
- package/dist/market-data/billing.interface.d.ts +174 -36
- package/dist/market-data/billing.interface.js +58 -8
- package/dist/market-data/venue.d.ts +152 -7
- package/dist/market-data/venues/cme.contract.copy.json +66 -0
- package/dist/market-data/venues/cme.d.ts +126 -0
- package/dist/market-data/venues/cme.js +133 -0
- package/dist/market-data/venues/index.d.ts +294 -7
- package/dist/market-data/venues/index.js +49 -6
- package/dist/market-data/venues/opra.contract.copy.json +3 -2
- package/dist/market-data/venues/opra.d.ts +2 -2
- package/dist/market-data/venues/opra.js +5 -2
- package/dist/market-data/venues/stocks.contract.copy.json +64 -0
- package/dist/market-data/venues/stocks.d.ts +130 -0
- package/dist/market-data/venues/stocks.js +117 -0
- package/dist/settings-templates/footprint-rows.js +35 -2
- package/dist/settings-templates/form-rows.d.ts +2 -1
- package/dist/settings-templates/index.js +7 -3
- package/dist/settings-templates/indicator-fields.d.ts +5 -4
- package/dist/settings-templates/indicator-fields.js +79 -10
- package/dist/settings-templates/tool-rules.d.ts +32 -15
- package/dist/settings-templates/tool-rules.js +33 -11
- package/dist/settings-templates/tool-tables.generated.js +95 -31
- package/dist/utility/chart/book-live-bucket.util.d.ts +15 -0
- package/dist/utility/chart/book-live-bucket.util.js +47 -0
- package/dist/utility/chart/cme-cache-context.util.d.ts +5 -3
- package/dist/utility/chart/cme-cache-context.util.js +10 -6
- package/dist/utility/chart/cme-realtime.util.js +10 -0
- package/dist/utility/chart/cme-user-scripts-gate.util.d.ts +83 -0
- package/dist/utility/chart/cme-user-scripts-gate.util.js +142 -0
- package/dist/utility/chart/effective-chart-session.util.d.ts +14 -0
- package/dist/utility/chart/effective-chart-session.util.js +39 -0
- package/dist/utility/chart/host-bar-placement.util.d.ts +28 -0
- package/dist/utility/chart/host-bar-placement.util.js +170 -30
- package/dist/utility/chart/index-host-tier.util.d.ts +3 -1
- package/dist/utility/chart/index-host-tier.util.js +7 -2
- package/dist/utility/chart/index-mode-admission.util.js +30 -3
- package/dist/utility/chart/kscript-apply-fingerprint.util.js +1 -1
- package/dist/utility/chart/kscript-drawing-safe-area.util.d.ts +35 -11
- package/dist/utility/chart/kscript-drawing-safe-area.util.js +145 -35
- package/dist/utility/chart/kscript-live-coalesce.util.d.ts +9 -7
- package/dist/utility/chart/kscript-live-coalesce.util.js +13 -8
- package/dist/utility/chart/kscript-live-source-identity.util.d.ts +9 -0
- package/dist/utility/chart/kscript-live-source-identity.util.js +10 -1
- package/dist/utility/chart/kscript-provenance-keys.util.js +13 -0
- package/dist/utility/chart/kscript-standin-identity.leaf.d.ts +5 -1
- package/dist/utility/chart/kscript-titancharts-render-keys.constants.d.ts +32 -2
- package/dist/utility/chart/kscript-titancharts-render-keys.constants.js +45 -0
- package/dist/utility/chart/kscript-venue-policy.util.d.ts +156 -43
- package/dist/utility/chart/kscript-venue-policy.util.js +249 -59
- package/dist/utility/chart/live-bucket.util.d.ts +24 -8
- package/dist/utility/chart/live-bucket.util.js +85 -27
- package/dist/utility/chart/market-session-schedule.util.d.ts +10 -0
- package/dist/utility/chart/market-session-schedule.util.js +16 -0
- package/dist/utility/chart/marketKind.util.js +5 -0
- package/dist/utility/chart/mixed-mode.util.d.ts +7 -0
- package/dist/utility/chart/mixed-mode.util.js +14 -0
- package/dist/utility/chart/opra-read-access.leaf.d.ts +5 -3
- package/dist/utility/chart/opra-read-access.leaf.js +5 -3
- package/dist/utility/chart/opra-user-scripts-gate.util.d.ts +11 -16
- package/dist/utility/chart/opra-user-scripts-gate.util.js +12 -28
- package/dist/utility/chart/rth-session.util.d.ts +12 -10
- package/dist/utility/chart/rth-session.util.js +25 -21
- package/dist/utility/chart/trading-day.util.d.ts +17 -0
- package/dist/utility/chart/trading-day.util.js +59 -0
- package/dist/utility/chart/window-geometry.leaf.d.ts +8 -0
- package/dist/utility/chart/window-geometry.leaf.js +22 -6
- package/dist/utility/chart/window-owner.leaf.d.ts +23 -2
- package/dist/utility/chart/window-owner.leaf.js +45 -3
- package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +33 -15
- package/dist/utility/chart/wrun-bar-session-facts.util.js +70 -20
- package/dist/utility/chart/wrun-run-result.util.d.ts +12 -0
- package/dist/utility/chart/wrun-run-result.util.js +141 -6
- package/dist/utility/intl-locale.util.js +5 -0
- package/dist/utility/options/option-bar-anchor.util.d.ts +145 -0
- package/dist/utility/options/option-bar-anchor.util.js +340 -0
- package/dist/utility/options/option-venue.util.d.ts +18 -0
- package/dist/utility/options/option-venue.util.js +27 -0
- package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +4 -0
- package/dist/utility/v2/gate-plane.util.d.ts +12 -3
- package/dist/utility/v2/gate-plane.util.js +30 -4
- package/dist/utility/v2/gate-session-latch.util.js +1 -1
- package/dist/utility/v2/stocks-governed.util.d.ts +16 -0
- package/dist/utility/v2/stocks-governed.util.js +34 -0
- package/dist/utility/wrun/derived-roots.leaf.d.ts +13 -0
- package/dist/utility/wrun/derived-roots.leaf.js +27 -0
- package/dist/utility/wrun/derived-roots.util.d.ts +205 -0
- package/dist/utility/wrun/derived-roots.util.js +451 -0
- package/dist/utility/wrun/run-schedule/wrun-chart-gate-reader.util.d.ts +43 -7
- package/dist/utility/wrun/run-schedule/wrun-chart-gate-reader.util.js +89 -19
- package/dist/utility/wrun/run-schedule/wrun-gate-reader-warm.util.d.ts +9 -4
- package/dist/utility/wrun/run-schedule/wrun-gate-reader-warm.util.js +47 -6
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +4 -2
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +4 -2
- package/dist/utility/wrun/run-schedule/wrun-own-candles.util.d.ts +24 -3
- package/dist/utility/wrun/run-schedule/wrun-own-candles.util.js +46 -10
- package/dist/utility/wrun/sources/lanes/option_daily.js +5 -2
- package/dist/utility/wrun/sources/lanes/options_flow.js +5 -2
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +64 -19
- package/dist/utility/wrun/sources/opra-option-lanes.util.js +105 -35
- package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +2 -1
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +2 -1
- package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +3 -0
- package/dist/utility/wrun/sources/row-lanes/option_prints.js +19 -4
- package/dist/utility/wrun/sources/row-lanes/option_strike_flow.js +17 -4
- package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +52 -13
- package/dist/utility/wrun/sources/row-lanes/option_strikes.js +88 -19
- package/dist/utility/wrun/sources/row-lanes/option_surface.js +2 -1
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -0
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +24 -9
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +41 -10
- package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.d.ts +111 -0
- package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.js +133 -0
- package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.d.ts +15 -3
- package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.js +22 -3
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +31 -0
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +197 -13
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +761 -27
- package/dist/utility/wrun/wrun-browser-sources.leaf.js +1 -2
- package/dist/utility/wrun/wrun-builtin-twin.util.d.ts +12 -0
- package/dist/utility/wrun/wrun-builtin-twin.util.js +21 -0
- package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +60 -16
- package/dist/utility/wrun/wrun-chart-market-facts.util.js +113 -61
- package/dist/utility/wrun/wrun-color-settings.util.d.ts +9 -0
- package/dist/utility/wrun/wrun-color-settings.util.js +33 -0
- package/dist/utility/wrun/wrun-download-meter.util.d.ts +15 -0
- package/dist/utility/wrun/wrun-download-meter.util.js +14 -2
- package/dist/utility/wrun/wrun-download-plan.util.d.ts +99 -0
- package/dist/utility/wrun/wrun-download-plan.util.js +118 -0
- package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +11 -3
- package/dist/utility/wrun/wrun-draft-legend-note.util.js +26 -4
- package/dist/utility/wrun/wrun-frames.d.ts +27 -6
- package/dist/utility/wrun/wrun-frames.js +73 -10
- package/dist/utility/wrun/wrun-handles.util.d.ts +7 -3
- package/dist/utility/wrun/wrun-handles.util.js +9 -8
- package/dist/utility/wrun/wrun-hosted-wire.util.d.ts +7 -1
- package/dist/utility/wrun/wrun-hosted-wire.util.js +12 -2
- package/dist/utility/wrun/wrun-hud-looks.util.d.ts +18 -4
- package/dist/utility/wrun/wrun-hud-looks.util.js +45 -13
- package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +68 -0
- package/dist/utility/wrun/wrun-input-requirements.leaf.js +163 -7
- package/dist/utility/wrun/wrun-latest-snapshot.d.ts +11 -0
- package/dist/utility/wrun/wrun-leg-close.util.d.ts +59 -23
- package/dist/utility/wrun/wrun-leg-close.util.js +186 -28
- package/dist/utility/wrun/wrun-live-intake.util.d.ts +35 -15
- package/dist/utility/wrun/wrun-live-intake.util.js +243 -126
- package/dist/utility/wrun/wrun-live-tick.util.d.ts +13 -5
- package/dist/utility/wrun/wrun-live-tick.util.js +279 -99
- package/dist/utility/wrun/wrun-market-facts.util.d.ts +13 -3
- package/dist/utility/wrun/wrun-market-facts.util.js +13 -3
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +60 -11
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +70 -5
- package/dist/utility/wrun/wrun-market-size-defaults.util.js +31 -5
- package/dist/utility/wrun/wrun-opra-lane.util.d.ts +17 -4
- package/dist/utility/wrun/wrun-opra-lane.util.js +6 -4
- package/dist/utility/wrun/wrun-option-book-rows.util.d.ts +56 -0
- package/dist/utility/wrun/wrun-option-book-rows.util.js +96 -0
- package/dist/utility/wrun/wrun-option-strike-flow-forecast.util.d.ts +31 -0
- package/dist/utility/wrun/wrun-option-strike-flow-forecast.util.js +119 -0
- package/dist/utility/wrun/wrun-option-strike-flow-lane.util.d.ts +23 -6
- package/dist/utility/wrun/wrun-option-strike-flow-lane.util.js +47 -11
- package/dist/utility/wrun/wrun-option-strike-flow.util.d.ts +86 -19
- package/dist/utility/wrun/wrun-option-strike-flow.util.js +168 -62
- package/dist/utility/wrun/wrun-option-views.util.d.ts +323 -28
- package/dist/utility/wrun/wrun-option-views.util.js +484 -71
- package/dist/utility/wrun/wrun-options-chain.util.d.ts +3 -3
- package/dist/utility/wrun/wrun-options-chain.util.js +2 -0
- package/dist/utility/wrun/wrun-output-style.util.d.ts +6 -2
- package/dist/utility/wrun/wrun-output-style.util.js +20 -2
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +32 -2
- package/dist/utility/wrun/wrun-overlay-drivers.util.js +13 -3
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.d.ts +10 -1
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +52 -4
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +3 -1
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +160 -42
- package/dist/utility/wrun/wrun-overlay-run.util.js +1244 -209
- package/dist/utility/wrun/wrun-pane-format.util.d.ts +2 -1
- package/dist/utility/wrun/wrun-pane-format.util.js +7 -3
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +9 -0
- package/dist/utility/wrun/wrun-panel-mount.util.js +114 -19
- package/dist/utility/wrun/wrun-panel-style.util.d.ts +10 -9
- package/dist/utility/wrun/wrun-panel-style.util.js +58 -9
- package/dist/utility/wrun/wrun-param-map.util.d.ts +14 -11
- package/dist/utility/wrun/wrun-param-map.util.js +10 -5
- package/dist/utility/wrun/wrun-param-values.util.d.ts +14 -4
- package/dist/utility/wrun/wrun-param-values.util.js +4 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +15 -2
- package/dist/utility/wrun/wrun-pin-spelling.util.js +39 -14
- package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +50 -0
- package/dist/utility/wrun/wrun-refusal-surface.util.js +68 -0
- package/dist/utility/wrun/wrun-refusal.util.d.ts +3 -2
- package/dist/utility/wrun/wrun-refusal.util.js +22 -0
- package/dist/utility/wrun/wrun-refused-latest.util.d.ts +10 -0
- package/dist/utility/wrun/wrun-refused-latest.util.js +12 -0
- package/dist/utility/wrun/wrun-registry-errors.util.d.ts +26 -0
- package/dist/utility/wrun/wrun-registry-errors.util.js +34 -0
- package/dist/utility/wrun/wrun-replay-lane.util.js +3 -2
- package/dist/utility/wrun/wrun-row-source.d.ts +11 -0
- package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +20 -6
- package/dist/utility/wrun/wrun-run-interval-session.util.js +22 -7
- package/dist/utility/wrun/wrun-run-interval.util.d.ts +43 -9
- package/dist/utility/wrun/wrun-run-interval.util.js +58 -15
- package/dist/utility/wrun/wrun-script-inputs.util.d.ts +45 -1
- package/dist/utility/wrun/wrun-script-inputs.util.js +112 -4
- package/dist/utility/wrun/wrun-setting-words.util.d.ts +7 -3
- package/dist/utility/wrun/wrun-setting-words.util.js +13 -5
- package/dist/utility/wrun/wrun-socket-row-source.d.ts +27 -2
- package/dist/utility/wrun/wrun-socket-row-source.js +118 -8
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +29 -18
- package/dist/utility/wrun/wrun-source-rows.util.js +61 -27
- package/dist/utility/wrun/wrun-style-words.util.js +6 -4
- package/dist/utility/wrun/wrun-table-chrome.util.d.ts +3 -2
- package/dist/utility/wrun/wrun-table-chrome.util.js +19 -11
- package/dist/utility/wrun/wrun-tape-per-order.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-tape-per-order.util.js +7 -0
- package/dist/utility/wrun/wrun-tape-source.util.d.ts +17 -9
- package/dist/utility/wrun/wrun-tape-source.util.js +20 -12
- package/dist/utils/replay/replay-buffer-math.d.ts +53 -2
- package/dist/utils/replay/replay-buffer-math.js +227 -20
- package/dist/workers/constants/socket-slots.d.ts +91 -6
- package/dist/workers/constants/socket-slots.js +85 -6
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -128,6 +128,8 @@ What each published version holds. A host installs a version with the peers of i
|
|
|
128
128
|
|
|
129
129
|
| Version | Peers | What changed |
|
|
130
130
|
| --- | --- | --- |
|
|
131
|
+
| 0.11.0 | `@orangecharts/indicator-kit` 0.105.0, `@orangecharts/orange-v2-pb-common` 12.78.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | D-DEDUPE phase 1b, the book folds on `options_chain`: an input's `page_view` / `page_views` may name the data plane's folds of the chain page's whole book (`numbers`, `vol_term`, `smile`, `surface`, `strike_profile`; kit scaffold 105), the numbers the built-in options panes draw. `utility/wrun/wrun-option-views.util` copies the kit's book tables, pinned to it (`WRUN_OPTION_BOOK_VIEWS`, `WRUN_OPTION_BOOK_VIEW_ROW_WIDTHS`, `WRUN_OPTION_BOOK_EXPIRIES_TAKES`, `WRUN_OPTION_BOOK_SCOPE_TAKES`, and `WRUN_OPTION_BOOK_SHARED_KNOBS`, the knobs a view of the block shares with a book fold) and rules (`wrunOptionViewWordsRowWidth`, `wrunOptionViewRowWidthsOf`, `wrunOptionViewsReadBlock`, `wrunOptionBookViewIssue`); the answer's half, `utility/wrun/wrun-option-book-rows.util` (`WRUN_OPTION_BOOK_LAYOUTS`, `WRUN_OPTION_BOOK_LAYOUT_WIDTHS`, `WRUN_OPTION_BOOK_STAMP_VERSION`, `wrunOptionBookViewRows`, `wrunOptionIsBookLayout`), loads with a host's chain transport alone, out of what the chart parses before its first candle; `wrunOptionViewSpec` answers a book word's spec, `WrunOptionKnobSpec` takes `zero` (a book fold's part turned off) and `WrunOptionView.view` widens to `WrunOptionPageViewWord`. A book fold plans (`wrunOptionViewsOfSource` judges its knobs by the kit's rules, `wrun_option_knob_invalid`; `wrunOptionViewUnread` still refuses the folds of the block, which read the chart's close), and its ask carries each view's declared params alone: `wrunOptionViewLaneFields` and `wrunOptionViewAskFieldsOf` drop the expiries word and the max-contracts size from an ask of book folds alone, and keep them for a mixed ask's views of the block. The input's block is the view block at the widest of its words (`wrunOptionInputTupleWidth`, `wrunOptionLaneTupleWidth`: 11, 12, 13 or 16 values a row). `wrunOptionViewsUnion` refuses by name one lane's inputs that read a book fold and different views (`wrun_option_book_views_one_ask`: the lane asks their union once, and a book row names no input) and a union of more than 16 views (`wrun_option_views_too_many`, the data plane's most). A host's chain transport lays an answer's book entries out with `wrunOptionBookViewRows` (one book stamp row, then each fold's rows; its refusals by name) and asks a book fold at no bar (web: the `k-options-chain` worker, keyed as the built-in panes and the Options panel head key the same folds, one read for all). The kit peer moves from 0.103.1 to 0.105.0. The package commits landed since 0.10.0 ride along (`git log 357b44995c.. -- packages/wrun-chart-host` in the web repo). |
|
|
132
|
+
| 0.10.0 | `@orangecharts/indicator-kit` 0.103.1, `@orangecharts/orange-v2-pb-common` 12.78.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | OPRA on the package side: stock perps and tokenized stocks read their stock's OPRA chain (`derived-roots.util`, `sources/opra-option-lanes.util`, `wrun-chart-gate-reader.util`); the OPRA plane's user-script decision (`kscript-venue-policy.util` `isOpraUserScriptRun`, the `opra-user-scripts` flag, `opra-user-scripts-gate.util`, `opra-read-access.leaf`, `wrun-opra-lane.util`); the OPRA registration path is gone (the gate registers delayed access itself on the first refusal, a refused read ends as the gated `opra-registration` outcome); the OPRA agreement notice shows once per app open; the chart's OPRA reader is dialled at chart load. `FeatureFlag` gains `Opra`, `OpraUserScripts` and `OpraAlerts`. Options: CME option reads group on the gateway's session and regular-hours anchors and name the chain's venue at every grouping call, and weekend rows of CME products that trade around the clock stay; the strike kit's gamma curve row; strike velocity wire decode; Options GEX levels in the chart's ink; the Options Heatmap's nodes look, dealer-flow metrics and first-paint reads (crypto, CME, OPRA); Skylit-parity node levels, boards and flow score; one numbers convention across the options panes; the heatmap's crypto arm can read the server strike rows (internal switch). wrun runs: every byte a run downloads is counted and reported on the attempt, an over-budget indicator reads its newest bars first and stops near 1 MB, one download budget per add, a folded read is bounded by its share; Big Trades floors CME charts in contracts and sizes in dollars or the market's own unit, and judges the size floor per aggressor order behind one switch; a row lane draws its newest sessions first; a colour member's `when` gate reaches its swatch and a row's `when` gate reads one clause over another row's value; house look and dismissal for HUD cards and panels; the order-flow family is refused on option contract charts; a gate reader that stops delivering is re-asked. Tools: Path line width and style, tool tables regenerated from chart-schema 0.5.2. The kit peer moves from 0.91.1 to 0.103.1 and the protocol enums peer from 12.73.0 (what npm's 0.9.0 declares; the 0.9.0 row says 12.72.0) to 12.78.0. The package commits landed since 0.9.0 ride along (`git log a840defa10.. -- packages/wrun-chart-host` in the web repo). |
|
|
131
133
|
| 0.9.0 | `@orangecharts/indicator-kit` 0.91.1, `@orangecharts/orange-v2-pb-common` 12.72.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | OPTLOAD G5 folds on `option_contract_state`: an input may declare `totals` and `strike_change` (Top Contracts' totals) beside its projections. They plan and ride the lane's ask as view fields like a projection (`wrunOptionViewsOfSource`; `wrunOptionViewsOf` reads them back), and the input's block is the view block its words size (`wrunOptionInputTupleWidth`: each class tuple `[0, ...13 values]`, then each fold row `[layout, ...cells]`, every row padded to 16). An instance's rows are sized the same way on the fetch path: `wrunOptionLaneTupleWidth` reads a view block's width off the views it asks (`<prefix>Views`, the kit's `wrunAskTupleWidth`), where it knew only the strike kit fold. A host's chain transport reads such an answer's fold entries as that block, and on a plane that serves no views answers it from the kit's reference (`wrunOptionViewAnswer`; web: the `k-option-contract-state` worker on a crypto chain). `wrunOptionViewUnread` (new) names what still refuses by name before any read (`wrun_option_view_unread`): an `options_chain` fold, and `oi_board`, which follows the chart's close that the state lane does not send. Peers unchanged. The package commits landed since 0.8.0 ride along (`git log a5411df71f.. -- packages/wrun-chart-host` in the web repo). |
|
|
132
134
|
| 0.8.0 | `@orangecharts/indicator-kit` 0.91.1, `@orangecharts/orange-v2-pb-common` 12.72.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | The footprint's Classic Presets and Columns for a host's settings form, from one source with both web footprint dialogs. Two modules move from the web app: `utility/chart/footprint-sierra-look.util` (`withFootprintSierraLook`, the Classic Presets patch) and `utility/chart/footprint-columns.util` (the 12 column kinds, the four presets, `withFootprintColumn`, `withFootprintColumnsPreset` and their reads). Three are new: `utility/chart/footprint-display-mode.util` (the cell-grid family, the bar width each mode draws at, `FOOTPRINT_DISPLAY_MODES`, `footprintDisplayModeShown` and `withFootprintDisplayMode`), `settings-templates/form-rows` (the row shape: `action` and `choice` rows with words as locale keys) and `settings-templates/footprint-rows` (`footprintFormRows`, `FOOTPRINT_FORM_SLOTS`). All five join the entry. The package commits landed since 0.7.0 ride along (`git log 1a636a0542.. -- packages/wrun-chart-host` in the web repo), among them the market-scaled size defaults (`utility/wrun/wrun-market-size-defaults.leaf` and `.util`), the candle volume unit leaf and the CME options root. The kit peer moves from 0.88.0 to 0.91.1. The registry also holds 0.7.1 (2026-10-21, 0.7.0's peers), which this table does not describe. |
|
|
133
135
|
| 0.7.0 | `@orangecharts/indicator-kit` 0.88.0, `@orangecharts/orange-v2-pb-common` 12.72.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | The options lanes of OPTIONS-PORT P7: `options_flow` becomes a chain lane, and with `option_prints` and `option_contract_flow` it reads the chart's option chain on a crypto option venue and on a CME futures chart as well as on OPRA; option contract flow plans to one source answer budget every layer reads (`utility/chart/kscript-source-answer-budget.leaf`). The run schedule (`utility/wrun/run-schedule/`, six modules): each lane group is sent at its own plan, held or in-flight reads are reused, and a host's door can dial the chart's gate reader before an add (`warmWrunSheetGateReaders`) or when a surface opens (`warmWrunChartGateReaderOnIntent`). Row lanes ask end-exclusive (`WrunSourceFetchOptions.endExclusive`) and keep held bars over budget markers; panel rows paint with missing readings, and a lane is asked only within its reach (`WrunWarmupEvidence.sourceReachFromTs`, the `source-reach` backfill outcome). Trading-day opens are solved as titan solves them across DST edges, and each zone's offset is read once a day (`utility/chart/ny-calendar.util`). Crypto indices chart as main symbols (`utility/chart/crypto-index.leaf`); the symbol comparison keeps its user label as instance state in the settings templates; a run no longer loads the kit on the main thread (`utility/wrun/wrun-kit-run-tables.util`). Every failed run names its cause: `WRUN_FAILURE_CAUSES` gains eight words (`package-withdrawn`, `package-hosted`, `compile-failed`, `twin-declined` and `integration-error` for what stopped a package before it ran; `source-budget`, `source-failed` and `source-declined` for a source lane the ladder gave up on), a package the registry no longer serves shows "no longer available from its publisher" with Remove and never Retry, and a source chip names the feed and what happened (the words under `wrun.unavailable` and `kscript.legend.card.removeIndicator`, which a host's word table needs). A lane's budget counts from its dispatch until the transport reports the request's wire send (`WrunSourceFetchOptions.onSent`, optional: a transport that never reports keeps the dispatch budget), then from the send, 60 s at most from the dispatch; the ladder never ends a lane while a late read is out, and the record it ends on names its cause and the episode that armed it (a restore, a person's add, a live rebuild). The transient grace holds a failure only for an overlay a rerun driver runs, unless the host declares that it reruns the overlay itself (`holdWrunTransientRefusal(target, onExpire, { hostReruns: true })`, `WrunTransientHoldOptions`; off by default): the mobile app's protected run heal does, so its Marketplace indicators load through an outage instead of showing their chip at once. `onWrunOverlayRunSettled` announces a run of a standing overlay only: a run that settles after its overlay's teardown (typically dropped by the teardown's cancel of its pending row-source ask) is the ring's alone, so a same-id remount no longer reads its predecessor's dropped run as its own first run. OPTLOAD G5: an `options_chain` or `option_contract_state` input may declare chain page views (`page_view`, `page_views`; `utility/wrun/wrun-option-views.util`), which ride the lane's ask as view fields for the host's chain transport to send in one chain summary read; a fold view refuses by name (`wrun_option_view_unread`; 0.9.0 reads `option_contract_state`'s) and a view param's `"@<param>"` handle is painted like `ticks_per_bar`. On the OPRA plane both lanes hold the plane's chain by coin instead of reading the chain directory (`wrunHeldOpraPlaneChain`). One loader view widens: the module `transport.loadV2Service()` answers gains `warmGateReaderFor(exchange)` and `warmGateReaderOnIntent(exchange, surface)`; the env keeps its 133 members, and no package code reads `transport.loadWrunKit` any more. 11 modules join, all in the entry, and `utility/wrun/wrun-opra-underlying.util` goes with its `WrunOpraUnderlyingContext`: 416 dist modules (406 at 0.6.0), 33 by subpath only. `utility/wrun/sources/opra-option-lanes.util` drops `resolveWrunOpraLaneUnderlying` and `resolveWrunLaneOpraChain`; a lane resolves its chain through `resolveWrunLaneChainChart` and `decideWrunLaneChain`. The kit peer moves from 0.87.0 to 0.88.0 and the protocol enums peer from 12.69.0 to 12.72.0. |
|
|
@@ -4,11 +4,18 @@ export declare const FeatureFlag: {
|
|
|
4
4
|
readonly RobinhoodTrading: "robinhood-trading";
|
|
5
5
|
readonly PulseMain: "pulse-main";
|
|
6
6
|
readonly OmBoard: "om-board";
|
|
7
|
+
readonly ChartClips: "chart-clips";
|
|
7
8
|
readonly ScriptOffers: "script-offers";
|
|
8
9
|
readonly PaperTrading: "paper-trading";
|
|
9
10
|
readonly LighterExecution: "lighter-execution";
|
|
11
|
+
readonly FuturesTrading: "futures-trading";
|
|
12
|
+
readonly FuturesByofChart: "futures-byof-chart";
|
|
13
|
+
readonly FuturesByofDepth: "futures-byof-depth";
|
|
14
|
+
readonly FuturesByofHistory: "futures-byof-history";
|
|
15
|
+
readonly CoinbaseDerivativesExecution: "coinbase-derivatives-execution";
|
|
16
|
+
readonly PolymarketExecution: "polymarket-execution";
|
|
10
17
|
readonly TradingHub: "trading-hub";
|
|
11
|
-
readonly
|
|
18
|
+
readonly TradingVolume: "trading-volume";
|
|
12
19
|
readonly DataLoadHealRegister: "data-load-heal-register";
|
|
13
20
|
readonly CollabSyncV2: "collab-sync-v2";
|
|
14
21
|
readonly DataLoadCrossChartJoin: "data-load-cross-chart-join";
|
|
@@ -17,6 +24,7 @@ export declare const FeatureFlag: {
|
|
|
17
24
|
readonly FreeTrial: "free-trial";
|
|
18
25
|
readonly MyAccess: "my-access";
|
|
19
26
|
readonly KscriptTwinConvert: "kscript-twin-convert";
|
|
27
|
+
readonly KscriptSunset: "kscript-sunset";
|
|
20
28
|
readonly WrunRegistryDev: "wrun-registry-dev";
|
|
21
29
|
readonly RegistrySession: "registry-session";
|
|
22
30
|
readonly SharingHub: "sharing-hub";
|
|
@@ -24,13 +32,17 @@ export declare const FeatureFlag: {
|
|
|
24
32
|
readonly PerfRestLane: "perf-rest-lane";
|
|
25
33
|
readonly PerfAffineBlit: "perf-affine-blit";
|
|
26
34
|
readonly NextBuildPrefetch: "next-build-prefetch";
|
|
35
|
+
readonly PageReach: "page-reach";
|
|
27
36
|
readonly ExactPixelRatio: "exact-pixel-ratio";
|
|
28
37
|
readonly PrepaidPlusCn: "prepaid-plus-cn";
|
|
29
38
|
readonly ApiConsole: "api-console";
|
|
30
39
|
readonly Opra: "opra";
|
|
40
|
+
readonly UsEquitiesFull: "us-equities-full";
|
|
41
|
+
readonly CmeEngine: "cme-engine";
|
|
31
42
|
readonly VariationalMarkets: "variational-markets";
|
|
32
43
|
readonly OptionsPanel: "options-panel";
|
|
33
44
|
readonly OpraUserScripts: "opra-user-scripts";
|
|
45
|
+
readonly CmeUserScripts: "cme-user-scripts";
|
|
34
46
|
readonly OpraAlerts: "opra-alerts";
|
|
35
47
|
readonly PlusUsdcAutopay: "plus-usdc-autopay";
|
|
36
48
|
readonly EmsHyperliquid: "ems-hyperliquid";
|
|
@@ -46,6 +58,8 @@ export declare const FeatureFlag: {
|
|
|
46
58
|
readonly Feeds: "feeds";
|
|
47
59
|
readonly SynopticStreams: "synoptic-streams";
|
|
48
60
|
readonly StoreBuiltinRows: "store-builtin-rows";
|
|
61
|
+
readonly OptionsAccessPrewarm: "options-access-prewarm";
|
|
62
|
+
readonly WrunDownloadBudgetCut: "wrun-download-budget-cut";
|
|
49
63
|
};
|
|
50
64
|
export type FeatureFlagKey = (typeof FeatureFlag)[keyof typeof FeatureFlag];
|
|
51
65
|
export declare const FEATURE_FLAG_KEYS: FeatureFlagKey[];
|
|
@@ -31,6 +31,14 @@ export const FeatureFlag = {
|
|
|
31
31
|
// (useOmBoardFlag): unminted, absent and guest all read off, so production ships it dark; an
|
|
32
32
|
// internal role reads it on, the dev override lights it locally. Mint it enabled to open it up.
|
|
33
33
|
OmBoard: 'om-board',
|
|
34
|
+
// Chart clips (docs/features/academy/clips.md): the Record glyph (top bar, replay bar), the clip door a voiced
|
|
35
|
+
// Replay card opens (the player on the reader's chart, the poster player on the Board) and the clip chips read the
|
|
36
|
+
// Board's key AND this one through `isOn` (useChartClipsFlag): unminted, absent and guest all read off, so
|
|
37
|
+
// production ships it dark with the Board on or off; a minted doc lets an internal role preview it, the dev/internal
|
|
38
|
+
// localStorage override lights it locally (`kiyo.flag-overrides` -> `{"chart-clips": true}`). Mint it enabled to
|
|
39
|
+
// open it up. Off, a voiced card is a silent Replay card (the replay opens without the voice and the track). Orange's
|
|
40
|
+
// upload route stays behind `om-board`.
|
|
41
|
+
ChartClips: 'chart-clips',
|
|
34
42
|
// Author-side script offers ONLY (the "Offer to a client" entry in the
|
|
35
43
|
// publish dialog's grant strip). The operator inbox, placements, and
|
|
36
44
|
// notification renderers are clientId-gated and data-dormant, so they ship
|
|
@@ -41,20 +49,49 @@ export const FeatureFlag = {
|
|
|
41
49
|
// unminted, absent and guest all read off, so production ships it dark; an internal role reads it
|
|
42
50
|
// on through the server's bypass, the dev/internal localStorage override lights it locally
|
|
43
51
|
// (`kiyo.flag-overrides` -> `{"paper-trading": true}`). Mint it enabled to open it up. The same
|
|
44
|
-
// key also lights
|
|
45
|
-
// "Dark launch, entities, passphrase"): OKX
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
// exchange venues.
|
|
52
|
+
// key also lights two exchange venues launched dark (docs/features/cex-execution/README.md,
|
|
53
|
+
// "Dark launch, entities, passphrase"): OKX and Deribit, their discovery and new linking, read
|
|
54
|
+
// through `isOn` by `isCexVenueFlagOn`. A key this browser already holds for one of them keeps
|
|
55
|
+
// trading after the flag turns off. The build switch `PAPER_TRADING_ENABLED` takes only the paper
|
|
56
|
+
// venue out of a build, never the exchange venues.
|
|
50
57
|
PaperTrading: 'paper-trading',
|
|
51
58
|
// Lighter execution (docs/features/cex-execution/README.md, "Lighter"): the one exchange venue whose
|
|
52
59
|
// trading key is minted in the browser and registered by the wallet. Its own key, read through `isOn`
|
|
53
60
|
// by `isCexVenueFlagOn`: unminted, absent and guest all read off, so production ships it dark while the
|
|
54
|
-
// paper trading key, which lights
|
|
61
|
+
// paper trading key, which lights OKX and Deribit, stays on for everyone; the dev/internal
|
|
55
62
|
// localStorage override lights it locally (`kiyo.flag-overrides` -> `{"lighter-execution": true}`).
|
|
56
63
|
// Mint it enabled to open it up. A key this browser already holds keeps trading after it turns off.
|
|
57
64
|
LighterExecution: 'lighter-execution',
|
|
65
|
+
// Futures order entry through the user's own Rithmic-enabled broker account (connect dialog, order
|
|
66
|
+
// ticket, working orders and positions, and the live quote from the user's own feed); the credential
|
|
67
|
+
// lives only in the browser tab. Read through `isOn`: unminted, absent and guest all read off; the
|
|
68
|
+
// dev/internal localStorage override lights it locally (`kiyo.flag-overrides` -> `{"futures-trading": true}`).
|
|
69
|
+
FuturesTrading: 'futures-trading',
|
|
70
|
+
// Bring-your-own-feed Part 2, one key per kind of data so each ships when Rithmic permits it (all on
|
|
71
|
+
// top of `futures-trading`; the localStorage override lights them for building and testing):
|
|
72
|
+
// - live candles from the user's own Rithmic trades (trades are permitted, Rithmic 2026-10-27);
|
|
73
|
+
FuturesByofChart: 'futures-byof-chart',
|
|
74
|
+
// - the order book (depth) from the session, for the DOM ladder, order book panel and bid/ask
|
|
75
|
+
// lines; awaiting Rithmic's permission, so dark;
|
|
76
|
+
FuturesByofDepth: 'futures-byof-depth',
|
|
77
|
+
// - the newest gap of a delayed chart filled from Rithmic's history plant; historical data is
|
|
78
|
+
// outside what Rithmic has permitted (conformance Q13), so dark until it is.
|
|
79
|
+
FuturesByofHistory: 'futures-byof-history',
|
|
80
|
+
// Coinbase derivatives execution (the Deribit engine for non-US accounts; Kyle 2026-10-23 took it
|
|
81
|
+
// off the paper trading key to hide it). Its own key, read through `isOn` by `isCexVenueFlagOn`, in
|
|
82
|
+
// Lighter's shape: unminted, absent and guest all read off, internal roles included (no document,
|
|
83
|
+
// no preview), so the hub, the search command and the connect sheet offer it to nobody; the
|
|
84
|
+
// dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
|
|
85
|
+
// `{"coinbase-derivatives-execution": true}`). Mint it enabled to open it up. A key this browser
|
|
86
|
+
// already holds keeps trading, and keeps its card to manage it.
|
|
87
|
+
CoinbaseDerivativesExecution: 'coinbase-derivatives-execution',
|
|
88
|
+
// Polymarket execution (docs/features/polymarket-execution/README.md): the prediction-market venue, a
|
|
89
|
+
// lane of its own beside the exchange seam. Its own key, read through `isOn` by
|
|
90
|
+
// `isPolymarketExecutionOn`: unminted, absent and guest all read off, so production ships it dark; the
|
|
91
|
+
// dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
|
|
92
|
+
// `{"polymarket-execution": true}`). Mint it enabled to open it up. A linked account this browser
|
|
93
|
+
// already holds keeps trading after it turns off.
|
|
94
|
+
PolymarketExecution: 'polymarket-execution',
|
|
58
95
|
// The trading hub (docs/features/trading-hub/README.md): one Trade door beside the avatar that
|
|
59
96
|
// folds the desktop's linking, accounts and trade settings into one dialog. Rides the master
|
|
60
97
|
// trading flag AND this key, read through `isOn` (`isTradingHubOn`): unminted, absent and guest
|
|
@@ -62,13 +99,14 @@ export const FeatureFlag = {
|
|
|
62
99
|
// bypass, the dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
|
|
63
100
|
// `{"trading-hub": true}`). Mint it enabled to open it up. Phones keep today's surfaces either way.
|
|
64
101
|
TradingHub: 'trading-hub',
|
|
65
|
-
//
|
|
66
|
-
//
|
|
67
|
-
//
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
// `{"
|
|
71
|
-
|
|
102
|
+
// Trading Volume (docs/features/trading-hub/trading-volume.md): the private page inside the trading
|
|
103
|
+
// hub with the notional the account traded through OpenMarket on Hyperliquid, and its two doors (the
|
|
104
|
+
// profile menu's row under Brokers, the Hyperliquid account page's row). Read through `isOn`
|
|
105
|
+
// (`isTradingVolumeOn`), on top of the hub's own doors check: unminted, absent and guest all read
|
|
106
|
+
// off, so production ships it dark; an internal role reads it on, the dev/internal localStorage
|
|
107
|
+
// override lights it locally (`kiyo.flag-overrides` -> `{"trading-volume": true}`). The server keeps
|
|
108
|
+
// its own switch (`GET /trading-volume` answers 404 TRADING_VOLUME_DISABLED), which hides the doors too.
|
|
109
|
+
TradingVolume: 'trading-volume',
|
|
72
110
|
// Collab-sync kill switch (Phase 1: DEFAULT ON; the flag exists only to
|
|
73
111
|
// force the legacy lanes back, by minting it disabled in the admin panel
|
|
74
112
|
// plus a page reload). Mode is generation-pinned per collab session
|
|
@@ -120,6 +158,12 @@ export const FeatureFlag = {
|
|
|
120
158
|
// a converted row reverts to its original row at its NEXT boot (the flag is
|
|
121
159
|
// read at the boot tail, never mid-session), one reconcile save per chart.
|
|
122
160
|
KscriptTwinConvert: 'kscript-twin-convert',
|
|
161
|
+
// KSCRIPT-SUNSET (Kyle 2026-10-29): the one flag doc of the kScript retirement. UNMINTED = the "Retires in
|
|
162
|
+
// {n} days" chip shows for everyone before KSCRIPT_RETIRED_AT and the cut lands on the date; minted with a
|
|
163
|
+
// percent = the chip's ladder only (the cut is never laddered); minted `enabled: false` = the kill (today's
|
|
164
|
+
// behaviour byte for byte while the engine still ships; read through isExplicitlyOff, handed to
|
|
165
|
+
// utility/chart/kscript-sunset.util by the chart store). No DEV_FORCED_FLAGS and no GUEST_DEFAULT_FLAGS entry.
|
|
166
|
+
KscriptSunset: 'kscript-sunset',
|
|
123
167
|
// Developer tools of the Indicators tab (add a package by exact name, this
|
|
124
168
|
// browser's publish receipts). Read ONLY through the dev/internal
|
|
125
169
|
// localStorage override (`kiyo.flag-overrides` -> `{"wrun-registry-dev": true}`,
|
|
@@ -177,6 +221,12 @@ export const FeatureFlag = {
|
|
|
177
221
|
// KILL SWITCH read through `isExplicitlyOff`: mint it `enabled: false` to stop the
|
|
178
222
|
// watcher at the next page load. Published into src/utils/telemetryGates.ts.
|
|
179
223
|
NextBuildPrefetch: 'next-build-prefetch',
|
|
224
|
+
// Page reach (src/utility/perf/page-reach.util.ts): after a page's core work, download the
|
|
225
|
+
// code it can open (linked pages, its own dialogs and panels) into the HTTP cache. DEFAULT ON;
|
|
226
|
+
// this key is an admin KILL SWITCH read through `isExplicitlyOff`: mint it `enabled: false`
|
|
227
|
+
// to stop the lane (it re-arms on the publish, so a page that already started stops too).
|
|
228
|
+
// Published into src/utils/telemetryGates.ts.
|
|
229
|
+
PageReach: 'page-reach',
|
|
180
230
|
// Exact pixel ratio (src/utility/chart/pixel-ratio-policy.util.ts): charts on
|
|
181
231
|
// Chromium draw at the display's own ratio instead of titan's nearest-whole
|
|
182
232
|
// rounding (a 1.25 display at 1.25, not 1). DEFAULT ON; this key is an admin
|
|
@@ -206,6 +256,23 @@ export const FeatureFlag = {
|
|
|
206
256
|
// affordance, contract charts and the purchase screens. Minted dark; the data tier itself is the
|
|
207
257
|
// OPRA gate's and never flips with this flag (employees stay delayed like everyone).
|
|
208
258
|
Opra: 'opra',
|
|
259
|
+
// The US stocks tape on the chart (docs/features/data/us-stocks-tape.md): order flow from the tape on a US stock
|
|
260
|
+
// chart (footprint, profiles, TPO, the CVD family read the ticker's tape market, utility/stocks/stock-tape-overlay.util),
|
|
261
|
+
// time and sales, the exchange list, the $19 add-on surfaces, and the price alert redirect onto the free lane
|
|
262
|
+
// (src/utility/alerts/stocks-alert-target.util.ts). Minted dark; read through `usEquitiesFullEnabled()` /
|
|
263
|
+
// `useUsEquitiesFull()` (src/utility/stocks/us-equities-flag.util.ts) with `isOn`, so unminted, absent and guest
|
|
264
|
+
// read off and production ships it dark; with it off nothing in the app changes. The data tier is the stocks gate's
|
|
265
|
+
// (905 s delayed for everyone today) and never flips with this flag. QA:
|
|
266
|
+
// `localStorage.setItem('kiyo.flag-overrides', '{"us-equities-full":true}')`.
|
|
267
|
+
UsEquitiesFull: 'us-equities-full',
|
|
268
|
+
// CME real-time on the venue-generic market-data flow (ENTITLEMENT-PLANE Program B; docs/features/market-data/
|
|
269
|
+
// plane.md, "CME on the plane"). While lit, the market-data registry lists the CME card
|
|
270
|
+
// (`marketDataVenueIsServed('cme')`), the one CME purchase overlay mounts as the generic flow on
|
|
271
|
+
// `/market-data/cme/*` (GlobalDialogs) while the legacy hosts stand down, the CME chrome reads the generic store and
|
|
272
|
+
// the payment return takes the venue branch. Off, every CME surface is as before (the legacy flow on `/cme/*`).
|
|
273
|
+
// Read through `isOn`: unminted, absent and guest read off, so production ships it dark; light it only once
|
|
274
|
+
// orange's CME engine mode is `live`. QA: `localStorage.setItem('kiyo.flag-overrides', '{"cme-engine":true}')`.
|
|
275
|
+
CmeEngine: 'cme-engine',
|
|
209
276
|
// Variational (VARIATIONAL perpetuals, VARIATIONAL_SWAP swaps) in pickers, search, recents, popular rows
|
|
210
277
|
// and watchlist import: a flag-gated venue (exchange-visibility.util FLAG_GATED_EXCHANGES), read through
|
|
211
278
|
// `isOn`, so unminted, absent and guest all read off and every surface ships it dark. An internal role
|
|
@@ -218,17 +285,39 @@ export const FeatureFlag = {
|
|
|
218
285
|
// unminted, absent and guest all read off, so production ships it dark; minted disabled, an internal role reads
|
|
219
286
|
// it on. QA: `localStorage.setItem('kiyo.flag-overrides', '{"options-panel":true}')`. Mint it enabled to open it up.
|
|
220
287
|
OptionsPanel: 'options-panel',
|
|
221
|
-
// User-authored scripts on OPRA
|
|
222
|
-
//
|
|
223
|
-
//
|
|
224
|
-
//
|
|
225
|
-
//
|
|
226
|
-
//
|
|
227
|
-
//
|
|
228
|
-
//
|
|
229
|
-
//
|
|
230
|
-
//
|
|
288
|
+
// User-authored scripts on OPRA. The OPRA licence covers user-authored scripting over OPRA data, in the
|
|
289
|
+
// browser and on OpenMarket's servers (Kyle 2026-10-27, the signed set); this flag is the one product switch
|
|
290
|
+
// for both lanes. While lit, a script the browser runs that the viewer wrote or added from the community (an
|
|
291
|
+
// Indicator draft, a community package, a kScript user script) reads US options like an OpenMarket package:
|
|
292
|
+
// the wrun chain wall (`opra-official-only`), the display wall, the data wall and the engine policy all lift
|
|
293
|
+
// for it on the OPRA plane only (kscript-venue-policy.util `isOpraUserScriptRun`, the one decision), and the
|
|
294
|
+
// Cloud lane (kscript-backend) admits a hosted run reading a US stock or ETF chart's chain by the same key,
|
|
295
|
+
// per user. The tier follows the viewer in both lanes, never the script: the browser reads through the
|
|
296
|
+
// viewer's own gate sockets, the Cloud lane is served the owner's tier and stamps each frame with it (the
|
|
297
|
+
// legend's served word is that frame's receipt). Hosted Cloud runs on an OPRA contract chart and protected
|
|
298
|
+
// scripts stay walled. What stays whatever it says: the provenance stamp, the chart_read and MCP withhold, the
|
|
299
|
+
// CSV export refusal, the delayed legend note, and the console export door (console entries a run produced
|
|
300
|
+
// over OPRA data are marked and every copy of console text strips them). To be minted dark (admin panel);
|
|
301
|
+
// read with `isOn` (absent, unloaded and guest read off): `opraUserScriptsEnabled()` (opra-options-gate.util)
|
|
302
|
+
// on the main thread, the published gate (opra-user-scripts-gate.util) in the venue policy.
|
|
303
|
+
// LAUNCHED 2026-10-27: the gate answers open on every build (opra-user-scripts-gate.util); this record
|
|
304
|
+
// is retired and read by nothing.
|
|
231
305
|
OpraUserScripts: 'opra-user-scripts',
|
|
306
|
+
// User-authored chart studies on CME (wrun CME Chart Studies), the browser lane only. While lit, a script the
|
|
307
|
+
// browser runs that the viewer wrote or added from the community (a kScript user script or editor draft, an
|
|
308
|
+
// Indicator draft, a community package) reads CME futures data at the viewer's own entitlement: the display wall,
|
|
309
|
+
// the data wall and the engine policy lift for it on the CME plane only (kscript-venue-policy.util
|
|
310
|
+
// `isCmeUserScriptRun`, the one decision), and only for a viewer the CME plane serves (signed in, not a guest, the
|
|
311
|
+
// CME data terms not blocked; delayed and real-time both count, the tier is the gate's). Both facts reach the
|
|
312
|
+
// worker-safe venue policy through cme-user-scripts-gate.util (closed in a worker, for a guest and before a reader
|
|
313
|
+
// is handed over). What stays refused whatever it says: hosted (Cloud) runs and protected scripts, indicator alerts
|
|
314
|
+
// (price alerts are unchanged), strategies and backtests, the export of a study's results (console copies, clips),
|
|
315
|
+
// agent reads (chart_read and the MCP withhold the stamped study) and the publish cover's capture of a chart that
|
|
316
|
+
// carries CME data. A move of the flag, the account, the terms, the served access or the session stops a running
|
|
317
|
+
// study in place and keeps its source and settings. To be minted dark (admin panel); read with `isOn` (absent,
|
|
318
|
+
// unloaded and guest read off) and never read server-side: kscript-backend denies CME to every user run whatever it
|
|
319
|
+
// says. QA: `localStorage.setItem('kiyo.flag-overrides', '{"cme-user-scripts":true}')`.
|
|
320
|
+
CmeUserScripts: 'cme-user-scripts',
|
|
232
321
|
// Alerts on US options (UW-PARITY H3, the OPRA server lanes): while lit, a viewer the OPRA gate serves real-time
|
|
233
322
|
// can set a price alert or an Indicator alert on a US option contract, which the alerts engine evaluates on its
|
|
234
323
|
// OPRA lane (the contract's own candles, for the alert's owner alone). Off: today's refusal on every alert door.
|
|
@@ -327,6 +416,23 @@ export const FeatureFlag = {
|
|
|
327
416
|
// builtin rows are dropped and the store is as before. Read through `isOn`: unminted, absent and guest read off,
|
|
328
417
|
// so production ships it dark; flip it off to roll back (saved charts store the control type).
|
|
329
418
|
StoreBuiltinRows: 'store-builtin-rows',
|
|
419
|
+
// The chart-load dial of the OPRA gate reader (OPTLOAD W3 A1, utility/options/chart-options-access.util): a chart whose
|
|
420
|
+
// options ride the OPRA plane dials that reader after its first paint, through the lease-guarded intent warm, for an
|
|
421
|
+
// account that read options in this browser in the last 14 days or a route with an add intent, so the first options
|
|
422
|
+
// add's read leaves when it is asked. Read through `isOn`: unminted, absent and guest all read off, so production
|
|
423
|
+
// ships it dark until the gate owners confirm the extra OPRA session load; the dev/internal localStorage override
|
|
424
|
+
// lights it for a rig (`kiyo.flag-overrides` -> `{"options-access-prewarm": true}`). The options stamp the dial reads
|
|
425
|
+
// is written whatever the flag says, and the CME directory prewarm beside it rides no flag.
|
|
426
|
+
OptionsAccessPrewarm: 'options-access-prewarm',
|
|
427
|
+
// The indicator download budget's cut (OPTLOAD W3 R2, docs/features/kscript/wrun/wrun-browser-runtime.md, "The download
|
|
428
|
+
// budget"): a browser-run Indicator whose projected download passes 1 MB per 252 bars reads its newest bars first and
|
|
429
|
+
// stops near the budget, the older bars partial, with the "Newest bars only" chip, and the download plan that decides
|
|
430
|
+
// it. Off: no cut and no plan, the meter still counts. Only the cut rides this flag: an add's record of the bars it
|
|
431
|
+
// landed whole and final (wrun-row-lane-add-memo.util), which its later runs, its live start and every live reconcile
|
|
432
|
+
// reuse, is kept flag on or off. Read through `isOn`: unminted, absent and guest all read off, so production ships it
|
|
433
|
+
// dark until Kyle switches it on; the dev/internal localStorage override lights it for a rig (`kiyo.flag-overrides` ->
|
|
434
|
+
// `{"wrun-download-budget-cut": true}`).
|
|
435
|
+
WrunDownloadBudgetCut: 'wrun-download-budget-cut',
|
|
330
436
|
};
|
|
331
437
|
export const FEATURE_FLAG_KEYS = Object.values(FeatureFlag);
|
|
332
438
|
/**
|
|
@@ -9,3 +9,15 @@
|
|
|
9
9
|
export declare const CME_GOVERNED_EXCHANGES: readonly string[];
|
|
10
10
|
/** Every OPRA-governed exchange code (one consolidated venue by design). */
|
|
11
11
|
export declare const OPRA_GOVERNED_EXCHANGES: readonly string[];
|
|
12
|
+
/**
|
|
13
|
+
* Every exchange code the US stocks entitlement gate governs, as the FRONTEND names the three SIP tapes: `NYSE_TAPE`
|
|
14
|
+
* (Tape A), `NYSE_ARCA_TAPE` (Tape B), `NASDAQ_TAPE` (Tape C), in the gate release's order. The gate keys each tape by
|
|
15
|
+
* its listing venue's `Exchange` enum member (`NYSE` 70, `NYSE_ARCA` 71, `NASDAQ` 72), but those plain codes are already
|
|
16
|
+
* the free lane's LISTING-VENUE codes in this app (a Polygon-fed stock chart carries `NASDAQ` as its exchange or display
|
|
17
|
+
* venue: `POLYGON_VENUES`, `EXCHANGE_TO_KIND`, `LEGACY_VENUE_TO_QUERY_EXCHANGE`), so the tape codes carry a suffix and
|
|
18
|
+
* `STOCKS_TAPE_WIRE_EXCHANGE` translates them at the wire alone (stocks-governed.util). The web constant is
|
|
19
|
+
* `STOCKS_GOVERNED_EXCHANGES` in src/interfaces/stocks-realtime.interface.ts.
|
|
20
|
+
*/
|
|
21
|
+
export declare const STOCKS_GOVERNED_EXCHANGES: readonly string[];
|
|
22
|
+
/** The gate's wire name of each tape code: the listing venue, an `Exchange` enum member the tape is keyed by. */
|
|
23
|
+
export declare const STOCKS_TAPE_WIRE_EXCHANGE: Readonly<Record<string, string>>;
|
|
@@ -9,3 +9,19 @@
|
|
|
9
9
|
export const CME_GOVERNED_EXCHANGES = ['CME', 'CBOT', 'NYMEX', 'COMEX', 'GLOBEX'];
|
|
10
10
|
/** Every OPRA-governed exchange code (one consolidated venue by design). */
|
|
11
11
|
export const OPRA_GOVERNED_EXCHANGES = ['OPRA'];
|
|
12
|
+
/**
|
|
13
|
+
* Every exchange code the US stocks entitlement gate governs, as the FRONTEND names the three SIP tapes: `NYSE_TAPE`
|
|
14
|
+
* (Tape A), `NYSE_ARCA_TAPE` (Tape B), `NASDAQ_TAPE` (Tape C), in the gate release's order. The gate keys each tape by
|
|
15
|
+
* its listing venue's `Exchange` enum member (`NYSE` 70, `NYSE_ARCA` 71, `NASDAQ` 72), but those plain codes are already
|
|
16
|
+
* the free lane's LISTING-VENUE codes in this app (a Polygon-fed stock chart carries `NASDAQ` as its exchange or display
|
|
17
|
+
* venue: `POLYGON_VENUES`, `EXCHANGE_TO_KIND`, `LEGACY_VENUE_TO_QUERY_EXCHANGE`), so the tape codes carry a suffix and
|
|
18
|
+
* `STOCKS_TAPE_WIRE_EXCHANGE` translates them at the wire alone (stocks-governed.util). The web constant is
|
|
19
|
+
* `STOCKS_GOVERNED_EXCHANGES` in src/interfaces/stocks-realtime.interface.ts.
|
|
20
|
+
*/
|
|
21
|
+
export const STOCKS_GOVERNED_EXCHANGES = ['NYSE_TAPE', 'NYSE_ARCA_TAPE', 'NASDAQ_TAPE'];
|
|
22
|
+
/** The gate's wire name of each tape code: the listing venue, an `Exchange` enum member the tape is keyed by. */
|
|
23
|
+
export const STOCKS_TAPE_WIRE_EXCHANGE = {
|
|
24
|
+
NYSE_TAPE: 'NYSE',
|
|
25
|
+
NYSE_ARCA_TAPE: 'NYSE_ARCA',
|
|
26
|
+
NASDAQ_TAPE: 'NASDAQ',
|
|
27
|
+
};
|
|
@@ -20,8 +20,9 @@ export declare const OPRA_DELAY_NOTICE = "OPRA data delayed 15 minutes";
|
|
|
20
20
|
/**
|
|
21
21
|
* The agreement notice. Source: the filed Attachment C (6) to the OPRA Vendor Agreement and the filed display screen 2:
|
|
22
22
|
* the notice shown prominently each time a subscriber accesses the service, its last words a link to the agreement the
|
|
23
|
-
* subscriber accepted.
|
|
24
|
-
* (the chain page, an OPRA contract chart, a chart holding an OPRA overlay:
|
|
23
|
+
* subscriber accepted. An entitled real-time subscriber reads it in one card on the first OPRA screen of each app open
|
|
24
|
+
* (the chain page, the Options panel, an OPRA contract chart, a chart holding an OPRA overlay), open until OK:
|
|
25
|
+
* OpraAgreementNoticeCard.vue.
|
|
25
26
|
*/
|
|
26
27
|
export declare const OPRA_AGREEMENT_NOTICE = "YOUR RECEIPT AND USE OF THIS SERVICE IS SUBJECT TO THE TERMS AND CONDITIONS OF YOUR AGREEMENT WITH THALAMUS TECHNOLOGIES, INC. TO VIEW THE TERMS AND CONDITIONS OF THIS AGREEMENT, PLEASE CLICK HERE.";
|
|
27
28
|
/** The words of the agreement notice that link to the accepted agreement: the notice's own words, never a label. */
|
|
@@ -20,8 +20,9 @@ export const OPRA_DELAY_NOTICE = 'OPRA data delayed 15 minutes';
|
|
|
20
20
|
/**
|
|
21
21
|
* The agreement notice. Source: the filed Attachment C (6) to the OPRA Vendor Agreement and the filed display screen 2:
|
|
22
22
|
* the notice shown prominently each time a subscriber accesses the service, its last words a link to the agreement the
|
|
23
|
-
* subscriber accepted.
|
|
24
|
-
* (the chain page, an OPRA contract chart, a chart holding an OPRA overlay:
|
|
23
|
+
* subscriber accepted. An entitled real-time subscriber reads it in one card on the first OPRA screen of each app open
|
|
24
|
+
* (the chain page, the Options panel, an OPRA contract chart, a chart holding an OPRA overlay), open until OK:
|
|
25
|
+
* OpraAgreementNoticeCard.vue.
|
|
25
26
|
*/
|
|
26
27
|
export const OPRA_AGREEMENT_NOTICE = 'YOUR RECEIPT AND USE OF THIS SERVICE IS SUBJECT TO THE TERMS AND CONDITIONS OF YOUR AGREEMENT WITH THALAMUS TECHNOLOGIES, INC. TO VIEW THE TERMS AND CONDITIONS OF THIS AGREEMENT, PLEASE CLICK HERE.';
|
|
27
28
|
/** The words of the agreement notice that link to the accepted agreement: the notice's own words, never a label. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OptionSettlementFamily } from '../utility/options/option-symbol.util.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { OptionsGateProvider } from '../workers/constants/socket-slots.js';
|
|
3
3
|
/**
|
|
4
4
|
* One settlement family a venue lists as its own product. `quoteAsset` names the pair (`BTC/USDC`);
|
|
5
5
|
* omitted, the contract is quoted and settled in the root coin itself and the pair is the root.
|
|
@@ -37,7 +37,7 @@ export interface OptionVenue {
|
|
|
37
37
|
exchanges: readonly string[];
|
|
38
38
|
lane: 'governed' | 'plain';
|
|
39
39
|
/** Governed rows name their entitlement-gate plane: the socket slots, served-access rows and delay default they ride. */
|
|
40
|
-
plane?:
|
|
40
|
+
plane?: OptionsGateProvider;
|
|
41
41
|
gated: boolean;
|
|
42
42
|
/**
|
|
43
43
|
* Which gate lights a gated row: the crypto providers share `crypto-options` (signed in); OPRA has its
|
|
@@ -12,6 +12,22 @@ export interface BuiltinInputReader {
|
|
|
12
12
|
num(name: string): number;
|
|
13
13
|
str(name: string): string;
|
|
14
14
|
}
|
|
15
|
+
/** A value an input gate compares: a select's option or a toggle's state. */
|
|
16
|
+
export type BuiltinGateValue = string | boolean;
|
|
17
|
+
/** One input's condition in a gate: its value is one of `is`, or none of `not` (the form the template's test takes). */
|
|
18
|
+
export type BuiltinGateLiteral = {
|
|
19
|
+
readonly is: readonly BuiltinGateValue[];
|
|
20
|
+
} | {
|
|
21
|
+
readonly not: readonly BuiltinGateValue[];
|
|
22
|
+
};
|
|
23
|
+
/** A term of a gate: every input it names meets its condition. */
|
|
24
|
+
export type BuiltinGateTerm = Readonly<Record<string, BuiltinGateLiteral>>;
|
|
25
|
+
/**
|
|
26
|
+
* When a built-in template's input or output takes effect, read from the template's text: while ANY of its terms
|
|
27
|
+
* holds on the overlay's inputs (an empty gate never holds). Derived for every template by
|
|
28
|
+
* deriveTechnicalIndicatorInputGates (technical-indicator-script-facts.derive.ts).
|
|
29
|
+
*/
|
|
30
|
+
export type BuiltinGate = readonly BuiltinGateTerm[];
|
|
15
31
|
/** Shape of a `BUILTIN_ALERT_CONTRACTS` entry (see the catalog module for the contract rules). */
|
|
16
32
|
export interface BuiltinAlertContract {
|
|
17
33
|
/**
|
|
@@ -27,6 +43,13 @@ export interface BuiltinAlertContract {
|
|
|
27
43
|
* identity, or a cosmetic edit would orphan the armed badge and duplicate alerts on re-arm.
|
|
28
44
|
*/
|
|
29
45
|
computeInputs: readonly string[];
|
|
46
|
+
/**
|
|
47
|
+
* The outputs the template draws only while an input allows it (the smoothing lines behind `smoothingType`, Volume
|
|
48
|
+
* MA behind `showMa`), each with its gate. The alert surfaces offer such an output only while its gate holds on the
|
|
49
|
+
* overlay's inputs; tests/constants/scriptEditor/technical-indicator-input-gates.spec.ts holds every gate here to
|
|
50
|
+
* the one the template's text derives, and fails a gated output that is not listed.
|
|
51
|
+
*/
|
|
52
|
+
outputGates?: Readonly<Record<string, BuiltinGate>>;
|
|
30
53
|
/**
|
|
31
54
|
* Templates with a `timeframe` input: the CLOSED selected-timeframe bars the slowest output needs
|
|
32
55
|
* before it has a value, from the compute inputs. The alert engine keeps a fixed window of chart
|
|
@@ -37,6 +60,9 @@ export interface BuiltinAlertContract {
|
|
|
37
60
|
}
|
|
38
61
|
/** Extra closed bars the oscillator smoothing (OSCILLATOR_SMOOTHING_INPUTS) adds to its oscillator's warm-up. */
|
|
39
62
|
export declare function oscillatorSmoothingWarmup(inputs: BuiltinInputReader): number;
|
|
63
|
+
/** The outputs OSCILLATOR_SMOOTHING_INPUTS gates (BuiltinAlertContract.outputGates): the moving average `ma` while
|
|
64
|
+
* smoothingType is not None, the bands only with SMA + Bollinger Bands. */
|
|
65
|
+
export declare function oscillatorSmoothingOutputGates(ma: string): Readonly<Record<string, BuiltinGate>>;
|
|
40
66
|
export declare const CLASSIC_TIMEFRAME_INPUTS = "var timeframe = input(name=\"timeframe\", type=\"select\", defaultValue=\"chart\", options=[\"chart\", \"5m\", \"15m\", \"30m\", \"1h\", \"4h\", \"1D\", \"1W\"]);\nvar waitForClose = input(name=\"waitForClose\", type=\"boolean\", defaultValue=true);";
|
|
41
67
|
export declare const CLASSIC_PRICE_INPUTS = "var source = input(name=\"source\", type=\"select\", defaultValue=\"close\", options=[\"close\", \"open\", \"high\", \"low\"]);\nvar timeframe = input(name=\"timeframe\", type=\"select\", defaultValue=\"chart\", options=[\"chart\", \"5m\", \"15m\", \"30m\", \"1h\", \"4h\", \"1D\", \"1W\"]);\nvar waitForClose = input(name=\"waitForClose\", type=\"boolean\", defaultValue=true);";
|
|
42
68
|
export declare const CLASSIC_PRICE_SERIES = "timeseries data = ohlcv(symbol=currentSymbol, exchange=currentExchange);\ntimeseries price = timeframe == \"chart\" ? field(ohlcv(symbol=currentSymbol, exchange=currentExchange), source) : htf(field(ohlcv(symbol=currentSymbol, exchange=currentExchange), source), timeframe, {mode: waitForClose ? \"confirmed\" : \"developing\"});";
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
export function oscillatorSmoothingWarmup(inputs) {
|
|
12
12
|
return inputs.str('smoothingType') === 'None' ? 0 : inputs.num('smoothingLength') - 1;
|
|
13
13
|
}
|
|
14
|
+
/** The outputs OSCILLATOR_SMOOTHING_INPUTS gates (BuiltinAlertContract.outputGates): the moving average `ma` while
|
|
15
|
+
* smoothingType is not None, the bands only with SMA + Bollinger Bands. */
|
|
16
|
+
export function oscillatorSmoothingOutputGates(ma) {
|
|
17
|
+
const bands = [{ smoothingType: { is: ['SMA + Bollinger Bands'] } }];
|
|
18
|
+
return { [ma]: [{ smoothingType: { not: ['None'] } }], 'Smoothing Upper Band': bands, 'Smoothing Lower Band': bands };
|
|
19
|
+
}
|
|
14
20
|
export const CLASSIC_TIMEFRAME_INPUTS = `var timeframe = input(name="timeframe", type="select", defaultValue="chart", options=["chart", "5m", "15m", "30m", "1h", "4h", "1D", "1W"]);
|
|
15
21
|
var waitForClose = input(name="waitForClose", type="boolean", defaultValue=true);`;
|
|
16
22
|
export const CLASSIC_PRICE_INPUTS = `var source = input(name="source", type="select", defaultValue="close", options=["close", "open", "high", "low"]);
|
|
@@ -17,6 +17,21 @@ export declare const TECHNICAL_INDICATOR_SCRIPT_KEY_SET: ReadonlySet<string>;
|
|
|
17
17
|
* (wrun-builtin-twin.util) must stay off the join (tests/utility/wrun/wrun-twins.closure.spec.ts).
|
|
18
18
|
*/
|
|
19
19
|
export declare const NATIVE_OFFICIAL_TWIN_KEYS: ReadonlySet<string>;
|
|
20
|
+
/**
|
|
21
|
+
* The built-ins another client's chart draws natively and saves under the built-in's KEY as the row's own `type`
|
|
22
|
+
* (the phone app's Big Trades, kiyotaka-frontend-app chart-web/src/indicators/big-trades: `type: 'BIG_TRADES'`,
|
|
23
|
+
* its settings the package's params in camel case), where web registers no control of that name. Such a row
|
|
24
|
+
* is no deleted feature: the restore converts it into the built-in's proven twin like a native official's row
|
|
25
|
+
* (kscript-twin-convert.util, its settings through native-twin-settings.util), and a revert puts the foreign
|
|
26
|
+
* row back, where the restore parks it as an unknown type until the next conversion. The web's own row of
|
|
27
|
+
* the same built-in is a TECHNICAL_SCRIPT row (its key a shipped template's), never one of these.
|
|
28
|
+
*/
|
|
29
|
+
export declare const FOREIGN_NATIVE_TWIN_KEYS: ReadonlySet<string>;
|
|
30
|
+
/** Whether `type` is a row type the restore converts into a built-in's twin through a native translator
|
|
31
|
+
* (native-twin-settings.util): a native official's own row, or a foreign native row. The one predicate every
|
|
32
|
+
* reader of these two sets shares (the restore's door, the conversion's origin rule), so a key added to either
|
|
33
|
+
* set reaches all of them. */
|
|
34
|
+
export declare function isNativeTwinOriginType(type: unknown): type is string;
|
|
20
35
|
/** Whether `key` names a built-in a proven twin can stand in for: a shipped template or a native official above. */
|
|
21
36
|
export declare function isBuiltInTwinKey(key: unknown): key is string;
|
|
22
37
|
/**
|
|
@@ -52,6 +52,23 @@ export const TECHNICAL_INDICATOR_SCRIPT_KEY_SET = new Set(TECHNICAL_INDICATOR_SC
|
|
|
52
52
|
* (wrun-builtin-twin.util) must stay off the join (tests/utility/wrun/wrun-twins.closure.spec.ts).
|
|
53
53
|
*/
|
|
54
54
|
export const NATIVE_OFFICIAL_TWIN_KEYS = new Set(['CVD_FLOW_DOMINANCE']);
|
|
55
|
+
/**
|
|
56
|
+
* The built-ins another client's chart draws natively and saves under the built-in's KEY as the row's own `type`
|
|
57
|
+
* (the phone app's Big Trades, kiyotaka-frontend-app chart-web/src/indicators/big-trades: `type: 'BIG_TRADES'`,
|
|
58
|
+
* its settings the package's params in camel case), where web registers no control of that name. Such a row
|
|
59
|
+
* is no deleted feature: the restore converts it into the built-in's proven twin like a native official's row
|
|
60
|
+
* (kscript-twin-convert.util, its settings through native-twin-settings.util), and a revert puts the foreign
|
|
61
|
+
* row back, where the restore parks it as an unknown type until the next conversion. The web's own row of
|
|
62
|
+
* the same built-in is a TECHNICAL_SCRIPT row (its key a shipped template's), never one of these.
|
|
63
|
+
*/
|
|
64
|
+
export const FOREIGN_NATIVE_TWIN_KEYS = new Set(['BIG_TRADES']);
|
|
65
|
+
/** Whether `type` is a row type the restore converts into a built-in's twin through a native translator
|
|
66
|
+
* (native-twin-settings.util): a native official's own row, or a foreign native row. The one predicate every
|
|
67
|
+
* reader of these two sets shares (the restore's door, the conversion's origin rule), so a key added to either
|
|
68
|
+
* set reaches all of them. */
|
|
69
|
+
export function isNativeTwinOriginType(type) {
|
|
70
|
+
return typeof type === 'string' && (NATIVE_OFFICIAL_TWIN_KEYS.has(type) || FOREIGN_NATIVE_TWIN_KEYS.has(type));
|
|
71
|
+
}
|
|
55
72
|
/** Whether `key` names a built-in a proven twin can stand in for: a shipped template or a native official above. */
|
|
56
73
|
export function isBuiltInTwinKey(key) {
|
|
57
74
|
return typeof key === 'string' && (TECHNICAL_INDICATOR_SCRIPT_KEY_SET.has(key) || NATIVE_OFFICIAL_TWIN_KEYS.has(key));
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* the
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* fetchPredefinedSymbolsByCoinAndType) builds its pairs from these maps, the venue-choice resolver (`venue-legs.util`
|
|
7
|
-
* presetVenues) names their venues, in this order, and the wrun pin speller (`wrun-pin-spelling.util`) reads how
|
|
8
|
-
* each venue spells a pair.
|
|
2
|
+
* Data about crypto venues that the multi-venue indicators and the wrun pin speller read. No list here says which
|
|
3
|
+
* venues join the Spot or Perps preset: both derive from the catalog for the chart's coin (web
|
|
4
|
+
* src/utility/indicators/venues-for-coin.util.ts eligibleVenues), and tests/constants/venue-presets.constants.spec.ts
|
|
5
|
+
* fails on a per-preset venue list in this file.
|
|
9
6
|
*/
|
|
10
7
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
8
|
+
* How a venue spells a pair in its catalog where the spelling is fixed: the coin, then this quote (`BTC` + `-USD` is
|
|
9
|
+
* Coinbase's `BTC-USD`, `BTC` + `-USDT-SWAP` OKX's perpetual `BTC-USDT-SWAP`); an empty quote is a pair spelled as the
|
|
10
|
+
* bare coin (Hyperliquid's `BTC`). One entry per venue, whatever group it pools in. The wrun pin speller
|
|
11
|
+
* (`wrun-pin-spelling.util`) reads it to vouch for a pin's form; a venue outside it has its pins confirmed by the
|
|
12
|
+
* catalog.
|
|
16
13
|
*/
|
|
17
|
-
export declare const
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
export declare const VENUE_PAIR_QUOTES: Readonly<Record<string, string>>;
|
|
15
|
+
/**
|
|
16
|
+
* The stock venues of the aggregated panes that sum venues by name (Agg. Open Interest, Volume, Liquidations, Funding
|
|
17
|
+
* Rate, TPO, Session VP, Visible Range VP, Volume Footprint, Order Book Heatmap; the web app's
|
|
18
|
+
* AGGREGATED_DEFAULT_EXCHANGES): the deep perp venues. Not a preset (the presets derive from the catalog). Deep only:
|
|
19
|
+
* OKEX_FUTURES (dated futures, a basis away from the perp price) and DERIBIT (coin-scoped profiles can carry option
|
|
20
|
+
* instruments) left 2026-08-07, BITFINEX_DERIVATIVES 2026-08-09 (its perp prints sat $60-80 off the deep venues with
|
|
21
|
+
* dust volume). Its signature is also the legacy `stock` reading of a names row saved before 2026-10-06
|
|
22
|
+
* (venue-names-adapter.util), so changing it re-reads those rows as picks.
|
|
23
|
+
*/
|
|
24
|
+
export declare const AGGREGATED_DEFAULT_EXCHANGES: readonly ["BYBIT", "BINANCE_FUTURES", "OKEX_SWAP", "HYPERLIQUID_FUTURES"];
|