@orangecharts/wrun-chart-host 0.7.0 → 0.8.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 +25 -2
- package/dist/constants/feature-flags.constants.d.ts +1 -0
- package/dist/constants/feature-flags.constants.js +5 -0
- package/dist/constants/option-venues.constants.d.ts +18 -0
- package/dist/constants/option-venues.constants.js +14 -0
- package/dist/constants/venue-presets.constants.d.ts +17 -3
- package/dist/constants/venue-presets.constants.js +17 -3
- package/dist/host-env.d.ts +24 -0
- package/dist/host-env.js +21 -0
- package/dist/host-ports.types.d.ts +12 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +16 -0
- package/dist/indicators/controls/tpo-session.util.d.ts +40 -11
- package/dist/indicators/controls/tpo-session.util.js +138 -14
- package/dist/interfaces/option-instrument.interface.d.ts +6 -0
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +4 -0
- package/dist/kscript-data/controls/live-trades-merge.util.js +4 -0
- package/dist/settings-templates/footprint-rows.d.ts +25 -0
- package/dist/settings-templates/footprint-rows.js +127 -0
- package/dist/settings-templates/form-rows.d.ts +56 -0
- package/dist/settings-templates/form-rows.js +19 -0
- package/dist/settings-templates/frvp-fields.js +14 -0
- package/dist/settings-templates/index.d.ts +11 -0
- package/dist/settings-templates/index.js +29 -6
- package/dist/settings-templates/indicator-fields.d.ts +2 -0
- package/dist/settings-templates/indicator-fields.js +78 -0
- package/dist/settings-templates/tool-rules.d.ts +40 -4
- package/dist/settings-templates/tool-rules.js +45 -4
- package/dist/settings-templates/tool-tables.generated.js +22 -2
- package/dist/utility/chart/candle-volume-unit.leaf.d.ts +16 -0
- package/dist/utility/chart/candle-volume-unit.leaf.js +61 -0
- package/dist/utility/chart/footprint-columns.util.d.ts +74 -0
- package/dist/utility/chart/footprint-columns.util.js +106 -0
- package/dist/utility/chart/footprint-display-mode.util.d.ts +40 -0
- package/dist/utility/chart/footprint-display-mode.util.js +62 -0
- package/dist/utility/chart/footprint-sierra-look.util.d.ts +2 -0
- package/dist/utility/chart/footprint-sierra-look.util.js +37 -0
- package/dist/utility/chart/kscript-venue-policy.util.js +4 -2
- package/dist/utility/chart/om-panel.util.d.ts +11 -0
- package/dist/utility/chart/om-panel.util.js +59 -0
- package/dist/utility/chart/window-geometry.leaf.d.ts +23 -1
- package/dist/utility/chart/window-geometry.leaf.js +78 -6
- package/dist/utility/chart/window-owner.leaf.d.ts +13 -0
- package/dist/utility/chart/window-owner.leaf.js +5 -0
- package/dist/utility/options/cme-options-root.util.d.ts +25 -0
- package/dist/utility/options/cme-options-root.util.js +40 -0
- package/dist/utility/options/option-book.util.d.ts +27 -0
- package/dist/utility/options/option-book.util.js +76 -0
- package/dist/utility/options/option-trade-date.util.d.ts +50 -0
- package/dist/utility/options/option-trade-date.util.js +120 -0
- package/dist/utility/wrun/sources/host-grid-landing.d.ts +4 -2
- package/dist/utility/wrun/sources/host-grid-landing.js +8 -0
- package/dist/utility/wrun/sources/lanes/options_flow.d.ts +40 -4
- package/dist/utility/wrun/sources/lanes/options_flow.js +115 -18
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +12 -9
- package/dist/utility/wrun/sources/opra-option-lanes.util.js +10 -7
- package/dist/utility/wrun/sources/row-lane-registry.js +9 -5
- package/dist/utility/wrun/sources/row-lanes/index.js +2 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_flow.d.ts +3 -2
- package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +30 -5
- package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +14 -1
- package/dist/utility/wrun/sources/row-lanes/option_prints.js +100 -23
- package/dist/utility/wrun/sources/row-lanes/option_strike_flow.d.ts +4 -0
- package/dist/utility/wrun/sources/row-lanes/option_strike_flow.js +65 -0
- package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +47 -1
- package/dist/utility/wrun/sources/row-lanes/option_strikes.js +71 -2
- package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +14 -1
- package/dist/utility/wrun/sources/row-lanes/option_surface.js +30 -2
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +7 -1
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +45 -5
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +115 -3
- package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.d.ts +10 -0
- package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.js +57 -0
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +60 -6
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +160 -23
- package/dist/utility/wrun/wrun-cloud-record.leaf.d.ts +27 -0
- package/dist/utility/wrun/wrun-cloud-record.leaf.js +71 -0
- package/dist/utility/wrun/wrun-cloud-record.util.d.ts +4 -21
- package/dist/utility/wrun/wrun-cloud-record.util.js +5 -65
- package/dist/utility/wrun/wrun-color-settings.util.d.ts +7 -5
- package/dist/utility/wrun/wrun-color-settings.util.js +26 -11
- package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +4 -2
- package/dist/utility/wrun/wrun-draft-overlay.util.js +40 -3
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +1 -1
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +4 -0
- package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +29 -3
- package/dist/utility/wrun/wrun-lane-refusal.leaf.js +33 -3
- package/dist/utility/wrun/wrun-live-tick.util.d.ts +4 -1
- package/dist/utility/wrun/wrun-live-tick.util.js +39 -6
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +106 -0
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +159 -0
- package/dist/utility/wrun/wrun-market-size-defaults.util.d.ts +44 -0
- package/dist/utility/wrun/wrun-market-size-defaults.util.js +213 -0
- package/dist/utility/wrun/wrun-opra-flow.leaf.d.ts +43 -8
- package/dist/utility/wrun/wrun-opra-flow.leaf.js +37 -6
- package/dist/utility/wrun/wrun-option-contract-flow.util.d.ts +51 -10
- package/dist/utility/wrun/wrun-option-contract-flow.util.js +85 -33
- package/dist/utility/wrun/wrun-option-prints.util.d.ts +133 -3
- package/dist/utility/wrun/wrun-option-prints.util.js +318 -8
- package/dist/utility/wrun/wrun-option-strike-flow-lane.util.d.ts +96 -0
- package/dist/utility/wrun/wrun-option-strike-flow-lane.util.js +215 -0
- package/dist/utility/wrun/wrun-option-strike-flow.util.d.ts +342 -0
- package/dist/utility/wrun/wrun-option-strike-flow.util.js +742 -0
- package/dist/utility/wrun/wrun-option-views.util.d.ts +183 -3
- package/dist/utility/wrun/wrun-option-views.util.js +504 -7
- package/dist/utility/wrun/wrun-options-chain.util.d.ts +6 -4
- package/dist/utility/wrun/wrun-options-chain.util.js +8 -5
- package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +2 -1
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +7 -2
- package/dist/utility/wrun/wrun-overlay-run.util.js +120 -18
- package/dist/utility/wrun/wrun-pack-widths.leaf.d.ts +15 -0
- package/dist/utility/wrun/wrun-pack-widths.leaf.js +22 -0
- package/dist/utility/wrun/wrun-pack.util.d.ts +9 -8
- package/dist/utility/wrun/wrun-pack.util.js +21 -15
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +4 -0
- package/dist/utility/wrun/wrun-panel-mount.util.js +62 -22
- package/dist/utility/wrun/wrun-panel-style.util.d.ts +17 -2
- package/dist/utility/wrun/wrun-panel-style.util.js +47 -9
- package/dist/utility/wrun/wrun-pin-spelling.util.js +19 -10
- package/dist/utility/wrun/wrun-refusal.util.js +7 -1
- package/dist/utility/wrun/wrun-script-inputs.util.d.ts +13 -0
- package/dist/utility/wrun/wrun-script-inputs.util.js +43 -0
- package/dist/utility/wrun/wrun-tape-source.util.d.ts +9 -0
- package/dist/utility/wrun/wrun-tape-source.util.js +18 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Peers, pinned exactly (install them beside the package):
|
|
|
10
10
|
|
|
11
11
|
| Peer | Version | Why |
|
|
12
12
|
| --- | --- | --- |
|
|
13
|
-
| `@orangecharts/indicator-kit` | 0.
|
|
13
|
+
| `@orangecharts/indicator-kit` | 0.91.1 | the shared host's types (`@orangecharts/indicator-kit/host`); the host module itself comes through the env |
|
|
14
14
|
| `@orangecharts/orange-v2-pb-common` | 12.72.0 | the protocol enums the lanes, pins and venue rules read (`Exchange`, `Type`, `Category`), from 0.3.0 |
|
|
15
15
|
| `dayjs` | 1.11.23 | sessions and trading days (the `utc`, `timezone`, `isoWeek` and `quarterOfYear` plugins) |
|
|
16
16
|
| `lodash-es` | 4.18.1 | the color settings and the transforms, by per-function subpath |
|
|
@@ -32,7 +32,29 @@ At 0.4.0, 27: the panel mount `utility/wrun/wrun-panel-mount.util` joins them (i
|
|
|
32
32
|
the last one at 0.4.0: from 0.5.0 its `isWrunDraftOverlaySettings` is the draft overlay module's (a draft ref, or a
|
|
33
33
|
draft script id without a package ref), so import the identity module's names by its subpath. 0.6.0 and 0.7.0 keep
|
|
34
34
|
the same 33: the eleven modules 0.7.0 adds all join the entry, and the one it deletes
|
|
35
|
-
(`utility/wrun/wrun-opra-underlying.util`) was in it.
|
|
35
|
+
(`utility/wrun/wrun-opra-underlying.util`) was in it. 0.8.0 keeps them too: every module added since 0.7.0 joins the
|
|
36
|
+
entry, its five footprint modules among them. `src/index.ts` names the modules it joins.
|
|
37
|
+
|
|
38
|
+
## Settings form rows (from 0.8.0)
|
|
39
|
+
|
|
40
|
+
A control the web app draws as a dialog row is described as rows a host's settings form draws, renderer-agnostic and
|
|
41
|
+
without words (`settings-templates/form-rows`): an `action` row (a label and one button; `apply(model)` answers the
|
|
42
|
+
model the click writes) or a `choice` row (`options` as a drop-down or chips, the `value` on, and `pick(model, value)`,
|
|
43
|
+
which answers the model itself when the pick writes nothing). Words are locale keys the host translates. The
|
|
44
|
+
footprint's Classic Presets and Columns controls are the first (`footprintFormRows(slot, model)`):
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
import { footprintFormRows } from '@orangecharts/wrun-chart-host';
|
|
48
|
+
|
|
49
|
+
for (const row of footprintFormRows('footprint-columns', settings)) {
|
|
50
|
+
// row.kind 'choice': draw row.options (row.look 'select' or 'chips'); on a pick:
|
|
51
|
+
// const next = row.pick(settings, value); if (next !== settings) apply(next);
|
|
52
|
+
// row.kind 'action': draw one button with row.action's words; on a click: apply(row.apply(settings)).
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
`sierra-look` is the Classic Presets row; `footprint-columns` is the Display Mode row, then, in the Columns mode, the
|
|
57
|
+
four presets and one select per column (columns 3 and 4 can be Off). Build the rows again after every apply.
|
|
36
58
|
|
|
37
59
|
## The host env (ports)
|
|
38
60
|
|
|
@@ -106,6 +128,7 @@ What each published version holds. A host installs a version with the peers of i
|
|
|
106
128
|
|
|
107
129
|
| Version | Peers | What changed |
|
|
108
130
|
| --- | --- | --- |
|
|
131
|
+
| 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. |
|
|
109
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. |
|
|
110
133
|
| 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. |
|
|
111
134
|
| 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. |
|
|
@@ -26,6 +26,7 @@ export declare const FeatureFlag: {
|
|
|
26
26
|
readonly PrepaidPlusCn: "prepaid-plus-cn";
|
|
27
27
|
readonly ApiConsole: "api-console";
|
|
28
28
|
readonly Opra: "opra";
|
|
29
|
+
readonly OptionsPanel: "options-panel";
|
|
29
30
|
readonly OpraUserScripts: "opra-user-scripts";
|
|
30
31
|
readonly OpraAlerts: "opra-alerts";
|
|
31
32
|
readonly PlusUsdcAutopay: "plus-usdc-autopay";
|
|
@@ -192,6 +192,11 @@ export const FeatureFlag = {
|
|
|
192
192
|
// affordance, contract charts and the purchase screens. Minted dark; the data tier itself is the
|
|
193
193
|
// OPRA gate's and never flips with this flag (employees stay delayed like everyone).
|
|
194
194
|
Opra: 'opra',
|
|
195
|
+
// The Options panel (the Options front door): the ticker bar's Options button, the panel itself and every door
|
|
196
|
+
// to it, read through `isOptionsPanelOn()` (src/utility/options/options-panel-gate.util.ts) with `isOn`:
|
|
197
|
+
// unminted, absent and guest all read off, so production ships it dark; minted disabled, an internal role reads
|
|
198
|
+
// it on. QA: `localStorage.setItem('kiyo.flag-overrides', '{"options-panel":true}')`. Mint it enabled to open it up.
|
|
199
|
+
OptionsPanel: 'options-panel',
|
|
195
200
|
// User-authored scripts on OPRA (UW-PARITY H2; Kyle 2026-10-17 assumed the OPRA permission for
|
|
196
201
|
// user-authored scripts): while lit, a script the browser runs that the viewer wrote or added from the
|
|
197
202
|
// community (an Indicator draft, a community package, a kScript user script) reads US options like an
|
|
@@ -81,6 +81,24 @@ export interface OptionVenue {
|
|
|
81
81
|
* CME); the other plain venues publish every 15 to 60 s, so a 3 s poll mostly re-reads the same quotes.
|
|
82
82
|
*/
|
|
83
83
|
chainPollMs?: number;
|
|
84
|
+
/** The venue's trade-date clock (the data plane's `option_venue_clocks`; option-trade-date.util). Omitted: UTC. */
|
|
85
|
+
tradeDateClock?: OptionTradeDateClock;
|
|
86
|
+
}
|
|
87
|
+
/** A clock's rule: its zone's wall clock plus `offsetHours`, cut to a date (a weekend moved to Monday when set). */
|
|
88
|
+
export interface OptionTradeDateRule {
|
|
89
|
+
offsetHours: number;
|
|
90
|
+
weekendsToMonday?: true;
|
|
91
|
+
}
|
|
92
|
+
/** One venue family's clock: its zone and rule, and the root families of its futures dating by their own rule. */
|
|
93
|
+
export interface OptionTradeDateClock {
|
|
94
|
+
zone: string;
|
|
95
|
+
rule: OptionTradeDateRule;
|
|
96
|
+
rootFamilies?: readonly {
|
|
97
|
+
family: string;
|
|
98
|
+
exchanges: readonly string[];
|
|
99
|
+
roots: readonly string[];
|
|
100
|
+
rule: OptionTradeDateRule;
|
|
101
|
+
}[];
|
|
84
102
|
}
|
|
85
103
|
/**
|
|
86
104
|
* Chart exchange codes a US stock or ETF may carry (the post-flip vendor code, its enum alias and the
|
|
@@ -59,6 +59,19 @@ export const OPTION_VENUES = [
|
|
|
59
59
|
lane: 'governed',
|
|
60
60
|
plane: 'cme',
|
|
61
61
|
gated: false,
|
|
62
|
+
// The Globex trade date (17:00 Chicago opens the next); the crypto futures roll at 16:00, weekends on Monday.
|
|
63
|
+
tradeDateClock: {
|
|
64
|
+
zone: 'America/Chicago',
|
|
65
|
+
rule: { offsetHours: 7 },
|
|
66
|
+
rootFamilies: [
|
|
67
|
+
{
|
|
68
|
+
family: 'crypto',
|
|
69
|
+
exchanges: ['CME'],
|
|
70
|
+
roots: ['BTC', 'MBT', 'ETH', 'MET'],
|
|
71
|
+
rule: { offsetHours: 8, weekendsToMonday: true },
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
},
|
|
62
75
|
},
|
|
63
76
|
{
|
|
64
77
|
// US equity and index options: one consolidated venue over the OPRA gate, 15-minute delayed free
|
|
@@ -82,6 +95,7 @@ export const OPTION_VENUES = [
|
|
|
82
95
|
delayMinutes: OPRA_DELAY_MINUTES,
|
|
83
96
|
// The delayed tier re-reads the same quotes for 15 minutes; 3 s polls would only burn the reader.
|
|
84
97
|
chainPollMs: 15_000,
|
|
98
|
+
tradeDateClock: { zone: 'America/New_York', rule: { offsetHours: 0 } },
|
|
85
99
|
},
|
|
86
100
|
{
|
|
87
101
|
id: 'deribit',
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The two catalog venue groups behind the Spot and Perps presets of the multi-venue indicators, each venue with
|
|
3
|
-
* the quote its catalog pair is synthesized from
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* the quote its catalog pair is synthesized from: the coin, then the quote (`BTC` + `-USD` is Coinbase's `BTC-USD`,
|
|
4
|
+
* `BTC` + `-USDT-SWAP` OKX's perpetual `BTC-USDT-SWAP`); an empty quote is a pair spelled as the bare coin
|
|
5
|
+
* (Hyperliquid's `BTC`). ONE source of truth for every reader: the predefined catalog (`store/common.ts`
|
|
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.
|
|
6
9
|
*/
|
|
10
|
+
/**
|
|
11
|
+
* The deep perp venues, in the aggregated tools' order: every aggregated indicator reads them by default (the web
|
|
12
|
+
* app's AGGREGATED_DEFAULT_EXCHANGES is this list) and the Perps preset lists exactly them (its type below fails the
|
|
13
|
+
* build on a venue missing or extra). Deep only: OKEX_FUTURES (dated futures, a basis away from the perp price) and
|
|
14
|
+
* DERIBIT (coin-scoped profiles can carry option instruments) left 2026-08-07, BITFINEX_DERIVATIVES 2026-08-09 (its
|
|
15
|
+
* perp prints sat $60-80 off the deep venues with dust volume).
|
|
16
|
+
*/
|
|
17
|
+
export declare const DEEP_PERP_VENUES: readonly ["BYBIT", "BINANCE_FUTURES", "OKEX_SWAP", "HYPERLIQUID_FUTURES"];
|
|
18
|
+
/** A deep perp venue (DEEP_PERP_VENUES). */
|
|
19
|
+
export type DeepPerpVenue = (typeof DEEP_PERP_VENUES)[number];
|
|
7
20
|
export declare const SPOT_PRESET_VENUE_QUOTES: Readonly<Record<string, string>>;
|
|
21
|
+
/** The Perps preset: every deep perp venue, in catalog order (Binance first, the order the preset always had). */
|
|
8
22
|
export declare const PERP_PRESET_VENUE_QUOTES: Readonly<Record<string, string>>;
|
|
9
23
|
/** The catalog venue groups by preset. */
|
|
10
24
|
export declare const PRESET_VENUE_QUOTES: Readonly<Record<'SPOT' | 'PERP', Readonly<Record<string, string>>>>;
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The two catalog venue groups behind the Spot and Perps presets of the multi-venue indicators, each venue with
|
|
3
|
-
* the quote its catalog pair is synthesized from
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* the quote its catalog pair is synthesized from: the coin, then the quote (`BTC` + `-USD` is Coinbase's `BTC-USD`,
|
|
4
|
+
* `BTC` + `-USDT-SWAP` OKX's perpetual `BTC-USDT-SWAP`); an empty quote is a pair spelled as the bare coin
|
|
5
|
+
* (Hyperliquid's `BTC`). ONE source of truth for every reader: the predefined catalog (`store/common.ts`
|
|
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.
|
|
6
9
|
*/
|
|
10
|
+
/**
|
|
11
|
+
* The deep perp venues, in the aggregated tools' order: every aggregated indicator reads them by default (the web
|
|
12
|
+
* app's AGGREGATED_DEFAULT_EXCHANGES is this list) and the Perps preset lists exactly them (its type below fails the
|
|
13
|
+
* build on a venue missing or extra). Deep only: OKEX_FUTURES (dated futures, a basis away from the perp price) and
|
|
14
|
+
* DERIBIT (coin-scoped profiles can carry option instruments) left 2026-08-07, BITFINEX_DERIVATIVES 2026-08-09 (its
|
|
15
|
+
* perp prints sat $60-80 off the deep venues with dust volume).
|
|
16
|
+
*/
|
|
17
|
+
export const DEEP_PERP_VENUES = ['BYBIT', 'BINANCE_FUTURES', 'OKEX_SWAP', 'HYPERLIQUID_FUTURES'];
|
|
7
18
|
export const SPOT_PRESET_VENUE_QUOTES = Object.freeze({
|
|
8
19
|
BINANCE: 'USDT',
|
|
9
20
|
COINBASE: '-USD',
|
|
@@ -11,9 +22,12 @@ export const SPOT_PRESET_VENUE_QUOTES = Object.freeze({
|
|
|
11
22
|
OKEX: '-USDT',
|
|
12
23
|
BITSTAMP: 'USD',
|
|
13
24
|
});
|
|
25
|
+
/** The Perps preset: every deep perp venue, in catalog order (Binance first, the order the preset always had). */
|
|
14
26
|
export const PERP_PRESET_VENUE_QUOTES = Object.freeze({
|
|
15
27
|
BINANCE_FUTURES: 'USDT',
|
|
16
28
|
BYBIT: 'USDT',
|
|
29
|
+
OKEX_SWAP: '-USDT-SWAP',
|
|
30
|
+
HYPERLIQUID_FUTURES: '',
|
|
17
31
|
});
|
|
18
32
|
/** The catalog venue groups by preset. */
|
|
19
33
|
export const PRESET_VENUE_QUOTES = Object.freeze({
|
package/dist/host-env.d.ts
CHANGED
|
@@ -161,6 +161,21 @@ export interface WrunChartHostEnv {
|
|
|
161
161
|
ui: WrunHostUi;
|
|
162
162
|
/** 0.5.0. */
|
|
163
163
|
engine: WrunHostEngine;
|
|
164
|
+
/** Optional. Whether this host shows a wrun Indicator's tables in the Indicator's window (a cell of its own, the
|
|
165
|
+
* candle pane hidden). True: a normal cell leaves a `panel.table` child, any `place`, to the window that shows it
|
|
166
|
+
* (`tablesShownInWindow` decides per Indicator) and mounts it while no window does; a window cell mounts it as
|
|
167
|
+
* before (the child mount's rule, wrun-panel-mount.util `mountsOnCell`). Absent or false: the behaviour before the
|
|
168
|
+
* member, exactly, and `tablesShownInWindow` is never called. web: true. The phone app pins its own host copy and
|
|
169
|
+
* never sets it. */
|
|
170
|
+
windows?: boolean;
|
|
171
|
+
/** Optional, called only while `windows` is true. Whether the layout holds a window cell that shows this
|
|
172
|
+
* Indicator's tables (the same package on the same market, in another cell), so the normal cell at `chartIndex`
|
|
173
|
+
* leaves its tables to that window. Absent, or a call that throws, reads false: the normal cell mounts its tables,
|
|
174
|
+
* so an Indicator with no window, or one that cannot get one (replay, a full layout, a slot budget that refuses
|
|
175
|
+
* the window copy, an editor draft, a layout saved before windows), never loses them. The mount calls it at most
|
|
176
|
+
* once per pass, and only for a run that carries a table on a normal cell (wrunHostLeavesTablesToWindow). web:
|
|
177
|
+
* answered from the layout's window cells. */
|
|
178
|
+
tablesShownInWindow?: (chartIndex: number, overlayId: string) => boolean;
|
|
164
179
|
}
|
|
165
180
|
/** The mounted chart and the host's chart store, as package code reads and writes them. */
|
|
166
181
|
export interface WrunHostChart {
|
|
@@ -527,6 +542,15 @@ export declare function setWrunChartHostEnv(env: WrunChartHostEnv): void;
|
|
|
527
542
|
export declare function wrunChartHostEnv(): WrunChartHostEnv;
|
|
528
543
|
/** Whether the realm's env is set (an entry that may run twice sets it once). */
|
|
529
544
|
export declare function hasWrunChartHostEnv(): boolean;
|
|
545
|
+
/** Whether the realm's host shows tables in Indicator windows (`WrunChartHostEnv.windows`): false for a host that
|
|
546
|
+
* never set the member, and before the realm's entry set the env. Read when a mount runs, never at module load. */
|
|
547
|
+
export declare function wrunHostShowsWindows(): boolean;
|
|
548
|
+
/** Whether the normal cell at `chartIndex` leaves an Indicator's tables to the window that shows them: the host shows
|
|
549
|
+
* windows (`windows`) and its `tablesShownInWindow` answers true for this chart and Indicator. False for a host
|
|
550
|
+
* without windows (the port is never called), an absent port, a port that throws, an unset env and an undefined
|
|
551
|
+
* `chartIndex` (a mount that names no chart): the cell mounts the table, never a table that mounts nowhere. Read
|
|
552
|
+
* when a mount runs, never at module load. */
|
|
553
|
+
export declare function wrunHostLeavesTablesToWindow(chartIndex: number | undefined, overlayId: string): boolean;
|
|
530
554
|
/** The error a host's `sharedHost()` throws before its load. */
|
|
531
555
|
export declare function wrunChartHostUnloadedError(): Error;
|
|
532
556
|
/** The shared host now, or its load: `undefined` once the env's `sharedHost()` answers, else the env's
|
package/dist/host-env.js
CHANGED
|
@@ -14,6 +14,27 @@ export function wrunChartHostEnv() {
|
|
|
14
14
|
export function hasWrunChartHostEnv() {
|
|
15
15
|
return globalThis[ENV_KEY] !== undefined;
|
|
16
16
|
}
|
|
17
|
+
/** Whether the realm's host shows tables in Indicator windows (`WrunChartHostEnv.windows`): false for a host that
|
|
18
|
+
* never set the member, and before the realm's entry set the env. Read when a mount runs, never at module load. */
|
|
19
|
+
export function wrunHostShowsWindows() {
|
|
20
|
+
return hasWrunChartHostEnv() && wrunChartHostEnv().windows === true;
|
|
21
|
+
}
|
|
22
|
+
/** Whether the normal cell at `chartIndex` leaves an Indicator's tables to the window that shows them: the host shows
|
|
23
|
+
* windows (`windows`) and its `tablesShownInWindow` answers true for this chart and Indicator. False for a host
|
|
24
|
+
* without windows (the port is never called), an absent port, a port that throws, an unset env and an undefined
|
|
25
|
+
* `chartIndex` (a mount that names no chart): the cell mounts the table, never a table that mounts nowhere. Read
|
|
26
|
+
* when a mount runs, never at module load. */
|
|
27
|
+
export function wrunHostLeavesTablesToWindow(chartIndex, overlayId) {
|
|
28
|
+
if (chartIndex === undefined || !wrunHostShowsWindows())
|
|
29
|
+
return false;
|
|
30
|
+
const env = wrunChartHostEnv();
|
|
31
|
+
try {
|
|
32
|
+
return env.tablesShownInWindow?.(chartIndex, overlayId) === true;
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
17
38
|
/** The error a host's `sharedHost()` throws before its load. */
|
|
18
39
|
export function wrunChartHostUnloadedError() {
|
|
19
40
|
return new Error('wrun_chart_host_unloaded');
|
|
@@ -249,6 +249,14 @@ export interface WrunMainCandleRequestIdentity {
|
|
|
249
249
|
/** The chart's instrument category (an option contract's is OPTION). */
|
|
250
250
|
category?: number;
|
|
251
251
|
}
|
|
252
|
+
/** The identity a chart's mounted main rows were loaded for, the fields the package reads (web: ohlcv-cache.types.ts
|
|
253
|
+
* `MainDataRequestIdentity`; one way, web's carries the pool, session and adjustment fields too). */
|
|
254
|
+
export interface WrunLoadedMainIdentity {
|
|
255
|
+
readonly exchange: string | null;
|
|
256
|
+
readonly symbol: string | null;
|
|
257
|
+
readonly interval: string | null;
|
|
258
|
+
readonly transformations: string | null;
|
|
259
|
+
}
|
|
252
260
|
/** A lazy-load check's target range (web: utility/chart/viewport-pan-tracking.util.ts `LazyLoadTargetRange`). */
|
|
253
261
|
export interface WrunLazyLoadTargetRange {
|
|
254
262
|
startTs: number;
|
|
@@ -261,6 +269,10 @@ export interface WrunLazyLoadTargetRange {
|
|
|
261
269
|
export interface WrunDataFetchingModule {
|
|
262
270
|
runChartLazyLoadCheck(chartIndex: number, expectedTc?: WrunChartHandle, reason?: string, targetRange?: WrunLazyLoadTargetRange, trigger?: string): void;
|
|
263
271
|
isMainCandleFetchInFlight(chartIndex: number): boolean;
|
|
272
|
+
/** The identity the chart's mounted main rows were loaded for (web: `loadedMainIdentityOf`, the loaded-main identity
|
|
273
|
+
* stamp every commit, cache paint and restore writes), or null before any stamp. A switch repoints the metadata
|
|
274
|
+
* before the incoming market's rows mount, so a read that infers a market fact from the rows asks it first. */
|
|
275
|
+
loadedMainIdentityOf(chartIndex: number): WrunLoadedMainIdentity | null;
|
|
264
276
|
buildMainCandleBasePayload(identity: WrunMainCandleRequestIdentity): object;
|
|
265
277
|
resolveMainCandleSidedRequest(input: {
|
|
266
278
|
transformations: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,8 @@ export * from './market-data/venue-governed.util.js';
|
|
|
52
52
|
export * from './market-data/venues/index.js';
|
|
53
53
|
export * from './market-data/venues/opra.js';
|
|
54
54
|
export * from './replay/replayIndicatorRows.js';
|
|
55
|
+
export * from './settings-templates/footprint-rows.js';
|
|
56
|
+
export * from './settings-templates/form-rows.js';
|
|
55
57
|
export * from './settings-templates/frvp-fields.js';
|
|
56
58
|
export * from './settings-templates/index.js';
|
|
57
59
|
export * from './settings-templates/indicator-fields.js';
|
|
@@ -63,6 +65,7 @@ export * from './utility/chart/builtin-identity.util.js';
|
|
|
63
65
|
export * from './utility/chart/cache-alignment.util.js';
|
|
64
66
|
export * from './utility/chart/calendar-interval.util.js';
|
|
65
67
|
export * from './utility/chart/candle-bar-end.util.js';
|
|
68
|
+
export * from './utility/chart/candle-volume-unit.leaf.js';
|
|
66
69
|
export * from './utility/chart/chart-data-fetch-generation.util.js';
|
|
67
70
|
export * from './utility/chart/chart-load-phase.util.js';
|
|
68
71
|
export * from './utility/chart/chart-mount-epoch.util.js';
|
|
@@ -79,6 +82,9 @@ export * from './utility/chart/feed-interval.util.js';
|
|
|
79
82
|
export * from './utility/chart/fetch-dedupe-policy.util.js';
|
|
80
83
|
export * from './utility/chart/footprint-band.util.js';
|
|
81
84
|
export * from './utility/chart/footprint-cell-identity.util.js';
|
|
85
|
+
export * from './utility/chart/footprint-columns.util.js';
|
|
86
|
+
export * from './utility/chart/footprint-display-mode.util.js';
|
|
87
|
+
export * from './utility/chart/footprint-sierra-look.util.js';
|
|
82
88
|
export * from './utility/chart/footprint-tick-grid.util.js';
|
|
83
89
|
export * from './utility/chart/formula-calendar.util.js';
|
|
84
90
|
export * from './utility/chart/gesture-timing.leaf.js';
|
|
@@ -184,7 +190,10 @@ export * from './utility/intl-locale.util.js';
|
|
|
184
190
|
export * from './utility/market-events/earnings-scope.util.js';
|
|
185
191
|
export * from './utility/market-events/zoned-clock.util.js';
|
|
186
192
|
export * from './utility/number-format.util.js';
|
|
193
|
+
export * from './utility/options/cme-options-root.util.js';
|
|
194
|
+
export * from './utility/options/option-book.util.js';
|
|
187
195
|
export * from './utility/options/option-symbol.util.js';
|
|
196
|
+
export * from './utility/options/option-trade-date.util.js';
|
|
188
197
|
export * from './utility/options/option-trade-units.util.js';
|
|
189
198
|
export * from './utility/options/option-venue-disclosure.util.js';
|
|
190
199
|
export * from './utility/options/option-venue.util.js';
|
|
@@ -219,6 +228,7 @@ export * from './utility/wrun/sources/row-lanes/index.js';
|
|
|
219
228
|
export * from './utility/wrun/sources/row-lanes/option_contract_flow.js';
|
|
220
229
|
export * from './utility/wrun/sources/wrun-poll-lane.types.js';
|
|
221
230
|
export * from './utility/wrun/sources/wrun-poll-lanes.util.js';
|
|
231
|
+
export * from './utility/wrun/sources/wrun-row-lane-first-paint.util.js';
|
|
222
232
|
export * from './utility/wrun/sources/wrun-row-lane.types.js';
|
|
223
233
|
export * from './utility/wrun/sources/wrun-row-lanes.util.js';
|
|
224
234
|
export * from './utility/wrun/wrun-alert-outputs.registry.js';
|
|
@@ -243,6 +253,7 @@ export * from './utility/wrun/wrun-chart-names.util.js';
|
|
|
243
253
|
export * from './utility/wrun/wrun-chart-time.util.js';
|
|
244
254
|
export * from './utility/wrun/wrun-child-overlay-id.util.js';
|
|
245
255
|
export * from './utility/wrun/wrun-cloud-opra-stamp.util.js';
|
|
256
|
+
export * from './utility/wrun/wrun-cloud-record.leaf.js';
|
|
246
257
|
export * from './utility/wrun/wrun-cloud-record.util.js';
|
|
247
258
|
export * from './utility/wrun/wrun-coin-lane-live.util.js';
|
|
248
259
|
export * from './utility/wrun/wrun-color-facts.util.js';
|
|
@@ -293,6 +304,8 @@ export * from './utility/wrun/wrun-live-patch.util.js';
|
|
|
293
304
|
export * from './utility/wrun/wrun-live-tick.util.js';
|
|
294
305
|
export * from './utility/wrun/wrun-loading-owner.util.js';
|
|
295
306
|
export * from './utility/wrun/wrun-market-facts.util.js';
|
|
307
|
+
export * from './utility/wrun/wrun-market-size-defaults.leaf.js';
|
|
308
|
+
export * from './utility/wrun/wrun-market-size-defaults.util.js';
|
|
296
309
|
export * from './utility/wrun/wrun-memory-clamp.util.js';
|
|
297
310
|
export * from './utility/wrun/wrun-odds-template-market.util.js';
|
|
298
311
|
export * from './utility/wrun/wrun-official-scope.leaf.js';
|
|
@@ -303,6 +316,8 @@ export * from './utility/wrun/wrun-opra-stats.leaf.js';
|
|
|
303
316
|
export * from './utility/wrun/wrun-option-contract-flow.util.js';
|
|
304
317
|
export * from './utility/wrun/wrun-option-knobs.util.js';
|
|
305
318
|
export * from './utility/wrun/wrun-option-prints.util.js';
|
|
319
|
+
export * from './utility/wrun/wrun-option-strike-flow-lane.util.js';
|
|
320
|
+
export * from './utility/wrun/wrun-option-strike-flow.util.js';
|
|
306
321
|
export * from './utility/wrun/wrun-option-summary-lane.util.js';
|
|
307
322
|
export * from './utility/wrun/wrun-option-views.util.js';
|
|
308
323
|
export * from './utility/wrun/wrun-options-stop.util.js';
|
|
@@ -312,6 +327,7 @@ export * from './utility/wrun/wrun-overlay-lifecycle.util.js';
|
|
|
312
327
|
export * from './utility/wrun/wrun-overlay-metadata.util.js';
|
|
313
328
|
export * from './utility/wrun/wrun-overlay-recovery.util.js';
|
|
314
329
|
export * from './utility/wrun/wrun-overlay-result.util.js';
|
|
330
|
+
export * from './utility/wrun/wrun-pack-widths.leaf.js';
|
|
315
331
|
export * from './utility/wrun/wrun-pack.util.js';
|
|
316
332
|
export * from './utility/wrun/wrun-panel-mount.lazy.js';
|
|
317
333
|
export * from './utility/wrun/wrun-panel-style.lazy.js';
|
package/dist/index.js
CHANGED
|
@@ -55,6 +55,8 @@ export * from './market-data/venue-governed.util.js';
|
|
|
55
55
|
export * from './market-data/venues/index.js';
|
|
56
56
|
export * from './market-data/venues/opra.js';
|
|
57
57
|
export * from './replay/replayIndicatorRows.js';
|
|
58
|
+
export * from './settings-templates/footprint-rows.js';
|
|
59
|
+
export * from './settings-templates/form-rows.js';
|
|
58
60
|
export * from './settings-templates/frvp-fields.js';
|
|
59
61
|
export * from './settings-templates/index.js';
|
|
60
62
|
export * from './settings-templates/indicator-fields.js';
|
|
@@ -66,6 +68,7 @@ export * from './utility/chart/builtin-identity.util.js';
|
|
|
66
68
|
export * from './utility/chart/cache-alignment.util.js';
|
|
67
69
|
export * from './utility/chart/calendar-interval.util.js';
|
|
68
70
|
export * from './utility/chart/candle-bar-end.util.js';
|
|
71
|
+
export * from './utility/chart/candle-volume-unit.leaf.js';
|
|
69
72
|
export * from './utility/chart/chart-data-fetch-generation.util.js';
|
|
70
73
|
export * from './utility/chart/chart-load-phase.util.js';
|
|
71
74
|
export * from './utility/chart/chart-mount-epoch.util.js';
|
|
@@ -82,6 +85,9 @@ export * from './utility/chart/feed-interval.util.js';
|
|
|
82
85
|
export * from './utility/chart/fetch-dedupe-policy.util.js';
|
|
83
86
|
export * from './utility/chart/footprint-band.util.js';
|
|
84
87
|
export * from './utility/chart/footprint-cell-identity.util.js';
|
|
88
|
+
export * from './utility/chart/footprint-columns.util.js';
|
|
89
|
+
export * from './utility/chart/footprint-display-mode.util.js';
|
|
90
|
+
export * from './utility/chart/footprint-sierra-look.util.js';
|
|
85
91
|
export * from './utility/chart/footprint-tick-grid.util.js';
|
|
86
92
|
export * from './utility/chart/formula-calendar.util.js';
|
|
87
93
|
export * from './utility/chart/gesture-timing.leaf.js';
|
|
@@ -187,7 +193,10 @@ export * from './utility/intl-locale.util.js';
|
|
|
187
193
|
export * from './utility/market-events/earnings-scope.util.js';
|
|
188
194
|
export * from './utility/market-events/zoned-clock.util.js';
|
|
189
195
|
export * from './utility/number-format.util.js';
|
|
196
|
+
export * from './utility/options/cme-options-root.util.js';
|
|
197
|
+
export * from './utility/options/option-book.util.js';
|
|
190
198
|
export * from './utility/options/option-symbol.util.js';
|
|
199
|
+
export * from './utility/options/option-trade-date.util.js';
|
|
191
200
|
export * from './utility/options/option-trade-units.util.js';
|
|
192
201
|
export * from './utility/options/option-venue-disclosure.util.js';
|
|
193
202
|
export * from './utility/options/option-venue.util.js';
|
|
@@ -222,6 +231,7 @@ export * from './utility/wrun/sources/row-lanes/index.js';
|
|
|
222
231
|
export * from './utility/wrun/sources/row-lanes/option_contract_flow.js';
|
|
223
232
|
export * from './utility/wrun/sources/wrun-poll-lane.types.js';
|
|
224
233
|
export * from './utility/wrun/sources/wrun-poll-lanes.util.js';
|
|
234
|
+
export * from './utility/wrun/sources/wrun-row-lane-first-paint.util.js';
|
|
225
235
|
export * from './utility/wrun/sources/wrun-row-lane.types.js';
|
|
226
236
|
export * from './utility/wrun/sources/wrun-row-lanes.util.js';
|
|
227
237
|
export * from './utility/wrun/wrun-alert-outputs.registry.js';
|
|
@@ -246,6 +256,7 @@ export * from './utility/wrun/wrun-chart-names.util.js';
|
|
|
246
256
|
export * from './utility/wrun/wrun-chart-time.util.js';
|
|
247
257
|
export * from './utility/wrun/wrun-child-overlay-id.util.js';
|
|
248
258
|
export * from './utility/wrun/wrun-cloud-opra-stamp.util.js';
|
|
259
|
+
export * from './utility/wrun/wrun-cloud-record.leaf.js';
|
|
249
260
|
export * from './utility/wrun/wrun-cloud-record.util.js';
|
|
250
261
|
export * from './utility/wrun/wrun-coin-lane-live.util.js';
|
|
251
262
|
export * from './utility/wrun/wrun-color-facts.util.js';
|
|
@@ -296,6 +307,8 @@ export * from './utility/wrun/wrun-live-patch.util.js';
|
|
|
296
307
|
export * from './utility/wrun/wrun-live-tick.util.js';
|
|
297
308
|
export * from './utility/wrun/wrun-loading-owner.util.js';
|
|
298
309
|
export * from './utility/wrun/wrun-market-facts.util.js';
|
|
310
|
+
export * from './utility/wrun/wrun-market-size-defaults.leaf.js';
|
|
311
|
+
export * from './utility/wrun/wrun-market-size-defaults.util.js';
|
|
299
312
|
export * from './utility/wrun/wrun-memory-clamp.util.js';
|
|
300
313
|
export * from './utility/wrun/wrun-odds-template-market.util.js';
|
|
301
314
|
export * from './utility/wrun/wrun-official-scope.leaf.js';
|
|
@@ -306,6 +319,8 @@ export * from './utility/wrun/wrun-opra-stats.leaf.js';
|
|
|
306
319
|
export * from './utility/wrun/wrun-option-contract-flow.util.js';
|
|
307
320
|
export * from './utility/wrun/wrun-option-knobs.util.js';
|
|
308
321
|
export * from './utility/wrun/wrun-option-prints.util.js';
|
|
322
|
+
export * from './utility/wrun/wrun-option-strike-flow-lane.util.js';
|
|
323
|
+
export * from './utility/wrun/wrun-option-strike-flow.util.js';
|
|
309
324
|
export * from './utility/wrun/wrun-option-summary-lane.util.js';
|
|
310
325
|
export * from './utility/wrun/wrun-option-views.util.js';
|
|
311
326
|
export * from './utility/wrun/wrun-options-stop.util.js';
|
|
@@ -315,6 +330,7 @@ export * from './utility/wrun/wrun-overlay-lifecycle.util.js';
|
|
|
315
330
|
export * from './utility/wrun/wrun-overlay-metadata.util.js';
|
|
316
331
|
export * from './utility/wrun/wrun-overlay-recovery.util.js';
|
|
317
332
|
export * from './utility/wrun/wrun-overlay-result.util.js';
|
|
333
|
+
export * from './utility/wrun/wrun-pack-widths.leaf.js';
|
|
318
334
|
export * from './utility/wrun/wrun-pack.util.js';
|
|
319
335
|
export * from './utility/wrun/wrun-panel-mount.lazy.js';
|
|
320
336
|
export * from './utility/wrun/wrun-panel-style.lazy.js';
|
|
@@ -36,18 +36,37 @@ export declare function containsTpoWindowTime(timestamp: number, window: TpoSess
|
|
|
36
36
|
export declare function getTpoSessionStart(timestamp: number, sessionType: string, customTimeRange?: TpoTimeRange): number;
|
|
37
37
|
export declare function getNextTpoSessionStart(timestamp: number, sessionType: string, customTimeRange?: TpoTimeRange): number;
|
|
38
38
|
export declare function generateTpoLetters(blockIds: number[], _sessionType: string, _tpoBlockSizeMinutes: number): string[];
|
|
39
|
+
/**
|
|
40
|
+
* A custom session's place in the trading day: the day session (regular
|
|
41
|
+
* hours) or the evening session (electronic hours outside them). The
|
|
42
|
+
* day/evening preset writes it; a session the user drew has none and reads as
|
|
43
|
+
* 'custom' on its rows.
|
|
44
|
+
*/
|
|
45
|
+
export type TpoSessionRole = 'day' | 'evening';
|
|
46
|
+
/**
|
|
47
|
+
* The clock a custom-session set is written in: UTC, or New York wall time
|
|
48
|
+
* ('ET', daylight saving included). The gateway's custom-time-range path
|
|
49
|
+
* serves only these two (tsdb-gateway tpo_agg.go sessionCustomTimeRange
|
|
50
|
+
* degrades every other zone to plain UTC days), so Chicago is not offered.
|
|
51
|
+
*/
|
|
52
|
+
export type TpoCustomSessionsTimezone = 'UTC' | 'ET';
|
|
39
53
|
export interface TpoCustomSessionSegment {
|
|
40
54
|
label: string;
|
|
41
|
-
/** 'HH:MM'
|
|
55
|
+
/** 'HH:MM' on the set's clock (UTC unless the set names New York). */
|
|
42
56
|
start: string;
|
|
43
|
-
/** 'HH:MM'
|
|
44
|
-
* earlier than the start wraps past midnight into the
|
|
57
|
+
/** 'HH:MM' on the set's clock; '00:00' (or '24:00') as an end means
|
|
58
|
+
* midnight. An end earlier than the start wraps past midnight into the
|
|
59
|
+
* next day. */
|
|
45
60
|
end: string;
|
|
46
61
|
color: string;
|
|
62
|
+
/** Day or evening session (the day/evening preset); absent on a user session. */
|
|
63
|
+
role?: TpoSessionRole;
|
|
47
64
|
}
|
|
48
65
|
export interface TpoCustomSessionsSettings {
|
|
49
66
|
enabled?: boolean;
|
|
50
67
|
segments?: TpoCustomSessionSegment[];
|
|
68
|
+
/** Absent reads UTC: every set saved before the New York clock. */
|
|
69
|
+
timezone?: TpoCustomSessionsTimezone;
|
|
51
70
|
}
|
|
52
71
|
/** Editable starting template (Asia / London / New York / Close, UTC) — a
|
|
53
72
|
* default for the editor, never a hard-coded behavior. */
|
|
@@ -58,11 +77,15 @@ interface NormalizedTpoSegment extends TpoCustomSessionSegment {
|
|
|
58
77
|
* wraps past midnight ('22:00'-'11:00' is 1320..2100). */
|
|
59
78
|
endMinute: number;
|
|
60
79
|
index: number;
|
|
80
|
+
/** The set's clock (one per set) and its IANA zone. */
|
|
81
|
+
timezone: TpoCustomSessionsTimezone;
|
|
82
|
+
zone: string;
|
|
61
83
|
}
|
|
62
84
|
/** Validate + order user segments; null when the set is unusable (bad times,
|
|
63
85
|
* zero-length, or overlapping segments). Gaps between segments are allowed,
|
|
64
|
-
* and one segment may wrap past midnight.
|
|
65
|
-
|
|
86
|
+
* and one segment may wrap past midnight. `timezone` is the set's clock
|
|
87
|
+
* (absent: UTC); validation reads wall-clock minutes on either clock. */
|
|
88
|
+
export declare function normalizeTpoCustomSessionSegments(value: unknown, timezone?: unknown): NormalizedTpoSegment[] | null;
|
|
66
89
|
export declare function resolveTpoCustomSessionsSetting(settings: {
|
|
67
90
|
sessionType?: unknown;
|
|
68
91
|
customSessions?: TpoCustomSessionsSettings;
|
|
@@ -70,12 +93,17 @@ export declare function resolveTpoCustomSessionsSetting(settings: {
|
|
|
70
93
|
/**
|
|
71
94
|
* Fetch-alignment range for an active custom-session set, or undefined to keep
|
|
72
95
|
* plain UTC-day alignment. The fetch window must be cut where no session is
|
|
73
|
-
* open, or its edge returns a session fragment: that instant is
|
|
74
|
-
*
|
|
96
|
+
* open, or its edge returns a session fragment: that instant is the set's
|
|
97
|
+
* midnight (UTC: the plain-day path; New York: a New York midnight cycle)
|
|
98
|
+
* until a segment wraps past it, then it is the wrapped session's end, on the
|
|
99
|
+
* set's clock.
|
|
75
100
|
*/
|
|
76
101
|
export declare function resolveTpoCustomSessionsAlignmentRange(segments: readonly NormalizedTpoSegment[]): TpoTimeRange | undefined;
|
|
77
102
|
/** Data-affecting projection of the custom-session config (colors excluded):
|
|
78
|
-
* used for cache keys and refetch triggers. Empty string when inactive.
|
|
103
|
+
* used for cache keys and refetch triggers. Empty string when inactive. A
|
|
104
|
+
* UTC set without roles (every set saved before the New York clock) keys
|
|
105
|
+
* exactly as it always did, so its cached sessions stay warm; the clock and
|
|
106
|
+
* the roles join the key only where they are set (both change the rows). */
|
|
79
107
|
export declare function tpoCustomSessionsDataKey(settings: {
|
|
80
108
|
sessionType?: unknown;
|
|
81
109
|
customSessions?: TpoCustomSessionsSettings;
|
|
@@ -87,11 +115,12 @@ export interface TpoCustomSessionWindow {
|
|
|
87
115
|
label: string;
|
|
88
116
|
color: string;
|
|
89
117
|
}
|
|
90
|
-
/** The segment window containing `timestamp` (unix seconds
|
|
91
|
-
* the timestamp falls in a gap between segments.
|
|
118
|
+
/** The segment window containing `timestamp` (unix seconds), or null when
|
|
119
|
+
* the timestamp falls in a gap between segments. Segments read on their
|
|
120
|
+
* set's clock: UTC days, or New York days for a New York set. */
|
|
92
121
|
export declare function getTpoCustomSessionWindow(timestamp: number, segments: readonly NormalizedTpoSegment[]): TpoCustomSessionWindow | null;
|
|
93
122
|
/** The next segment start strictly after `timestamp` (same day or the first
|
|
94
|
-
* segment of the next day). */
|
|
123
|
+
* segment of the next day), on the set's clock. */
|
|
95
124
|
export declare function getNextTpoCustomSessionStart(timestamp: number, segments: readonly NormalizedTpoSegment[]): number;
|
|
96
125
|
/** Flat 4-stop ramps (one per segment) for titan's periodPalettes, so a
|
|
97
126
|
* period's paletteIndex — the segment index — colors the whole profile. */
|