@orangecharts/wrun-chart-host 0.8.0 → 0.10.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 +3 -1
- package/dist/constants/feature-flags.constants.d.ts +9 -0
- package/dist/constants/feature-flags.constants.js +86 -16
- package/dist/constants/marketCapabilities.constants.d.ts +14 -9
- package/dist/constants/marketCapabilities.constants.js +36 -13
- package/dist/constants/opra-compliance.constants.d.ts +15 -0
- package/dist/constants/opra-compliance.constants.js +15 -0
- package/dist/constants/option-venues.constants.d.ts +11 -6
- package/dist/constants/option-venues.constants.js +5 -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 +39 -9
- package/dist/host-env.js +6 -0
- package/dist/host-ports.types.d.ts +108 -18
- package/dist/index.d.ts +14 -0
- package/dist/index.js +14 -0
- package/dist/interfaces/kscript-diagnostics.interface.d.ts +6 -0
- package/dist/interfaces/opra-realtime.interface.d.ts +13 -11
- package/dist/interfaces/opra-realtime.interface.js +10 -10
- package/dist/interfaces/replay.interface.d.ts +8 -0
- package/dist/interfaces/wrun-runtime.interface.d.ts +52 -15
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +94 -14
- package/dist/kscript-data/controls/live-trades-merge.util.js +132 -22
- package/dist/kscript-data/controls/live-trades-order-gate.util.d.ts +56 -0
- package/dist/kscript-data/controls/live-trades-order-gate.util.js +107 -0
- package/dist/market-data/billing.interface.d.ts +227 -42
- package/dist/market-data/billing.interface.js +60 -12
- package/dist/market-data/venue.d.ts +88 -6
- 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 +165 -8
- package/dist/market-data/venues/index.js +48 -6
- package/dist/market-data/venues/opra.contract.copy.json +5 -3
- package/dist/market-data/venues/opra.d.ts +3 -3
- package/dist/market-data/venues/opra.js +5 -4
- package/dist/replay/replayLadder.js +3 -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 +45 -6
- package/dist/settings-templates/tool-rules.d.ts +27 -17
- package/dist/settings-templates/tool-rules.js +27 -11
- package/dist/settings-templates/tool-tables.generated.js +91 -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/crypto-index.leaf.d.ts +2 -2
- package/dist/utility/chart/crypto-index.leaf.js +2 -2
- package/dist/utility/chart/index-mode-admission.util.js +24 -3
- package/dist/utility/chart/index-mode.util.d.ts +5 -2
- package/dist/utility/chart/index-mode.util.js +23 -13
- 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 +7 -2
- package/dist/utility/chart/kscript-live-coalesce.util.js +9 -3
- package/dist/utility/chart/kscript-provenance-keys.util.js +6 -0
- package/dist/utility/chart/kscript-standin-identity.leaf.d.ts +3 -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 +53 -27
- package/dist/utility/chart/kscript-venue-policy.util.js +74 -32
- 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.d.ts +12 -10
- package/dist/utility/chart/marketKind.util.js +17 -7
- package/dist/utility/chart/om-panel-push-style.util.d.ts +7 -7
- package/dist/utility/chart/om-panel-push-style.util.js +17 -15
- package/dist/utility/chart/om-panel.util.js +6 -6
- 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/profile-block-size.util.d.ts +16 -0
- package/dist/utility/chart/profile-block-size.util.js +7 -0
- package/dist/utility/chart/quote-perp.leaf.d.ts +17 -0
- package/dist/utility/chart/quote-perp.leaf.js +20 -0
- package/dist/utility/chart/rth-session.util.d.ts +3 -2
- package/dist/utility/chart/rth-session.util.js +2 -1
- 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/wrun-run-result.util.d.ts +17 -0
- package/dist/utility/chart/wrun-run-result.util.js +145 -7
- package/dist/utility/common/transformations.util.d.ts +7 -0
- package/dist/utility/common/transformations.util.js +11 -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 +21 -3
- package/dist/utility/options/option-venue.util.js +30 -3
- package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +2 -0
- package/dist/utility/wrun/derived-roots.util.d.ts +213 -0
- package/dist/utility/wrun/derived-roots.util.js +471 -0
- package/dist/utility/wrun/run-schedule/wrun-chart-gate-reader.util.d.ts +41 -6
- 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 +5 -3
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +6 -4
- package/dist/utility/wrun/run-schedule/wrun-prefix-feeds.util.d.ts +2 -2
- package/dist/utility/wrun/run-schedule/wrun-prefix-feeds.util.js +5 -1
- 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-lane-registry.js +3 -2
- package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +2 -1
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +9 -3
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +15 -6
- package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +14 -0
- package/dist/utility/wrun/sources/row-lanes/option_prints.js +82 -13
- package/dist/utility/wrun/sources/row-lanes/option_strike_flow.js +17 -4
- package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +55 -8
- package/dist/utility/wrun/sources/row-lanes/option_strikes.js +95 -14
- package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +5 -2
- package/dist/utility/wrun/sources/row-lanes/option_surface.js +7 -3
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -0
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +35 -14
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +70 -20
- package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.d.ts +64 -0
- package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.js +89 -0
- package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.d.ts +45 -1
- package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.js +114 -6
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +56 -5
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +224 -26
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +822 -58
- package/dist/utility/wrun/wrun-batched-marks.util.d.ts +16 -3
- package/dist/utility/wrun/wrun-batched-marks.util.js +30 -19
- package/dist/utility/wrun/wrun-batched-readout.util.d.ts +37 -9
- package/dist/utility/wrun/wrun-batched-readout.util.js +61 -15
- 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-canvas-readout.util.d.ts +4 -0
- package/dist/utility/wrun/wrun-cell-capacity.leaf.d.ts +66 -0
- package/dist/utility/wrun/wrun-cell-capacity.leaf.js +86 -0
- package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +192 -13
- package/dist/utility/wrun/wrun-chart-market-facts.util.js +437 -55
- package/dist/utility/wrun/wrun-color-facts.util.d.ts +19 -9
- package/dist/utility/wrun/wrun-color-facts.util.js +24 -14
- package/dist/utility/wrun/wrun-color-settings.util.d.ts +15 -4
- package/dist/utility/wrun/wrun-color-settings.util.js +31 -12
- package/dist/utility/wrun/wrun-dollar-unit-port.leaf.d.ts +17 -0
- package/dist/utility/wrun/wrun-dollar-unit-port.leaf.js +9 -0
- package/dist/utility/wrun/wrun-download-meter.util.d.ts +107 -0
- package/dist/utility/wrun/wrun-download-meter.util.js +134 -0
- 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-draft-overlay.util.d.ts +6 -1
- package/dist/utility/wrun/wrun-draft-overlay.util.js +23 -3
- package/dist/utility/wrun/wrun-frames.d.ts +27 -6
- package/dist/utility/wrun/wrun-frames.js +78 -15
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +2 -2
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +7 -0
- 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 +51 -21
- package/dist/utility/wrun/wrun-hud-looks.util.js +74 -28
- package/dist/utility/wrun/wrun-latest-snapshot.d.ts +11 -0
- package/dist/utility/wrun/wrun-lifecycle-runtime.util.d.ts +8 -6
- package/dist/utility/wrun/wrun-lifecycle-runtime.util.js +8 -6
- package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +4 -2
- package/dist/utility/wrun/wrun-live-intake.util.d.ts +19 -9
- package/dist/utility/wrun/wrun-live-intake.util.js +213 -45
- package/dist/utility/wrun/wrun-live-tick.util.d.ts +4 -0
- package/dist/utility/wrun/wrun-live-tick.util.js +246 -49
- package/dist/utility/wrun/wrun-market-size-contract-carry.leaf.d.ts +53 -0
- package/dist/utility/wrun/wrun-market-size-contract-carry.leaf.js +162 -0
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +205 -48
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +277 -34
- package/dist/utility/wrun/wrun-market-size-defaults.util.d.ts +51 -7
- package/dist/utility/wrun/wrun-market-size-defaults.util.js +340 -56
- 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-prints.util.d.ts +41 -2
- package/dist/utility/wrun/wrun-option-prints.util.js +80 -13
- 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 +26 -6
- package/dist/utility/wrun/wrun-option-strike-flow-lane.util.js +50 -11
- package/dist/utility/wrun/wrun-option-strike-flow.util.d.ts +109 -19
- package/dist/utility/wrun/wrun-option-strike-flow.util.js +222 -61
- package/dist/utility/wrun/wrun-option-views.util.d.ts +96 -18
- package/dist/utility/wrun/wrun-option-views.util.js +246 -51
- package/dist/utility/wrun/wrun-options-stop.util.d.ts +2 -1
- package/dist/utility/wrun/wrun-options-stop.util.js +3 -2
- 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 +20 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.d.ts +31 -14
- package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.js +22 -0
- 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.d.ts +7 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +25 -1
- package/dist/utility/wrun/wrun-overlay-result.util.d.ts +7 -1
- package/dist/utility/wrun/wrun-overlay-result.util.js +2 -0
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +134 -37
- package/dist/utility/wrun/wrun-overlay-run.util.js +1118 -254
- package/dist/utility/wrun/wrun-pack-widths.leaf.d.ts +4 -4
- package/dist/utility/wrun/wrun-pack-widths.leaf.js +4 -4
- package/dist/utility/wrun/wrun-pack.util.d.ts +7 -3
- package/dist/utility/wrun/wrun-pack.util.js +20 -9
- 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 +63 -13
- package/dist/utility/wrun/wrun-panel-style.util.d.ts +37 -24
- package/dist/utility/wrun/wrun-panel-style.util.js +100 -29
- package/dist/utility/wrun/wrun-param-map.util.d.ts +15 -11
- package/dist/utility/wrun/wrun-param-map.util.js +13 -5
- package/dist/utility/wrun/wrun-param-values.util.d.ts +21 -3
- package/dist/utility/wrun/wrun-param-values.util.js +6 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.js +12 -11
- package/dist/utility/wrun/wrun-prefix-lanes.util.js +2 -2
- 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.js +10 -1
- 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-row-source.d.ts +11 -0
- package/dist/utility/wrun/wrun-run-interval.util.d.ts +4 -2
- package/dist/utility/wrun/wrun-run-interval.util.js +9 -6
- package/dist/utility/wrun/wrun-script-inputs.util.d.ts +52 -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 +113 -8
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +9 -1
- package/dist/utility/wrun/wrun-source-rows.util.js +108 -43
- 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 +26 -0
- package/dist/utility/wrun/wrun-tape-source.util.d.ts +126 -50
- package/dist/utility/wrun/wrun-tape-source.util.js +193 -68
- package/dist/utility/wrun/wrun-volume-profile-lane.util.d.ts +7 -5
- package/dist/utility/wrun/wrun-volume-profile-lane.util.js +8 -6
- package/dist/utils/replay/replay-buffer-math.d.ts +53 -2
- package/dist/utils/replay/replay-buffer-math.js +227 -20
- package/dist/workers/utils/volume-profile.worker.util.d.ts +4 -1
- package/dist/workers/utils/volume-profile.worker.util.js +5 -2
- package/dist/workers/wrun/wrun-abi-host.js +3 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -128,8 +128,10 @@ 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.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). |
|
|
132
|
+
| 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). |
|
|
131
133
|
| 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. |
|
|
132
|
-
| 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`) 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. |
|
|
134
|
+
| 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. |
|
|
133
135
|
| 0.6.0 | `@orangecharts/indicator-kit` 0.87.0, `@orangecharts/orange-v2-pb-common` 12.69.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | The shared engine protocol: a module's bytes cross `postMessage` (the mobile app's portability rule) and the engine worker hashes them (`utility/wrun/wrun-sha256.leaf`), checks the sheet's pin, clamps, prepares and compiles them, caching up to 16 compiled modules per worker, so the main thread neither hashes nor compiles. `compileModule` becomes `loadModule`, which answers an opaque `WrunModuleHandle` (key, sha256, ABI, imports as `{ module, name }` pairs; no bytes); every full run and live-start carries the module's key, ABI and bytes (copied, never transferred), and the worker reuses its cached module or compiles the bytes on a miss, so a respawned worker compiles again. A request runs on two 20 s clocks, the start ceiling from the post (queue plus compile) and the run deadline from the worker's `running`; `loadModule` rejects a failed compile as a `WebAssembly.CompileError` with the worker's words and a pin mismatch with the words it had before 0.6.0. The `run` namespace goes with its three loaders (`run.loadOverlayLifecycleDoor`, `run.loadRefusalSurface`, `run.loadSeriesStream`, retired at 0.5.0), `WrunHostRun` and their three loader views in `host-ports.types`: 131 members by the contract's count, 133 with 0.5.0's two optional ones. Peers unchanged. |
|
|
134
136
|
| 0.5.0 | `@orangecharts/indicator-kit` 0.87.0, `@orangecharts/orange-v2-pb-common` 12.69.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Phase 2: the live session (the live tick, intake, hidden-tab hold, coin lane live channels, series stream), the drivers and the heal ladder (the lifecycle door, `utility/wrun/wrun-overlay-lifecycle.lazy` by subpath, its runtime and the recovery ladders), the prefix runs, the engine (`workers/wrun/wrun-abi-host`, `workers/wrun/wrun-engine-handler`, the browser host), the host facts and the executor (`utility/wrun/wrun-overlay-run.util`, by subpath) with its row sources: 135 modules, 398 in all. The env gains the 84 phase 2 members, the `ui` and `engine` namespaces and the optional `clock.watchHostSuspended` and `chart.commonStore`; the three `run` loaders turn optional (gone at 0.6.0). The panel mount reads a host's planned pane heights on every cell and retranslates an unchanged child in place, keeping a reader's expanded pane through a retire. The entry no longer serves `utility/wrun/wrun-overlay-identity.util` (by subpath; above). The kit peer moves from 0.86.3 to 0.87.0 (`option_multiplier`); the other peers are unchanged. |
|
|
135
137
|
| 0.4.0 | `@orangecharts/indicator-kit` 0.86.3, `@orangecharts/orange-v2-pb-common` 12.69.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Phase 1b: the panel mount (`utility/wrun/wrun-panel-mount.util`, by subpath) and its door (`utility/wrun/wrun-panel-mount.lazy`), the run interval rules (`utility/chart/indicator-run-interval.util`) with the builtin script snippets they type against, the pause dim and six leaves (the window owner and window geometry rules, the date-labelled interval rule, the HTML escape, the run interval projection and plot gate types): 11 modules, 262 in all. The mount reads the host through the env: the 12 members reserved until 0.4.0, `t` and `diagnostics.debug`. Peers unchanged. |
|
|
@@ -6,7 +6,10 @@ export declare const FeatureFlag: {
|
|
|
6
6
|
readonly OmBoard: "om-board";
|
|
7
7
|
readonly ScriptOffers: "script-offers";
|
|
8
8
|
readonly PaperTrading: "paper-trading";
|
|
9
|
+
readonly LighterExecution: "lighter-execution";
|
|
10
|
+
readonly CoinbaseDerivativesExecution: "coinbase-derivatives-execution";
|
|
9
11
|
readonly TradingHub: "trading-hub";
|
|
12
|
+
readonly TradingVolume: "trading-volume";
|
|
10
13
|
readonly DataLoadHealRegister: "data-load-heal-register";
|
|
11
14
|
readonly CollabSyncV2: "collab-sync-v2";
|
|
12
15
|
readonly DataLoadCrossChartJoin: "data-load-cross-chart-join";
|
|
@@ -22,10 +25,13 @@ export declare const FeatureFlag: {
|
|
|
22
25
|
readonly PerfRestLane: "perf-rest-lane";
|
|
23
26
|
readonly PerfAffineBlit: "perf-affine-blit";
|
|
24
27
|
readonly NextBuildPrefetch: "next-build-prefetch";
|
|
28
|
+
readonly PageReach: "page-reach";
|
|
25
29
|
readonly ExactPixelRatio: "exact-pixel-ratio";
|
|
26
30
|
readonly PrepaidPlusCn: "prepaid-plus-cn";
|
|
27
31
|
readonly ApiConsole: "api-console";
|
|
28
32
|
readonly Opra: "opra";
|
|
33
|
+
readonly CmeEngine: "cme-engine";
|
|
34
|
+
readonly VariationalMarkets: "variational-markets";
|
|
29
35
|
readonly OptionsPanel: "options-panel";
|
|
30
36
|
readonly OpraUserScripts: "opra-user-scripts";
|
|
31
37
|
readonly OpraAlerts: "opra-alerts";
|
|
@@ -42,6 +48,9 @@ export declare const FeatureFlag: {
|
|
|
42
48
|
readonly KscriptPauseSuspendsPaint: "kscript-pause-suspends-paint";
|
|
43
49
|
readonly Feeds: "feeds";
|
|
44
50
|
readonly SynopticStreams: "synoptic-streams";
|
|
51
|
+
readonly StoreBuiltinRows: "store-builtin-rows";
|
|
52
|
+
readonly OptionsAccessPrewarm: "options-access-prewarm";
|
|
53
|
+
readonly WrunDownloadBudgetCut: "wrun-download-budget-cut";
|
|
45
54
|
};
|
|
46
55
|
export type FeatureFlagKey = (typeof FeatureFlag)[keyof typeof FeatureFlag];
|
|
47
56
|
export declare const FEATURE_FLAG_KEYS: FeatureFlagKey[];
|
|
@@ -41,13 +41,27 @@ export const FeatureFlag = {
|
|
|
41
41
|
// unminted, absent and guest all read off, so production ships it dark; an internal role reads it
|
|
42
42
|
// on through the server's bypass, the dev/internal localStorage override lights it locally
|
|
43
43
|
// (`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.
|
|
44
|
+
// key also lights two exchange venues launched dark (docs/features/cex-execution/README.md,
|
|
45
|
+
// "Dark launch, entities, passphrase"): OKX and Deribit, their discovery and new linking, read
|
|
46
|
+
// through `isOn` by `isCexVenueFlagOn`. A key this browser already holds for one of them keeps
|
|
47
|
+
// trading after the flag turns off. The build switch `PAPER_TRADING_ENABLED` takes only the paper
|
|
48
|
+
// venue out of a build, never the exchange venues.
|
|
50
49
|
PaperTrading: 'paper-trading',
|
|
50
|
+
// Lighter execution (docs/features/cex-execution/README.md, "Lighter"): the one exchange venue whose
|
|
51
|
+
// trading key is minted in the browser and registered by the wallet. Its own key, read through `isOn`
|
|
52
|
+
// by `isCexVenueFlagOn`: unminted, absent and guest all read off, so production ships it dark while the
|
|
53
|
+
// paper trading key, which lights OKX and Deribit, stays on for everyone; the dev/internal
|
|
54
|
+
// localStorage override lights it locally (`kiyo.flag-overrides` -> `{"lighter-execution": true}`).
|
|
55
|
+
// Mint it enabled to open it up. A key this browser already holds keeps trading after it turns off.
|
|
56
|
+
LighterExecution: 'lighter-execution',
|
|
57
|
+
// Coinbase derivatives execution (the Deribit engine for non-US accounts; Kyle 2026-10-23 took it
|
|
58
|
+
// off the paper trading key to hide it). Its own key, read through `isOn` by `isCexVenueFlagOn`, in
|
|
59
|
+
// Lighter's shape: unminted, absent and guest all read off, internal roles included (no document,
|
|
60
|
+
// no preview), so the hub, the search command and the connect sheet offer it to nobody; the
|
|
61
|
+
// dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
|
|
62
|
+
// `{"coinbase-derivatives-execution": true}`). Mint it enabled to open it up. A key this browser
|
|
63
|
+
// already holds keeps trading, and keeps its card to manage it.
|
|
64
|
+
CoinbaseDerivativesExecution: 'coinbase-derivatives-execution',
|
|
51
65
|
// The trading hub (docs/features/trading-hub/README.md): one Trade door beside the avatar that
|
|
52
66
|
// folds the desktop's linking, accounts and trade settings into one dialog. Rides the master
|
|
53
67
|
// trading flag AND this key, read through `isOn` (`isTradingHubOn`): unminted, absent and guest
|
|
@@ -55,6 +69,14 @@ export const FeatureFlag = {
|
|
|
55
69
|
// bypass, the dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
|
|
56
70
|
// `{"trading-hub": true}`). Mint it enabled to open it up. Phones keep today's surfaces either way.
|
|
57
71
|
TradingHub: 'trading-hub',
|
|
72
|
+
// Trading Volume (docs/features/trading-hub/trading-volume.md): the private page inside the trading
|
|
73
|
+
// hub with the notional the account traded through OpenMarket on Hyperliquid, and its two doors (the
|
|
74
|
+
// profile menu's row under Brokers, the Hyperliquid account page's row). Read through `isOn`
|
|
75
|
+
// (`isTradingVolumeOn`), on top of the hub's own doors check: unminted, absent and guest all read
|
|
76
|
+
// off, so production ships it dark; an internal role reads it on, the dev/internal localStorage
|
|
77
|
+
// override lights it locally (`kiyo.flag-overrides` -> `{"trading-volume": true}`). The server keeps
|
|
78
|
+
// its own switch (`GET /trading-volume` answers 404 TRADING_VOLUME_DISABLED), which hides the doors too.
|
|
79
|
+
TradingVolume: 'trading-volume',
|
|
58
80
|
// Collab-sync kill switch (Phase 1: DEFAULT ON; the flag exists only to
|
|
59
81
|
// force the legacy lanes back, by minting it disabled in the admin panel
|
|
60
82
|
// plus a page reload). Mode is generation-pinned per collab session
|
|
@@ -163,6 +185,12 @@ export const FeatureFlag = {
|
|
|
163
185
|
// KILL SWITCH read through `isExplicitlyOff`: mint it `enabled: false` to stop the
|
|
164
186
|
// watcher at the next page load. Published into src/utils/telemetryGates.ts.
|
|
165
187
|
NextBuildPrefetch: 'next-build-prefetch',
|
|
188
|
+
// Page reach (src/utility/perf/page-reach.util.ts): after a page's core work, download the
|
|
189
|
+
// code it can open (linked pages, its own dialogs and panels) into the HTTP cache. DEFAULT ON;
|
|
190
|
+
// this key is an admin KILL SWITCH read through `isExplicitlyOff`: mint it `enabled: false`
|
|
191
|
+
// to stop the lane (it re-arms on the publish, so a page that already started stops too).
|
|
192
|
+
// Published into src/utils/telemetryGates.ts.
|
|
193
|
+
PageReach: 'page-reach',
|
|
166
194
|
// Exact pixel ratio (src/utility/chart/pixel-ratio-policy.util.ts): charts on
|
|
167
195
|
// Chromium draw at the display's own ratio instead of titan's nearest-whole
|
|
168
196
|
// rounding (a 1.25 display at 1.25, not 1). DEFAULT ON; this key is an admin
|
|
@@ -192,21 +220,42 @@ export const FeatureFlag = {
|
|
|
192
220
|
// affordance, contract charts and the purchase screens. Minted dark; the data tier itself is the
|
|
193
221
|
// OPRA gate's and never flips with this flag (employees stay delayed like everyone).
|
|
194
222
|
Opra: 'opra',
|
|
223
|
+
// CME real-time on the venue-generic market-data flow (ENTITLEMENT-PLANE Program B; docs/features/market-data/
|
|
224
|
+
// plane.md, "CME on the plane"). While lit, the market-data registry lists the CME card
|
|
225
|
+
// (`marketDataVenueIsServed('cme')`), the one CME purchase overlay mounts as the generic flow on
|
|
226
|
+
// `/market-data/cme/*` (GlobalDialogs) while the legacy hosts stand down, the CME chrome reads the generic store and
|
|
227
|
+
// the payment return takes the venue branch. Off, every CME surface is as before (the legacy flow on `/cme/*`).
|
|
228
|
+
// Read through `isOn`: unminted, absent and guest read off, so production ships it dark; light it only once
|
|
229
|
+
// orange's CME engine mode is `live`. QA: `localStorage.setItem('kiyo.flag-overrides', '{"cme-engine":true}')`.
|
|
230
|
+
CmeEngine: 'cme-engine',
|
|
231
|
+
// Variational (VARIATIONAL perpetuals, VARIATIONAL_SWAP swaps) in pickers, search, recents, popular rows
|
|
232
|
+
// and watchlist import: a flag-gated venue (exchange-visibility.util FLAG_GATED_EXCHANGES), read through
|
|
233
|
+
// `isOn`, so unminted, absent and guest all read off and every surface ships it dark. An internal role
|
|
234
|
+
// reads it on through the server's bypass once it is minted; the dev/internal override lights it
|
|
235
|
+
// locally (`kiyo.flag-overrides` -> `{"variational-markets": true}`). A chart already on the venue
|
|
236
|
+
// still loads (docs/features/data/quote-perp-venues.md). Mint it enabled to release the venue.
|
|
237
|
+
VariationalMarkets: 'variational-markets',
|
|
195
238
|
// The Options panel (the Options front door): the ticker bar's Options button, the panel itself and every door
|
|
196
239
|
// to it, read through `isOptionsPanelOn()` (src/utility/options/options-panel-gate.util.ts) with `isOn`:
|
|
197
240
|
// unminted, absent and guest all read off, so production ships it dark; minted disabled, an internal role reads
|
|
198
241
|
// it on. QA: `localStorage.setItem('kiyo.flag-overrides', '{"options-panel":true}')`. Mint it enabled to open it up.
|
|
199
242
|
OptionsPanel: 'options-panel',
|
|
200
|
-
// User-authored scripts on OPRA
|
|
201
|
-
//
|
|
202
|
-
//
|
|
203
|
-
//
|
|
204
|
-
//
|
|
205
|
-
//
|
|
206
|
-
//
|
|
207
|
-
//
|
|
208
|
-
//
|
|
209
|
-
//
|
|
243
|
+
// User-authored scripts on OPRA. The OPRA licence covers user-authored scripting over OPRA data, in the
|
|
244
|
+
// browser and on OpenMarket's servers (Kyle 2026-10-27, the signed set); this flag is the one product switch
|
|
245
|
+
// for both lanes. While lit, a script the browser runs that the viewer wrote or added from the community (an
|
|
246
|
+
// Indicator draft, a community package, a kScript user script) reads US options like an OpenMarket package:
|
|
247
|
+
// the wrun chain wall (`opra-official-only`), the display wall, the data wall and the engine policy all lift
|
|
248
|
+
// for it on the OPRA plane only (kscript-venue-policy.util `isOpraUserScriptRun`, the one decision), and the
|
|
249
|
+
// Cloud lane (kscript-backend) admits a hosted run reading a US stock or ETF chart's chain by the same key,
|
|
250
|
+
// per user. The tier follows the viewer in both lanes, never the script: the browser reads through the
|
|
251
|
+
// viewer's own gate sockets, the Cloud lane is served the owner's tier and stamps each frame with it (the
|
|
252
|
+
// legend's served word is that frame's receipt). Hosted Cloud runs on an OPRA contract chart and protected
|
|
253
|
+
// scripts stay walled. What stays whatever it says: the provenance stamp, the chart_read and MCP withhold, the
|
|
254
|
+
// CSV export refusal, the delayed legend note, and the console export door (console entries a run produced
|
|
255
|
+
// over OPRA data are marked and every copy of console text strips them). To be minted dark (admin panel);
|
|
256
|
+
// read with `isOn` (absent, unloaded and guest read off): `opraUserScriptsEnabled()` (opra-options-gate.util)
|
|
257
|
+
// on the main thread, the published gate (opra-user-scripts-gate.util) in the venue policy.
|
|
258
|
+
// QA: `localStorage.setItem('kiyo.flag-overrides', '{"opra-user-scripts":true}')`.
|
|
210
259
|
OpraUserScripts: 'opra-user-scripts',
|
|
211
260
|
// Alerts on US options (UW-PARITY H3, the OPRA server lanes): while lit, a viewer the OPRA gate serves real-time
|
|
212
261
|
// can set a price alert or an Indicator alert on a US option contract, which the alerts engine evaluates on its
|
|
@@ -300,6 +349,27 @@ export const FeatureFlag = {
|
|
|
300
349
|
// production ships it dark; minted disabled, an internal role reads it on; the dev/internal localStorage
|
|
301
350
|
// override lights it locally. Mint it enabled to open it up.
|
|
302
351
|
SynopticStreams: 'synoptic-streams',
|
|
352
|
+
// The indicator store's native Official rows from the registry's builtin listings
|
|
353
|
+
// (docs/features/indicators/indicator-catalog.md): on, a builtin row lists its native control (Add mounts it by
|
|
354
|
+
// type), tharamine's row only for a type no builtin row covers, and the Official side orders by `boost`. Off,
|
|
355
|
+
// builtin rows are dropped and the store is as before. Read through `isOn`: unminted, absent and guest read off,
|
|
356
|
+
// so production ships it dark; flip it off to roll back (saved charts store the control type).
|
|
357
|
+
StoreBuiltinRows: 'store-builtin-rows',
|
|
358
|
+
// The chart-load dial of the OPRA gate reader (OPTLOAD W3 A1, utility/options/chart-options-access.util): a chart whose
|
|
359
|
+
// options ride the OPRA plane dials that reader after its first paint, through the lease-guarded intent warm, for an
|
|
360
|
+
// account that read options in this browser in the last 14 days or a route with an add intent, so the first options
|
|
361
|
+
// add's read leaves when it is asked. Read through `isOn`: unminted, absent and guest all read off, so production
|
|
362
|
+
// ships it dark until the gate owners confirm the extra OPRA session load; the dev/internal localStorage override
|
|
363
|
+
// lights it for a rig (`kiyo.flag-overrides` -> `{"options-access-prewarm": true}`). The options stamp the dial reads
|
|
364
|
+
// is written whatever the flag says, and the CME directory prewarm beside it rides no flag.
|
|
365
|
+
OptionsAccessPrewarm: 'options-access-prewarm',
|
|
366
|
+
// The indicator download budget's cut (OPTLOAD W3 R2, docs/features/kscript/wrun/wrun-browser-runtime.md, "The download
|
|
367
|
+
// budget"): a browser-run Indicator whose projected download passes 1 MB per 252 bars reads its newest bars first and
|
|
368
|
+
// stops near the budget, the older bars partial, with the "Newest bars only" chip. Off: whole asks always, the meter
|
|
369
|
+
// still counts. Read through `isOn`: unminted, absent and guest all read off, so production ships it dark until Kyle
|
|
370
|
+
// switches it on; the dev/internal localStorage override lights it for a rig (`kiyo.flag-overrides` ->
|
|
371
|
+
// `{"wrun-download-budget-cut": true}`).
|
|
372
|
+
WrunDownloadBudgetCut: 'wrun-download-budget-cut',
|
|
303
373
|
};
|
|
304
374
|
export const FEATURE_FLAG_KEYS = Object.values(FeatureFlag);
|
|
305
375
|
/**
|
|
@@ -55,21 +55,26 @@ export interface IMarketCapabilities {
|
|
|
55
55
|
* surface available and no execution.
|
|
56
56
|
*/
|
|
57
57
|
export declare const CME_FUTURES_CAPABILITIES: IMarketCapabilities;
|
|
58
|
+
/**
|
|
59
|
+
* US equity and index options over the OPRA entitlement gate (the `'options'`
|
|
60
|
+
* kind). Session markets served by the same reader/live-feed pipeline as CME
|
|
61
|
+
* (period fetch, TRADE data sided by the feed) with trades, volume and market
|
|
62
|
+
* stats, but no order book (OPRA is top of book only and the feed publishes no
|
|
63
|
+
* book types) and no volume profile: the gateway retired VOLUME_PROFILE_AGG,
|
|
64
|
+
* TPO_AGG and TRADE_VOLUME_BY_SIZE_AGG on option contracts 2026-10-21, and
|
|
65
|
+
* every OPRA chart is an option contract, so the Fixed Range Volume Profile
|
|
66
|
+
* tool stands down (tradfi.constants OPTION_CONTRACT_ORDER_FLOW_INDICATORS
|
|
67
|
+
* refuses the indicators). CME futures keep the tool; an exact CME option
|
|
68
|
+
* shares their capability record and its mode refuses the profile instead.
|
|
69
|
+
* Alerts are refused on the plane by policy, so the alert symbol mode is moot.
|
|
70
|
+
*/
|
|
71
|
+
export declare const OPRA_OPTIONS_CAPABILITIES: IMarketCapabilities;
|
|
58
72
|
/**
|
|
59
73
|
* On-chain pools served by blk (`isBlkExchange`: every SOLANA_ONCHAIN market). They classify as the
|
|
60
74
|
* crypto kind (uniform bars, period fetch, a trade tape and market stats), but blk serves no order book
|
|
61
75
|
* and no volume profile, so the book surfaces (the Orderbook tab, its block-size prefetch) and the
|
|
62
76
|
* Fixed Range Volume Profile tool stand down. `getCapabilities` returns this for those exchanges.
|
|
63
77
|
*/
|
|
64
|
-
/**
|
|
65
|
-
* US equity and index options over the OPRA entitlement gate (the `'options'`
|
|
66
|
-
* kind). Session markets served by the same reader/live-feed pipeline as CME
|
|
67
|
-
* (period fetch, TRADE data sided by the feed) with trades, volume, market
|
|
68
|
-
* stats and the volume-profile surfaces, but no order book: OPRA is top of
|
|
69
|
-
* book only and the feed publishes no book types. Alerts are refused on the
|
|
70
|
-
* plane by policy, so the alert symbol mode is moot.
|
|
71
|
-
*/
|
|
72
|
-
export declare const OPRA_OPTIONS_CAPABILITIES: IMarketCapabilities;
|
|
73
78
|
export declare const ONCHAIN_POOL_CAPABILITIES: IMarketCapabilities;
|
|
74
79
|
export declare const MARKET_CAPABILITIES: Record<VenueMarketKind, IMarketCapabilities>;
|
|
75
80
|
/** Every market kind (the FE `'futures'` kind included). Derived from
|
|
@@ -27,19 +27,18 @@ export const CME_FUTURES_CAPABILITIES = {
|
|
|
27
27
|
// ones (cmeSessionBucketMs).
|
|
28
28
|
allowsCalendarIntervals: true,
|
|
29
29
|
};
|
|
30
|
-
/**
|
|
31
|
-
* On-chain pools served by blk (`isBlkExchange`: every SOLANA_ONCHAIN market). They classify as the
|
|
32
|
-
* crypto kind (uniform bars, period fetch, a trade tape and market stats), but blk serves no order book
|
|
33
|
-
* and no volume profile, so the book surfaces (the Orderbook tab, its block-size prefetch) and the
|
|
34
|
-
* Fixed Range Volume Profile tool stand down. `getCapabilities` returns this for those exchanges.
|
|
35
|
-
*/
|
|
36
30
|
/**
|
|
37
31
|
* US equity and index options over the OPRA entitlement gate (the `'options'`
|
|
38
32
|
* kind). Session markets served by the same reader/live-feed pipeline as CME
|
|
39
|
-
* (period fetch, TRADE data sided by the feed) with trades, volume
|
|
40
|
-
* stats
|
|
41
|
-
* book
|
|
42
|
-
*
|
|
33
|
+
* (period fetch, TRADE data sided by the feed) with trades, volume and market
|
|
34
|
+
* stats, but no order book (OPRA is top of book only and the feed publishes no
|
|
35
|
+
* book types) and no volume profile: the gateway retired VOLUME_PROFILE_AGG,
|
|
36
|
+
* TPO_AGG and TRADE_VOLUME_BY_SIZE_AGG on option contracts 2026-10-21, and
|
|
37
|
+
* every OPRA chart is an option contract, so the Fixed Range Volume Profile
|
|
38
|
+
* tool stands down (tradfi.constants OPTION_CONTRACT_ORDER_FLOW_INDICATORS
|
|
39
|
+
* refuses the indicators). CME futures keep the tool; an exact CME option
|
|
40
|
+
* shares their capability record and its mode refuses the profile instead.
|
|
41
|
+
* Alerts are refused on the plane by policy, so the alert symbol mode is moot.
|
|
43
42
|
*/
|
|
44
43
|
export const OPRA_OPTIONS_CAPABILITIES = {
|
|
45
44
|
barTimestamps: 'irregular',
|
|
@@ -47,11 +46,17 @@ export const OPRA_OPTIONS_CAPABILITIES = {
|
|
|
47
46
|
supportsVolumeStats: true,
|
|
48
47
|
supportsTradesFeed: true,
|
|
49
48
|
supportsMarketStats: true,
|
|
50
|
-
supportsFRVP:
|
|
49
|
+
supportsFRVP: false,
|
|
51
50
|
supportsOrderbook: false,
|
|
52
51
|
alertSymbolMode: 'coin',
|
|
53
52
|
allowsCalendarIntervals: false,
|
|
54
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* On-chain pools served by blk (`isBlkExchange`: every SOLANA_ONCHAIN market). They classify as the
|
|
56
|
+
* crypto kind (uniform bars, period fetch, a trade tape and market stats), but blk serves no order book
|
|
57
|
+
* and no volume profile, so the book surfaces (the Orderbook tab, its block-size prefetch) and the
|
|
58
|
+
* Fixed Range Volume Profile tool stand down. `getCapabilities` returns this for those exchanges.
|
|
59
|
+
*/
|
|
55
60
|
export const ONCHAIN_POOL_CAPABILITIES = {
|
|
56
61
|
barTimestamps: 'uniform',
|
|
57
62
|
fetchMode: 'period',
|
|
@@ -181,8 +186,8 @@ export const MARKET_CAPABILITIES = {
|
|
|
181
186
|
options: OPRA_OPTIONS_CAPABILITIES,
|
|
182
187
|
// The crypto-wide indices (CRYPTOCAP: BTC.D, TOTAL, ...). Value candles on
|
|
183
188
|
// the period fetch, 24/7 on uniform bars like crypto, at every interval from
|
|
184
|
-
//
|
|
185
|
-
//
|
|
189
|
+
// 1s up (the calendar ones included), but no trades, volume, book or profile
|
|
190
|
+
// behind them, and no alert engine lane.
|
|
186
191
|
cryptoIndex: {
|
|
187
192
|
barTimestamps: 'uniform',
|
|
188
193
|
fetchMode: 'period',
|
|
@@ -195,6 +200,24 @@ export const MARKET_CAPABILITIES = {
|
|
|
195
200
|
alertSymbolMode: 'coin',
|
|
196
201
|
allowsCalendarIntervals: true,
|
|
197
202
|
},
|
|
203
|
+
// Perpetual venues that publish quotes, never trades (Variational,
|
|
204
|
+
// quote-perp.leaf). Quote candles (TICKER_AGG) on the period fetch, 24/7 on
|
|
205
|
+
// uniform bars like crypto, from 1m up (the gateway serves no sub-minute
|
|
206
|
+
// TICKER_AGG tier), with funding and open interest beside them but no
|
|
207
|
+
// trades, volume, book or profile. No alert engine lane is proven for the
|
|
208
|
+
// venue, so alerts stay closed (an armed one would save and never fire).
|
|
209
|
+
quotePerp: {
|
|
210
|
+
barTimestamps: 'uniform',
|
|
211
|
+
fetchMode: 'period',
|
|
212
|
+
supportsVolumeStats: false,
|
|
213
|
+
supportsTradesFeed: false,
|
|
214
|
+
supportsMarketStats: false,
|
|
215
|
+
supportsFRVP: false,
|
|
216
|
+
supportsOrderbook: false,
|
|
217
|
+
supportsAlerts: false,
|
|
218
|
+
alertSymbolMode: 'slug',
|
|
219
|
+
allowsCalendarIntervals: true,
|
|
220
|
+
},
|
|
198
221
|
};
|
|
199
222
|
// =============================================================================
|
|
200
223
|
// MarketKind shorthand sets — for `IIndicatorControl.marketKinds` declarations.
|
|
@@ -17,3 +17,18 @@
|
|
|
17
17
|
* the watchlist cell tooltip, and the purchase page's live delayed price.
|
|
18
18
|
*/
|
|
19
19
|
export declare const OPRA_DELAY_NOTICE = "OPRA data delayed 15 minutes";
|
|
20
|
+
/**
|
|
21
|
+
* The agreement notice. Source: the filed Attachment C (6) to the OPRA Vendor Agreement and the filed display screen 2:
|
|
22
|
+
* the notice shown prominently each time a subscriber accesses the service, its last words a link to the agreement the
|
|
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.
|
|
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.";
|
|
28
|
+
/** The words of the agreement notice that link to the accepted agreement: the notice's own words, never a label. */
|
|
29
|
+
export declare const OPRA_AGREEMENT_NOTICE_LINK = "CLICK HERE";
|
|
30
|
+
/**
|
|
31
|
+
* The agreement step's assent button. Source: the B-1 form itself, which asks the subscriber to indicate agreement by
|
|
32
|
+
* clicking the button of these words at the end: the button reads them exactly, in every locale.
|
|
33
|
+
*/
|
|
34
|
+
export declare const OPRA_ASSENT_BUTTON = "I AGREE";
|
|
@@ -17,3 +17,18 @@
|
|
|
17
17
|
* the watchlist cell tooltip, and the purchase page's live delayed price.
|
|
18
18
|
*/
|
|
19
19
|
export const OPRA_DELAY_NOTICE = 'OPRA data delayed 15 minutes';
|
|
20
|
+
/**
|
|
21
|
+
* The agreement notice. Source: the filed Attachment C (6) to the OPRA Vendor Agreement and the filed display screen 2:
|
|
22
|
+
* the notice shown prominently each time a subscriber accesses the service, its last words a link to the agreement the
|
|
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.
|
|
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.';
|
|
28
|
+
/** The words of the agreement notice that link to the accepted agreement: the notice's own words, never a label. */
|
|
29
|
+
export const OPRA_AGREEMENT_NOTICE_LINK = 'CLICK HERE';
|
|
30
|
+
/**
|
|
31
|
+
* The agreement step's assent button. Source: the B-1 form itself, which asks the subscriber to indicate agreement by
|
|
32
|
+
* clicking the button of these words at the end: the button reads them exactly, in every locale.
|
|
33
|
+
*/
|
|
34
|
+
export const OPRA_ASSENT_BUTTON = 'I AGREE';
|
|
@@ -61,9 +61,9 @@ export interface OptionVenue {
|
|
|
61
61
|
greeksEstimated?: boolean;
|
|
62
62
|
/**
|
|
63
63
|
* The chain stamps each expiry at the contract's true expiry instant (OPRA: 16:00 New York, 09:30 for the
|
|
64
|
-
* AM-settled roots), not a bare UTC-midnight date
|
|
65
|
-
* read time to expiry, so they are offered and kept only on a plane whose row says
|
|
66
|
-
*
|
|
64
|
+
* AM-settled roots; the CME group: the registry's expiration instant), not a bare UTC-midnight date. The
|
|
65
|
+
* heatmap's charm and vanna read time to expiry, so they are offered and kept only on a plane whose row says
|
|
66
|
+
* so (planeServesExpiryInstants); a quote still stamped at UTC midnight prices neither (isDateOnlyExpiry).
|
|
67
67
|
*/
|
|
68
68
|
expiryInstants?: boolean;
|
|
69
69
|
/** Chain fields the venue never serves (OPRA publishes no settlement), folded into the hidden set. */
|
|
@@ -74,11 +74,16 @@ export interface OptionVenue {
|
|
|
74
74
|
knownUnderlyings?: readonly OptionKnownUnderlying[];
|
|
75
75
|
families?: readonly OptionVenueFamily[];
|
|
76
76
|
chainWindowSec?: number;
|
|
77
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* The venue streams OPTION_SUMMARY on the live feed, so a chain's quotes and underlying follow it between summary
|
|
79
|
+
* polls: the crypto venues on the plain socket, CME and OPRA on the gate's live-feed slot of the tier the account
|
|
80
|
+
* is served (a delayed chain takes only frames as old as its delay, see useOptionChainSummaryBrowser).
|
|
81
|
+
*/
|
|
78
82
|
liveSummary?: boolean;
|
|
79
83
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
84
|
+
* A plain venue's summary poll on the chain page. Omitted polls at `OPTION_CHAIN_SUMMARY_POLL_MS` (3 s, Deribit);
|
|
85
|
+
* the other plain venues publish every 15 to 60 s, so a 3 s poll mostly re-reads the same quotes. A governed venue
|
|
86
|
+
* sets none: its chain polls at its tier's pace (3 s real-time, `DELAYED_CHAIN_POLL_MS` delayed).
|
|
82
87
|
*/
|
|
83
88
|
chainPollMs?: number;
|
|
84
89
|
/** The venue's trade-date clock (the data plane's `option_venue_clocks`; option-trade-date.util). Omitted: UTC. */
|
|
@@ -59,6 +59,10 @@ export const OPTION_VENUES = [
|
|
|
59
59
|
lane: 'governed',
|
|
60
60
|
plane: 'cme',
|
|
61
61
|
gated: false,
|
|
62
|
+
liveSummary: true,
|
|
63
|
+
// The registry stamps each expiry at its expiration instant (metadata-instrument's full expiration): 0
|
|
64
|
+
// midnight stamps among the live CME, CBOT, NYMEX and COMEX option contracts on 2026-10-22.
|
|
65
|
+
expiryInstants: true,
|
|
62
66
|
// The Globex trade date (17:00 Chicago opens the next); the crypto futures roll at 16:00, weekends on Monday.
|
|
63
67
|
tradeDateClock: {
|
|
64
68
|
zone: 'America/Chicago',
|
|
@@ -93,8 +97,7 @@ export const OPTION_VENUES = [
|
|
|
93
97
|
expiryInstants: true,
|
|
94
98
|
unavailableFields: ['settlementPrice', 'settlementDate'],
|
|
95
99
|
delayMinutes: OPRA_DELAY_MINUTES,
|
|
96
|
-
|
|
97
|
-
chainPollMs: 15_000,
|
|
100
|
+
liveSummary: true,
|
|
98
101
|
tradeDateClock: { zone: 'America/New_York', rule: { offsetHours: 0 } },
|
|
99
102
|
},
|
|
100
103
|
{
|
|
@@ -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));
|