@orangecharts/wrun-chart-host 0.17.0 β 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/constants/feature-flags.constants.d.ts +1 -6
- package/dist/constants/feature-flags.constants.js +17 -87
- package/dist/host-env.d.ts +2 -0
- package/dist/host-ports.types.d.ts +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/market-data/venues/index.d.ts +128 -143
- package/dist/market-data/venues/index.js +2 -2
- package/dist/market-data/venues/stocks.d.ts +1 -1
- package/dist/market-data/venues/stocks.js +2 -4
- package/dist/settings-templates/frvp-fields.js +28 -19
- package/dist/settings-templates/index.d.ts +25 -0
- package/dist/settings-templates/index.js +62 -2
- package/dist/settings-templates/indicator-fields.d.ts +35 -0
- package/dist/settings-templates/indicator-fields.js +261 -114
- package/dist/settings-templates/market-bound.d.ts +214 -0
- package/dist/settings-templates/market-bound.js +369 -0
- package/dist/utility/chart/cme-user-scripts-gate.util.d.ts +8 -8
- package/dist/utility/chart/cme-user-scripts-gate.util.js +8 -8
- package/dist/utility/chart/governed-lanes-gate.util.d.ts +6 -6
- package/dist/utility/chart/governed-lanes-gate.util.js +6 -6
- package/dist/utility/chart/index-otc.leaf.d.ts +13 -0
- package/dist/utility/chart/index-otc.leaf.js +18 -0
- package/dist/utility/chart/server-built-bars.util.d.ts +4 -0
- package/dist/utility/chart/server-built-bars.util.js +18 -0
- package/dist/utility/v2/gate-plane.util.d.ts +7 -0
- package/dist/utility/v2/gate-plane.util.js +6 -0
- package/dist/utility/wrun/wrun-dark-pool.util.js +1 -1
- package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +1 -1
- package/dist/utility/wrun/wrun-lane-warmup.util.d.ts +10 -0
- package/dist/utility/wrun/wrun-lane-warmup.util.js +32 -0
- package/dist/utility/wrun/wrun-live-intake.util.d.ts +3 -0
- package/dist/utility/wrun/wrun-live-intake.util.js +6 -0
- package/dist/utility/wrun/wrun-live-tick.util.js +5 -0
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +1 -1
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +3 -1
- package/dist/utility/wrun/wrun-overlay-run.util.js +128 -21
- package/dist/utility/wrun/wrun-replay-lane.util.js +3 -1
- package/dist/utility/wrun/wrun-twin-lookback.util.d.ts +4 -0
- package/dist/utility/wrun/wrun-twin-lookback.util.js +17 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -128,6 +128,8 @@ What each published version holds. A host installs a version with the peers of i
|
|
|
128
128
|
|
|
129
129
|
| Version | Peers | What changed |
|
|
130
130
|
| --- | --- | --- |
|
|
131
|
+
| 0.19.0 | `@orangecharts/indicator-kit` 0.121.0, `@orangecharts/orange-v2-pb-common` 12.86.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Same peers. Market-bound values in `settings-templates`: a value measured or typed on one market carries the market it belongs to. The heatmap scale leaf: `heatmapMarketKey`, `stampBoundKey`, `parseBoundKey`, `boundSignature`, `heatmapScaleSignature`, `stashBound`, `takeBound`, `BOUND_STASH_CAP` (row fields `settings.boundKey` and `settings.boundByMarket`). The typed threshold contract: each numeric field declares `quantity` (`relative`, `bound` or `amount`) and a kept bound one `keep`; `marketBoundKey(parts)` spells the key (exchange, unit, symbol, interval; a month is `1MO`); `reconcileMarketBound(type, settings, liveKey, options)` is the one decision at every door a row meets a market (its own key: unchanged; another key: the typed values are kept under their market and this market's remembered values or the caller's `defaults` come back; no stamp: trusted and stamped, or judged by `unkeyedAs`); `stampMarketBound` signs a user's edit; `unclassifiedNumericFields` feeds a host's classification guard. A host calls the reconcile at its mount, market switch, settings write and document doors, and the stamp on a user's edit; a script row is never settled. `templatePatch` writes a typed threshold only on the market it was saved on (`TemplateContext.boundKey`, kept in the bag as `boundMarketKey`); the schema version does not move, so a client before 0.19.0 lists that key as dropped and writes the threshold as before. The phone app's Big Trades (`BIG_TRADES`) gets a field table. |
|
|
132
|
+
| 0.18.0 | `@orangecharts/indicator-kit` 0.121.0, `@orangecharts/orange-v2-pb-common` 12.86.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Same peers. Four things a host acts on. The index and yield venue's official bars: the index leaf gains `INDEX_OTC_SERVER_BUILT_BARS_FROM_MS` and `barsAreServerBuilt(exchange, intervalMs)`, the root exports `chartBarsAreServerBuilt(market, intervalMs)` (`utility/chart/server-built-bars.util`, a formula leg counts), and the live intake refuses a live fold on such a chart; a host stops folding live prints and gap rows into a bar of one day or wider there and reads the newest bar again from the server. `FeatureFlag` loses `UsEquitiesFull`, `WrunConvergingPrefix`, `DrawingAlertOneClick`, `DrawingsUnderCandles`, `ChartDraftOrder` and `TypedServerFutures` (graduated on web) and gains `FuturesNinjaTraderDepth`. `MARKET_DATA_VENUES` now lists the US stocks venue beside OPRA (it left `FLAG_GATED_MARKET_DATA_VENUES`), so a host that holds stocks behind a switch of its own keeps that switch at its own door. The env gains the optional `isSignedIn()`: the licence and broker flags read as kill switches that default on for a signed-in session, and a host without the port reads every session as a guest. The package commits landed since 0.17.0 ride along (`git log 3ad609a1a4.. -- packages/wrun-chart-host` in the web repo). |
|
|
131
133
|
| 0.17.0 | `@orangecharts/indicator-kit` 0.121.0, `@orangecharts/orange-v2-pb-common` 12.86.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Three things a host acts on. The marks section's `text.place` gains `fit` (2: the size inside the mark where the full number fits, else beside it), `fit_short` (3: as `fit`, rounded inside when only the rounded number fits) and `fit_only` (4: as `fit_short`, never beside), and the mount refuses them by name on an engine whose marks pack is below level 3 (`fit`) or 4 (the other two); 0.16.0 refuses a section that names one ("Needs a newer chart"). The data-fetching loader view supplies `mainRowsLoadedFor(chartIndex, metadata)` in place of `loadedMainIdentityOf` (`WrunLoadedMainIdentity` leaves): the host answers whether the mounted main rows are that metadata's market, so a chart whose rows come from another market (a US stock on Trades) proves its candles. The market size defaults count the last trading day on the market's own clock (whole days it stood closed are no part of it), so the first candles after a weekend or a holiday no longer read as a whole day. The peers move with web: the kit from 0.119.0 to 0.121.0 and the protocol enums from 12.84.0 to 12.86.0 (the index and yield venue, `utility/chart/index-otc.leaf`, joins the public modules). The other package commits landed since 0.16.0 ride along (`git log f9aeda13fd.. -- packages/wrun-chart-host` in the web repo). |
|
|
132
134
|
| 0.16.0 | `@orangecharts/indicator-kit` 0.119.0, `@orangecharts/orange-v2-pb-common` 12.84.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | The peers web's /v3 step 3 moved to: the protocol enums peer from 12.82.0 to 12.84.0 and the kit peer from 0.116.1 (what npm's 0.15.0 declares) to 0.119.0. The package commits landed since 0.15.0 ride along (`git log 3bfefce876.. -- packages/wrun-chart-host` in the web repo). |
|
|
133
135
|
| 0.12.0 | `@orangecharts/indicator-kit` 0.107.0, `@orangecharts/orange-v2-pb-common` 12.80.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Contract F on `options_flow`: an input's `underlying` (`"auto"`, `"derived"`, a root in capitals or `"@<param>"`) reads that root's flow under scopes `ticker` and `prints` (`WRUN_UNDERLYING_CLASSES` gains `options_flow`). `utility/wrun/derived-roots.util` holds the planner step both planners call (`planWrunLaneUnderlying`, `WrunLaneUnderlyingPlan`, where the row lanes kept their own copy); `planWrunPollLanes` plans a root's input against the root's market and names the market in the instance's extras (`WRUN_POLL_LANE_UNDERLYING_FIELD`, `underlyingMarket`), so an `"auto"` input and a root's input are two instances, and an `"auto"` input's key is unchanged. The flow lane resolves one chart per run and market (a root's input never reads the chart's chain) and refuses a root beside a scope that spans underlyings by `wrun_option_knob_invalid` in om's words (`utility/wrun/wrun-options-flow-underlying.leaf`, a new module off the boot path: `WRUN_OPTIONS_FLOW_UNDERLYING_SCOPES`, `wrunOptionsFlowUnderlyingScopeTakes`), as `wrunUnderlyingKnob` does before any market. The knob's grammar (`wrunUnderlyingKnobOf`, `wrunUnderlyingSettingName`) moves to `utility/wrun/derived-roots.leaf`, re-exported by `derived-roots.util`, and the painted sheet writes a setting's pick into `underlying` (`laneWordWrites`, through `wrun-color-settings.util` `wrunSelectPickWord`, the read `resolveWrunUnderlyingSettingKnob` shares); availability (`wrunInputRequirements`) still judges every options read on the chart's own chain. `planWrunLaneUnderlying`, `wrunUnderlyingRootOf`, `wrunUnderlyingUnresolvedError` and `resolveWrunUnderlyingMarket` take the planner's fills last (optional, a celled input's `["empty"]` by default; `resolveWrunUnderlyingMarket` keeps `chartChain` fourth), so a refusal names the fill the input may declare. `wrunMetadataSourceCount` keys `options_flow` by its `underlying` too, and another root's print sums ride no print read's slot. The kit peer moves from 0.105.0 to 0.106.5 and the protocol enums peer from 12.78.0 to 12.79.0. The package commits landed since 0.11.0 ride along (`git log 099b00cf4f.. -- packages/wrun-chart-host` in the web repo). |
|
|
@@ -13,6 +13,7 @@ export declare const FeatureFlag: {
|
|
|
13
13
|
readonly FuturesByofHistory: "futures-byof-history";
|
|
14
14
|
readonly FuturesNinjaTrader: "futures-ninjatrader";
|
|
15
15
|
readonly FuturesNinjaTraderData: "futures-ninjatrader-data";
|
|
16
|
+
readonly FuturesNinjaTraderDepth: "futures-ninjatrader-depth";
|
|
16
17
|
readonly CoinbaseDerivativesExecution: "coinbase-derivatives-execution";
|
|
17
18
|
readonly BrokerVenueLaneRithmic: "broker-venue-lane-rithmic";
|
|
18
19
|
readonly BrokerVenueLaneNinjaTrader: "broker-venue-lane-ninjatrader";
|
|
@@ -35,7 +36,6 @@ export declare const FeatureFlag: {
|
|
|
35
36
|
readonly PrepaidPlusCn: "prepaid-plus-cn";
|
|
36
37
|
readonly ApiConsole: "api-console";
|
|
37
38
|
readonly Opra: "opra";
|
|
38
|
-
readonly UsEquitiesFull: "us-equities-full";
|
|
39
39
|
readonly CmeEngine: "cme-engine";
|
|
40
40
|
readonly IndicesOtc: "indices-otc";
|
|
41
41
|
readonly OpraUserScripts: "opra-user-scripts";
|
|
@@ -59,14 +59,9 @@ export declare const FeatureFlag: {
|
|
|
59
59
|
readonly StoreBuiltinRows: "store-builtin-rows";
|
|
60
60
|
readonly OptionsAccessPrewarm: "options-access-prewarm";
|
|
61
61
|
readonly WrunDownloadBudgetCut: "wrun-download-budget-cut";
|
|
62
|
-
readonly WrunConvergingPrefix: "wrun-converging-prefix";
|
|
63
62
|
readonly ScreenshotLegacyCapture: "screenshot-legacy-capture";
|
|
64
|
-
readonly DrawingAlertOneClick: "drawing-alert-one-click";
|
|
65
|
-
readonly DrawingsUnderCandles: "drawings-under-candles";
|
|
66
63
|
readonly TypedIntervalWidths: "typed-interval-widths";
|
|
67
|
-
readonly TypedServerFutures: "typed-server-futures";
|
|
68
64
|
readonly DrawToTrade: "draw-to-trade";
|
|
69
|
-
readonly ChartDraftOrder: "chart-draft-order";
|
|
70
65
|
readonly PaneSides: "pane-sides";
|
|
71
66
|
};
|
|
72
67
|
export type FeatureFlagKey = (typeof FeatureFlag)[keyof typeof FeatureFlag];
|
|
@@ -69,13 +69,13 @@ export const FeatureFlag = {
|
|
|
69
69
|
// - the newest gap of a delayed chart filled from Rithmic's history plant; historical data is
|
|
70
70
|
// outside what Rithmic has permitted (conformance Q13), so dark until it is.
|
|
71
71
|
FuturesByofHistory: 'futures-byof-history',
|
|
72
|
-
// NinjaTrader (Tradovate) as a futures broker on top of `futures-trading
|
|
73
|
-
//
|
|
74
|
-
// absent and guest all read off; the localStorage override lights it (`{"futures-ninjatrader": true}`).
|
|
72
|
+
// Kill switch of NinjaTrader (Tradovate) as a futures broker on top of `futures-trading`, default ON for a signed-in
|
|
73
|
+
// session (ninjatrader-flags.util isNinjaTraderOn).
|
|
75
74
|
FuturesNinjaTrader: 'futures-ninjatrader',
|
|
76
|
-
// The live quote
|
|
77
|
-
// book and history are OpenMarket's); dark until NinjaTrader confirms how a user's own subscription may show here.
|
|
75
|
+
// The live quote, candles and history from the user's own NinjaTrader market data, on top of `futures-ninjatrader`.
|
|
78
76
|
FuturesNinjaTraderData: 'futures-ninjatrader-data',
|
|
77
|
+
// The order book (depth) from the user's own NinjaTrader market data, on top of `futures-ninjatrader-data`.
|
|
78
|
+
FuturesNinjaTraderDepth: 'futures-ninjatrader-depth',
|
|
79
79
|
// Coinbase derivatives execution (the Deribit engine for non-US accounts; Kyle 2026-10-23 took it
|
|
80
80
|
// off the paper trading key to hide it). Its own key, read through `isOn` by `isCexVenueFlagOn`, in
|
|
81
81
|
// Lighter's shape: unminted, absent and guest all read off, internal roles included (no document,
|
|
@@ -84,11 +84,8 @@ export const FeatureFlag = {
|
|
|
84
84
|
// `{"coinbase-derivatives-execution": true}`). Mint it enabled to open it up. A key this browser
|
|
85
85
|
// already holds keeps trading, and keeps its card to manage it.
|
|
86
86
|
CoinbaseDerivativesExecution: 'coinbase-derivatives-execution',
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
// absent and guest all read off and no venue surface offers a broker yet. On, the broker trades through the
|
|
90
|
-
// shared venue surfaces (TRADING-UNIFY plan D13); the futures lane keeps riding `futures-trading` until then.
|
|
91
|
-
// The same string values as the package's `FeatureFlag` leaf, which the venue flag mirror hands to `isOn`.
|
|
87
|
+
// Kill switches of the host-served broker venues (trading-core's venue registry), default ON for a signed-in session
|
|
88
|
+
// (flag-answered.util killSwitchOn). The same strings as the package's `FeatureFlag` leaf.
|
|
92
89
|
BrokerVenueLaneRithmic: 'broker-venue-lane-rithmic',
|
|
93
90
|
BrokerVenueLaneNinjaTrader: 'broker-venue-lane-ninjatrader',
|
|
94
91
|
// Trading Volume (docs/features/trading-hub/trading-volume.md): the private page inside the trading
|
|
@@ -222,16 +219,6 @@ export const FeatureFlag = {
|
|
|
222
219
|
// affordance, contract charts and the purchase screens. Minted dark; the data tier itself is the
|
|
223
220
|
// OPRA gate's and never flips with this flag (employees stay delayed like everyone).
|
|
224
221
|
Opra: 'opra',
|
|
225
|
-
// The US stocks tape on the chart (docs/features/data/us-stocks-tape.md): order flow from the tape on a US stock
|
|
226
|
-
// chart (footprint, profiles, TPO, the CVD family read the ticker's tape market, utility/stocks/stock-tape-overlay.util),
|
|
227
|
-
// time and sales, the exchange list, the $19 add-on surfaces, and the price alert redirect onto the free lane
|
|
228
|
-
// (src/utility/alerts/stocks-alert-target.util.ts). Minted dark; read through `usEquitiesFullEnabled()` /
|
|
229
|
-
// `useUsEquitiesFull()` (src/utility/stocks/us-equities-flag.util.ts) with `isOn`, so unminted and absent read off;
|
|
230
|
-
// a guest reads the app's guest table (src/constants/guest-default-flags.constants.ts, on since the 2026-11-05
|
|
231
|
-
// launch). With it off nothing in the app changes. The data tier is the stocks gate's
|
|
232
|
-
// (905 s delayed for everyone today) and never flips with this flag. QA:
|
|
233
|
-
// `localStorage.setItem('kiyo.flag-overrides', '{"us-equities-full":true}')`.
|
|
234
|
-
UsEquitiesFull: 'us-equities-full',
|
|
235
222
|
// CME real-time on the venue-generic market-data flow (ENTITLEMENT-PLANE Program B; docs/features/market-data/
|
|
236
223
|
// plane.md, "CME on the plane"). While lit, the market-data registry lists the CME card
|
|
237
224
|
// (`marketDataVenueIsServed('cme')`), the one CME purchase overlay mounts as the generic flow on
|
|
@@ -242,11 +229,12 @@ export const FeatureFlag = {
|
|
|
242
229
|
CmeEngine: 'cme-engine',
|
|
243
230
|
// The index and yield venue (index-otc.leaf: stock indices, the dollar and volatility indices, US Treasury
|
|
244
231
|
// yields) in pickers, search, recents, popular rows and watchlist import: a flag-gated venue
|
|
245
|
-
// (exchange-visibility.util FLAG_GATED_EXCHANGES), read through `isOn`, so unminted
|
|
246
|
-
//
|
|
247
|
-
//
|
|
248
|
-
//
|
|
249
|
-
//
|
|
232
|
+
// (exchange-visibility.util FLAG_GATED_EXCHANGES), read through `isOn`, so unminted and absent read off. On for
|
|
233
|
+
// every signed-in account since 2026-11-17; a guest reads it from the web build's guest table
|
|
234
|
+
// (guest-default-flags.constants), since a server flip never reaches a guest. The dev/internal override lights it
|
|
235
|
+
// locally (`kiyo.flag-overrides` -> `{"indices-otc": true}`). It is also the venue's release door: the pinned
|
|
236
|
+
// enum names the exchange, and while this reads off the data worker keeps every read of the venue home
|
|
237
|
+
// (workers/series/unreleased-venues).
|
|
250
238
|
IndicesOtc: 'indices-otc',
|
|
251
239
|
// User-authored scripts on OPRA. The OPRA licence covers user-authored scripting over OPRA data, in the
|
|
252
240
|
// browser and on OpenMarket's servers (Kyle 2026-10-27, the signed set); this flag is the one product switch
|
|
@@ -266,31 +254,11 @@ export const FeatureFlag = {
|
|
|
266
254
|
// LAUNCHED 2026-10-27: the gate answers open on every build (opra-user-scripts-gate.util); this record
|
|
267
255
|
// is retired and read by nothing.
|
|
268
256
|
OpraUserScripts: 'opra-user-scripts',
|
|
269
|
-
//
|
|
270
|
-
//
|
|
271
|
-
// Indicator draft, a community package) reads CME futures data at the viewer's own entitlement, and on a CME chart
|
|
272
|
-
// its CME options chains (the chart's own, another CME root's through `underlying`): the display wall, the data
|
|
273
|
-
// wall and the engine policy lift for it on the CME plane only (kscript-venue-policy.util `isCmeUserScriptRun`, the
|
|
274
|
-
// one decision; a chain wall reads `mayReadCmeChain`), and only for a viewer the CME plane serves (signed in, not
|
|
275
|
-
// a guest, the CME data terms not blocked; delayed and real-time both count, the tier is the gate's). Both facts
|
|
276
|
-
// reach the worker-safe venue policy through cme-user-scripts-gate.util (closed in a worker, for a guest and before
|
|
277
|
-
// a reader is handed over). Refused whatever it says while `cme-lanes` is dark (reversed 2026-11-11 behind it):
|
|
278
|
-
// hosted (Cloud) runs, protected scripts, indicator alerts, strategies and backtests. Refused always: a CME
|
|
279
|
-
// chain read from a chart off CME, the
|
|
280
|
-
// export of a study's results (console copies, clips), agent reads (chart_read and the MCP withhold the stamped
|
|
281
|
-
// study) and the publish cover's capture of a chart that carries CME data. A move of the flag, the account, the
|
|
282
|
-
// terms, the served access or the session stops a running study in place and keeps its source and settings. To be
|
|
283
|
-
// minted dark (admin panel); read with `isOn` (absent, unloaded and guest read off) and never read server-side:
|
|
284
|
-
// the server lanes judge a user run's CME reads on their own. QA:
|
|
285
|
-
// `localStorage.setItem('kiyo.flag-overrides', '{"cme-user-scripts":true}')`.
|
|
257
|
+
// Kill switch of user-authored chart studies on CME, default ON for a signed-in session once the map answers
|
|
258
|
+
// (flag-answered.util licenceFlagOn; cme-user-scripts-gate.util holds the gate).
|
|
286
259
|
CmeUserScripts: 'cme-user-scripts',
|
|
287
|
-
//
|
|
288
|
-
//
|
|
289
|
-
// lanes as well as the browser: hosted (Cloud) runs, protected scripts, strategy testing and every alert kind. While
|
|
290
|
-
// it is dark (the default), the plane reads exactly as it did before the cutover. Each plane keeps its own decision
|
|
291
|
-
// under a lit flag: CME still needs the `cme-user-scripts` gate (the flag, sign-in, the CME data terms) on every
|
|
292
|
-
// lane. To be minted dark (admin panel); read with `isOn` (absent, unloaded and guest read off), never forced on in
|
|
293
|
-
// dev. QA: `localStorage.setItem('kiyo.flag-overrides', '{"cme-lanes":true}')`.
|
|
260
|
+
// Kill switches of the governed-lanes cutover, one per licensed plane, default ON for a signed-in session once the
|
|
261
|
+
// map answers (flag-answered.util licenceFlagOn, read through governed-lanes-gate.util).
|
|
294
262
|
CmeLanes: 'cme-lanes',
|
|
295
263
|
OpraLanes: 'opra-lanes',
|
|
296
264
|
StocksLanes: 'stocks-lanes',
|
|
@@ -401,60 +369,22 @@ export const FeatureFlag = {
|
|
|
401
369
|
// dark until Kyle switches it on; the dev/internal localStorage override lights it for a rig (`kiyo.flag-overrides` ->
|
|
402
370
|
// `{"wrun-download-budget-cut": true}`).
|
|
403
371
|
WrunDownloadBudgetCut: 'wrun-download-budget-cut',
|
|
404
|
-
// Converging warm-up stamps (STAMPS round A, docs/features/kscript/wrun/wrun-browser-runtime.md, "Exact warm-up
|
|
405
|
-
// sessions"): a package whose sheet carries `history_warmup` of kind `converges` (a recursion the build's gate
|
|
406
|
-
// certified to agree within 1e-6 once W accepted inputs ran) gets a hidden head of W candles on every run, and its
|
|
407
|
-
// pan-back pages land as prefix runs whose overlap proof compares the row outputs within that tolerance. Off, a
|
|
408
|
-
// converging stamp of any shape reads as no stamp before anything else reads it (no head, no session, no admission:
|
|
409
|
-
// the run is today's; the capability ring line alone names the kind). Read through `isOn` (the overlay run's
|
|
410
|
-
// `wrunConvergingPrefixOn`): unminted, absent and guest all read off, so production ships it dark until round B
|
|
411
|
-
// proves it on a rig; the dev/internal localStorage override lights it for a rig (`kiyo.flag-overrides` ->
|
|
412
|
-
// `{"wrun-converging-prefix": true}`).
|
|
413
|
-
WrunConvergingPrefix: 'wrun-converging-prefix',
|
|
414
372
|
// Kill switch of the in-place chart picture (src/utility/screenshot.util.ts captureLayered): ON sends every capture
|
|
415
373
|
// through the legacy html2canvas path (a clone of the whole page, seconds of frozen page). Unminted and absent read
|
|
416
374
|
// off, so production takes the in-place engine; mint it ON only to roll the engine back without a deploy.
|
|
417
375
|
ScreenshotLegacyCapture: 'screenshot-legacy-capture',
|
|
418
|
-
// One-click alerts on drawings (docs/features/alerts/alert-targets.md, "One click"): the quick bar's labelled
|
|
419
|
-
// Alert pill arms at once with an Undo toast, its on state opens the Once / Every time / Turn off menu, the
|
|
420
|
-
// right-click row, the ink chip and Alt+A arm the same way, and the engine decor bridge runs. Off: the bell
|
|
421
|
-
// icon opens the alert dialog as before. Read through `isOn` (useDrawingAlertOneClickFlag): unminted, absent
|
|
422
|
-
// and guest read off, so production ships it dark; `kiyo.flag-overrides` -> `{"drawing-alert-one-click": true}`.
|
|
423
|
-
DrawingAlertOneClick: 'drawing-alert-one-click',
|
|
424
|
-
// Send behind candles / Bring in front of candles (docs/features/object-tree/persistence-and-undo.md): the row of
|
|
425
|
-
// the right-click Order submenu, the quick bar's "..." menu and the Objects row menu, and the action they share
|
|
426
|
-
// (drawing-selection-actions setDrawingsUnderCandles). Off: no row and no write; a drawing already saved under the
|
|
427
|
-
// candles still paints there (the engine reads `settings.underCandles`). Read through `isOn`
|
|
428
|
-
// (useDrawingsUnderCandlesFlag): unminted, absent and guest read off, so production ships it dark;
|
|
429
|
-
// `kiyo.flag-overrides` -> `{"drawings-under-candles": true}`.
|
|
430
|
-
DrawingsUnderCandles: 'drawings-under-candles',
|
|
431
376
|
// Typed candle widths (docs/features/chart/custom-intervals.md): a width off the ladder that divides a UTC day
|
|
432
377
|
// (`20m`, `90m`, typed-width.leaf), asked as CUSTOM plus `barSeconds`. Read through `isOn` (typedWidthsFlagOn) and
|
|
433
378
|
// mirrored to the data worker (typed-width-reads.util): unminted, absent and guest read off, so production ships it
|
|
434
379
|
// dark and a saved typed width is held on the rung at or below; `kiyo.flag-overrides` ->
|
|
435
380
|
// `{"typed-interval-widths": true}`.
|
|
436
381
|
TypedIntervalWidths: 'typed-interval-widths',
|
|
437
|
-
// Server-built candle history of custom sizes on the CME family (docs/features/chart/custom-intervals.md,
|
|
438
|
-
// "Server-built history on the CME family"): the main candle history of a size under a day on CME, CBOT, NYMEX or
|
|
439
|
-
// COMEX is asked of the gateway (CUSTOM plus `barSeconds`) instead of being folded in the data worker; the live
|
|
440
|
-
// candle and every indicator fold stay on the app build. Read through `isOn` (typedHistoryFlagOn) and mirrored to
|
|
441
|
-
// the data worker as its session bit (typed-width-reads.util `publishTypedSessionReads`): unminted, absent and guest
|
|
442
|
-
// read off, so production ships it dark and every chart loads through the app build; `kiyo.flag-overrides` ->
|
|
443
|
-
// `{"typed-server-futures": true}`.
|
|
444
|
-
TypedServerFutures: 'typed-server-futures',
|
|
445
382
|
// Draw to trade (docs/features/hyperliquid/ticket.md, "Draw to trade"): the trade ticket's Draw button (one stroke on
|
|
446
383
|
// the chart fills side, take profit and stop loss, sized by Risk), the Position drawing's "Send to trade panel" on
|
|
447
384
|
// the quick bar and Super Search's "Draw a trade". Off: none of them shows. Read through `isOn`:
|
|
448
385
|
// unminted, absent and guest read off, so production ships it dark; `kiyo.flag-overrides` ->
|
|
449
386
|
// `{"draw-to-trade": true}`.
|
|
450
387
|
DrawToTrade: 'draw-to-trade',
|
|
451
|
-
// Draft orders from the chart menu's price card (docs/features/hyperliquid/quick-trade-pill.md, "The draft on the
|
|
452
|
-
// chart"): where the card's order would open the Confirm order dialog (the order answer of Ask before sending is on
|
|
453
|
-
// for its lane), the press draws the order as a draft line instead (one pill, drag to move, TP and SL handles, the
|
|
454
|
-
// pill sends, the x drops it). Off: the card asks and sends exactly as before. Read through `isOn`
|
|
455
|
-
// (chart-menu-order.util `chartDraftOrderOn`): unminted, absent and guest read off, so production ships it dark;
|
|
456
|
-
// `kiyo.flag-overrides` -> `{"chart-draft-order": true}`.
|
|
457
|
-
ChartDraftOrder: 'chart-draft-order',
|
|
458
388
|
// Pane on any side (PANES-ANY-SIDE-PLAN.md): an indicator's pane on the chart, left, right, top or bottom. Every
|
|
459
389
|
// surface reads ONE predicate, this key AND the built-in engine's `paneSides` capability
|
|
460
390
|
// (pane-sides-engine.util paneSidesActive). Read through `isOn`: unminted, absent and guest read off, so production
|
package/dist/host-env.d.ts
CHANGED
|
@@ -465,6 +465,8 @@ export interface WrunHostUser {
|
|
|
465
465
|
isDarkMode(): unknown;
|
|
466
466
|
/** 0.5.0, run. web: kscriptStandInAccount() (utility/chart/kscript-standin-account.util.ts:16; reads store/jwt). */
|
|
467
467
|
standInAccount(): string;
|
|
468
|
+
/** Next release, optional, run. web: isSignedInSession(); a host without it reads every session as a guest. */
|
|
469
|
+
isSignedIn?(): boolean;
|
|
468
470
|
/** 0.5.0, run. web: technicalScriptThemeLines(isDarkMode, themeMode, chartMetadata)
|
|
469
471
|
* (utility/chart/builtin-script-theme-palette.util.ts:370; executor :9616). */
|
|
470
472
|
themeLines(isDarkMode: boolean | undefined, themeMode: string | undefined, chartMetadata: unknown): string[];
|
|
@@ -247,9 +247,19 @@ export interface WrunTwinOriginalLookback {
|
|
|
247
247
|
/** The first twin version whose run holds the original's depth, null when every version does. */
|
|
248
248
|
fromTwinVersion: string | null;
|
|
249
249
|
}
|
|
250
|
+
/** A twin whose totals restart each trade date while select `param` holds `value` and one of the `rows` switches is on. */
|
|
251
|
+
export interface WrunTwinTradeDateAnchor {
|
|
252
|
+
param: string;
|
|
253
|
+
value: number;
|
|
254
|
+
rows: readonly string[];
|
|
255
|
+
/** The first twin version that restarts on `time.trade_date`, null when every version does. */
|
|
256
|
+
fromTwinVersion: string | null;
|
|
257
|
+
}
|
|
250
258
|
/** Loader view of the twins roster (web: wrun-twins.util.ts). */
|
|
251
259
|
export interface WrunTwinsRosterModule {
|
|
252
260
|
wrunTwinOriginalLookbackInfo(packageName: string, version: string): WrunTwinOriginalLookback | null;
|
|
261
|
+
/** Optional: a host without it keeps the planner's warm-up start on every run. */
|
|
262
|
+
wrunTwinTradeDateAnchorInfo?(packageName: string, version: string): WrunTwinTradeDateAnchor | null;
|
|
253
263
|
}
|
|
254
264
|
/** Loader view of the pane budget ranking (web: utility/chart/pane-budget-ranking.util.ts). */
|
|
255
265
|
export interface WrunPaneBudgetRankingModule {
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export * from './settings-templates/form-rows.js';
|
|
|
62
62
|
export * from './settings-templates/frvp-fields.js';
|
|
63
63
|
export * from './settings-templates/index.js';
|
|
64
64
|
export * from './settings-templates/indicator-fields.js';
|
|
65
|
+
export * from './settings-templates/market-bound.js';
|
|
65
66
|
export * from './settings-templates/tool-rules.js';
|
|
66
67
|
export * from './settings-templates/tool-tables.generated.js';
|
|
67
68
|
export * from './utility/auth/server-clock.util.js';
|
|
@@ -179,6 +180,7 @@ export * from './utility/chart/quote-perp.leaf.js';
|
|
|
179
180
|
export * from './utility/chart/rth-session.util.js';
|
|
180
181
|
export * from './utility/chart/run-interval-unservable.leaf.js';
|
|
181
182
|
export * from './utility/chart/run-interval-warmup.leaf.js';
|
|
183
|
+
export * from './utility/chart/server-built-bars.util.js';
|
|
182
184
|
export * from './utility/chart/session-interval.util.js';
|
|
183
185
|
export * from './utility/chart/technical-script-legend-value.util.js';
|
|
184
186
|
export * from './utility/chart/titan-constants.pin.js';
|
package/dist/index.js
CHANGED
|
@@ -65,6 +65,7 @@ export * from './settings-templates/form-rows.js';
|
|
|
65
65
|
export * from './settings-templates/frvp-fields.js';
|
|
66
66
|
export * from './settings-templates/index.js';
|
|
67
67
|
export * from './settings-templates/indicator-fields.js';
|
|
68
|
+
export * from './settings-templates/market-bound.js';
|
|
68
69
|
export * from './settings-templates/tool-rules.js';
|
|
69
70
|
export * from './settings-templates/tool-tables.generated.js';
|
|
70
71
|
export * from './utility/auth/server-clock.util.js';
|
|
@@ -183,6 +184,7 @@ export * from './utility/chart/quote-perp.leaf.js';
|
|
|
183
184
|
export * from './utility/chart/rth-session.util.js';
|
|
184
185
|
export * from './utility/chart/run-interval-unservable.leaf.js';
|
|
185
186
|
export * from './utility/chart/run-interval-warmup.leaf.js';
|
|
187
|
+
export * from './utility/chart/server-built-bars.util.js';
|
|
186
188
|
export * from './utility/chart/session-interval.util.js';
|
|
187
189
|
export * from './utility/chart/technical-script-legend-value.util.js';
|
|
188
190
|
export * from './utility/chart/titan-constants.pin.js';
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The market-data venue registry: every venue card the frontend serves (docs/features/market-data/plane.md). A new
|
|
3
|
-
* exchange deal adds its card here; the purchase flow, the payment return and the openers find a venue by its key or
|
|
4
|
-
* by a payment line item, never by a venue literal. The finders over an explicit list (`findVenueBy*`) are the same
|
|
5
|
-
* rules the bound finders apply to the registry, for a spec that serves a venue of its own beside the registered ones.
|
|
6
|
-
*
|
|
7
|
-
* Two lists. `MARKET_DATA_VENUES` is served in every session. `FLAG_GATED_MARKET_DATA_VENUES` is carried dark: a card
|
|
8
|
-
* there is listed only while its `flagKey` reads on, through ONE selector (`marketDataVenueIsServed`), so a venue whose
|
|
9
|
-
* generic flow replaces a flow of its own (CME behind `cme-engine`), or whose add-on is not released yet (US stocks
|
|
10
|
-
* behind `us-equities-full`), changes nothing while its flag is off: the bound finders never return it, the payment
|
|
11
|
-
* return never takes its venue branch and its doors stay shut. The flag reader is the app's, published into this
|
|
12
|
-
* dependency-free module when the app's market-data store module loads
|
|
13
|
-
* (`publishMarketDataVenueFlags`); unpublished, a read that throws (no store in this realm: a worker, a bare spec) or a
|
|
14
|
-
* card with no flag all read dark.
|
|
15
|
-
*/
|
|
16
1
|
import type { FeatureFlagKey } from '../../constants/feature-flags.constants.js';
|
|
17
2
|
import type { MarketDataVenue } from '../venue.js';
|
|
18
3
|
/** The venues served in every session. */
|
|
@@ -85,133 +70,6 @@ export declare const MARKET_DATA_VENUES: readonly [{
|
|
|
85
70
|
readonly storeId: "opraRealtime";
|
|
86
71
|
readonly surfaces: readonly ["chain-page-subtitle", "chain-price-pill", "chain-table-marker", "chain-strike-preview", "chain-index-notice", "flow-tape", "terminal-options-tab", "options-overlay-legends", "indicator-legend-notes", "contract-chart-delay-chip", "contract-chart-delay-card", "chart-source-line", "watchlist-panel", "watchlist-cell-tooltip", "board", "purchase-live-price"];
|
|
87
72
|
readonly contractRevision: "2026-10-28.1";
|
|
88
|
-
}];
|
|
89
|
-
/** The venues carried dark: each is listed only while its `flagKey` reads on (`marketDataVenueIsServed`). */
|
|
90
|
-
export declare const FLAG_GATED_MARKET_DATA_VENUES: readonly [{
|
|
91
|
-
readonly key: "cme";
|
|
92
|
-
readonly displayName: "CME Group";
|
|
93
|
-
readonly productGroups: readonly ["CME", "CBOT", "NYMEX", "COMEX"];
|
|
94
|
-
readonly basePath: "/market-data/cme";
|
|
95
|
-
readonly products: readonly [{
|
|
96
|
-
readonly name: "cme_bundle_l1_1m";
|
|
97
|
-
readonly key: "l1";
|
|
98
|
-
readonly plan: "p1";
|
|
99
|
-
readonly level: 1;
|
|
100
|
-
readonly classifications: readonly ["non_professional"];
|
|
101
|
-
readonly interval: "1m";
|
|
102
|
-
readonly priceUsd: 7;
|
|
103
|
-
readonly planCard: {
|
|
104
|
-
readonly name: "Real-time L1";
|
|
105
|
-
readonly level: "LEVEL 1";
|
|
106
|
-
readonly market: "CME";
|
|
107
|
-
readonly markets: readonly ["CME", "CBOT", "COMEX", "NYMEX"];
|
|
108
|
-
readonly region: "πΊπΈ USA";
|
|
109
|
-
readonly descPath: "subscription.l1Desc";
|
|
110
|
-
};
|
|
111
|
-
}, {
|
|
112
|
-
readonly name: "cme_bundle_depth_1m";
|
|
113
|
-
readonly key: "depth";
|
|
114
|
-
readonly plan: "p2";
|
|
115
|
-
readonly level: 2;
|
|
116
|
-
readonly classifications: readonly ["non_professional"];
|
|
117
|
-
readonly interval: "1m";
|
|
118
|
-
readonly priceUsd: 45;
|
|
119
|
-
readonly planCard: {
|
|
120
|
-
readonly name: "Real-time depth";
|
|
121
|
-
readonly level: "LEVEL 2";
|
|
122
|
-
readonly market: "CME";
|
|
123
|
-
readonly markets: readonly ["CME", "CBOT", "COMEX", "NYMEX"];
|
|
124
|
-
readonly region: "πΊπΈ USA";
|
|
125
|
-
readonly descPath: "subscription.depthDesc";
|
|
126
|
-
};
|
|
127
|
-
}, {
|
|
128
|
-
readonly name: "cme_bundle_depth_pro_1m";
|
|
129
|
-
readonly key: "depth_pro";
|
|
130
|
-
readonly plan: "p2";
|
|
131
|
-
readonly level: 3;
|
|
132
|
-
readonly classifications: readonly ["professional"];
|
|
133
|
-
readonly interval: "1m";
|
|
134
|
-
readonly priceUsd: 538;
|
|
135
|
-
readonly planCard: {
|
|
136
|
-
readonly name: "Real-time depth";
|
|
137
|
-
readonly level: "LEVEL 2";
|
|
138
|
-
readonly market: "CME";
|
|
139
|
-
readonly markets: readonly ["CME", "CBOT", "COMEX", "NYMEX"];
|
|
140
|
-
readonly region: "πΊπΈ USA";
|
|
141
|
-
readonly descPath: "subscription.depthDesc";
|
|
142
|
-
};
|
|
143
|
-
}];
|
|
144
|
-
readonly planCard: {
|
|
145
|
-
readonly name: "Real-time L1";
|
|
146
|
-
readonly level: "LEVEL 1";
|
|
147
|
-
readonly market: "CME";
|
|
148
|
-
readonly markets: readonly ["CME", "CBOT", "COMEX", "NYMEX"];
|
|
149
|
-
readonly region: "πΊπΈ USA";
|
|
150
|
-
readonly descPath: "subscription.l1Desc";
|
|
151
|
-
};
|
|
152
|
-
readonly paymentItemPrefix: "cme_";
|
|
153
|
-
readonly professionalPolicy: "sell";
|
|
154
|
-
readonly internalRolePolicy: "report";
|
|
155
|
-
readonly payFirst: false;
|
|
156
|
-
readonly planChanges: {
|
|
157
|
-
readonly downgradeAtPeriodEnd: true;
|
|
158
|
-
readonly prorateUpgrades: true;
|
|
159
|
-
};
|
|
160
|
-
readonly offers: true;
|
|
161
|
-
readonly questionnaire: {
|
|
162
|
-
readonly formVersion: "v1";
|
|
163
|
-
readonly acceptedFormVersions: readonly ["v1", ""];
|
|
164
|
-
readonly presentation: "two-way";
|
|
165
|
-
readonly questions: readonly [{
|
|
166
|
-
readonly id: "individual_own_account";
|
|
167
|
-
readonly qualifying: true;
|
|
168
|
-
}, {
|
|
169
|
-
readonly id: "personal_non_business_use";
|
|
170
|
-
readonly qualifying: true;
|
|
171
|
-
}, {
|
|
172
|
-
readonly id: "not_registered_or_qualified";
|
|
173
|
-
readonly qualifying: true;
|
|
174
|
-
}, {
|
|
175
|
-
readonly id: "not_advisor_or_asset_manager";
|
|
176
|
-
readonly qualifying: true;
|
|
177
|
-
}, {
|
|
178
|
-
readonly id: "no_redistribution_or_business_application";
|
|
179
|
-
readonly qualifying: true;
|
|
180
|
-
}];
|
|
181
|
-
readonly groups: readonly [];
|
|
182
|
-
readonly addendum: {
|
|
183
|
-
readonly id: "ila_subscriber_addendum_2026_06_accepted";
|
|
184
|
-
readonly version: "v1";
|
|
185
|
-
};
|
|
186
|
-
readonly postalAddress: {
|
|
187
|
-
readonly answerId: "postal_address";
|
|
188
|
-
};
|
|
189
|
-
readonly identityFields: readonly ["legalName", "employer", "occupation", "country", "address"];
|
|
190
|
-
readonly identityLimits: {
|
|
191
|
-
readonly legalName: 200;
|
|
192
|
-
readonly employer: 200;
|
|
193
|
-
readonly occupation: 200;
|
|
194
|
-
readonly country: 2;
|
|
195
|
-
readonly address: 300;
|
|
196
|
-
};
|
|
197
|
-
readonly validityDays: 365;
|
|
198
|
-
readonly renewalWindowDays: 30;
|
|
199
|
-
};
|
|
200
|
-
readonly agreement: {
|
|
201
|
-
readonly recordedAs: "registration";
|
|
202
|
-
readonly version: "cme-data-terms-v1";
|
|
203
|
-
readonly url: "/api/v1/market-data/cme/agreement";
|
|
204
|
-
readonly delayedRequiresAcceptance: true;
|
|
205
|
-
};
|
|
206
|
-
readonly delayMinutes: 10;
|
|
207
|
-
readonly disclosure: {
|
|
208
|
-
readonly kind: "translated";
|
|
209
|
-
};
|
|
210
|
-
readonly flagKey: "cme-engine";
|
|
211
|
-
readonly i18nNamespace: "cmeRealtimeData";
|
|
212
|
-
readonly storeId: "cmeMarketData";
|
|
213
|
-
readonly surfaces: readonly ["contract-chart-delay-chip", "contract-chart-delay-card", "chart-source-line", "watchlist-panel", "watchlist-cell-tooltip", "purchase-live-price"];
|
|
214
|
-
readonly contractRevision: "2026-10-23.1";
|
|
215
73
|
}, {
|
|
216
74
|
readonly key: "stocks";
|
|
217
75
|
readonly displayName: "US stocks";
|
|
@@ -336,12 +194,139 @@ export declare const FLAG_GATED_MARKET_DATA_VENUES: readonly [{
|
|
|
336
194
|
readonly disclosure: {
|
|
337
195
|
readonly kind: "verbatim";
|
|
338
196
|
};
|
|
339
|
-
readonly flagKey:
|
|
197
|
+
readonly flagKey: null;
|
|
340
198
|
readonly i18nNamespace: "stocksRealtimeData";
|
|
341
199
|
readonly storeId: "stocksRealtime";
|
|
342
200
|
readonly surfaces: readonly ["contract-chart-delay-chip", "chart-source-line"];
|
|
343
201
|
readonly contractRevision: "2026-11-08.1";
|
|
344
202
|
}];
|
|
203
|
+
/** The venues carried dark: each is listed only while its `flagKey` reads on (`marketDataVenueIsServed`). */
|
|
204
|
+
export declare const FLAG_GATED_MARKET_DATA_VENUES: readonly [{
|
|
205
|
+
readonly key: "cme";
|
|
206
|
+
readonly displayName: "CME Group";
|
|
207
|
+
readonly productGroups: readonly ["CME", "CBOT", "NYMEX", "COMEX"];
|
|
208
|
+
readonly basePath: "/market-data/cme";
|
|
209
|
+
readonly products: readonly [{
|
|
210
|
+
readonly name: "cme_bundle_l1_1m";
|
|
211
|
+
readonly key: "l1";
|
|
212
|
+
readonly plan: "p1";
|
|
213
|
+
readonly level: 1;
|
|
214
|
+
readonly classifications: readonly ["non_professional"];
|
|
215
|
+
readonly interval: "1m";
|
|
216
|
+
readonly priceUsd: 7;
|
|
217
|
+
readonly planCard: {
|
|
218
|
+
readonly name: "Real-time L1";
|
|
219
|
+
readonly level: "LEVEL 1";
|
|
220
|
+
readonly market: "CME";
|
|
221
|
+
readonly markets: readonly ["CME", "CBOT", "COMEX", "NYMEX"];
|
|
222
|
+
readonly region: "πΊπΈ USA";
|
|
223
|
+
readonly descPath: "subscription.l1Desc";
|
|
224
|
+
};
|
|
225
|
+
}, {
|
|
226
|
+
readonly name: "cme_bundle_depth_1m";
|
|
227
|
+
readonly key: "depth";
|
|
228
|
+
readonly plan: "p2";
|
|
229
|
+
readonly level: 2;
|
|
230
|
+
readonly classifications: readonly ["non_professional"];
|
|
231
|
+
readonly interval: "1m";
|
|
232
|
+
readonly priceUsd: 45;
|
|
233
|
+
readonly planCard: {
|
|
234
|
+
readonly name: "Real-time depth";
|
|
235
|
+
readonly level: "LEVEL 2";
|
|
236
|
+
readonly market: "CME";
|
|
237
|
+
readonly markets: readonly ["CME", "CBOT", "COMEX", "NYMEX"];
|
|
238
|
+
readonly region: "πΊπΈ USA";
|
|
239
|
+
readonly descPath: "subscription.depthDesc";
|
|
240
|
+
};
|
|
241
|
+
}, {
|
|
242
|
+
readonly name: "cme_bundle_depth_pro_1m";
|
|
243
|
+
readonly key: "depth_pro";
|
|
244
|
+
readonly plan: "p2";
|
|
245
|
+
readonly level: 3;
|
|
246
|
+
readonly classifications: readonly ["professional"];
|
|
247
|
+
readonly interval: "1m";
|
|
248
|
+
readonly priceUsd: 538;
|
|
249
|
+
readonly planCard: {
|
|
250
|
+
readonly name: "Real-time depth";
|
|
251
|
+
readonly level: "LEVEL 2";
|
|
252
|
+
readonly market: "CME";
|
|
253
|
+
readonly markets: readonly ["CME", "CBOT", "COMEX", "NYMEX"];
|
|
254
|
+
readonly region: "πΊπΈ USA";
|
|
255
|
+
readonly descPath: "subscription.depthDesc";
|
|
256
|
+
};
|
|
257
|
+
}];
|
|
258
|
+
readonly planCard: {
|
|
259
|
+
readonly name: "Real-time L1";
|
|
260
|
+
readonly level: "LEVEL 1";
|
|
261
|
+
readonly market: "CME";
|
|
262
|
+
readonly markets: readonly ["CME", "CBOT", "COMEX", "NYMEX"];
|
|
263
|
+
readonly region: "πΊπΈ USA";
|
|
264
|
+
readonly descPath: "subscription.l1Desc";
|
|
265
|
+
};
|
|
266
|
+
readonly paymentItemPrefix: "cme_";
|
|
267
|
+
readonly professionalPolicy: "sell";
|
|
268
|
+
readonly internalRolePolicy: "report";
|
|
269
|
+
readonly payFirst: false;
|
|
270
|
+
readonly planChanges: {
|
|
271
|
+
readonly downgradeAtPeriodEnd: true;
|
|
272
|
+
readonly prorateUpgrades: true;
|
|
273
|
+
};
|
|
274
|
+
readonly offers: true;
|
|
275
|
+
readonly questionnaire: {
|
|
276
|
+
readonly formVersion: "v1";
|
|
277
|
+
readonly acceptedFormVersions: readonly ["v1", ""];
|
|
278
|
+
readonly presentation: "two-way";
|
|
279
|
+
readonly questions: readonly [{
|
|
280
|
+
readonly id: "individual_own_account";
|
|
281
|
+
readonly qualifying: true;
|
|
282
|
+
}, {
|
|
283
|
+
readonly id: "personal_non_business_use";
|
|
284
|
+
readonly qualifying: true;
|
|
285
|
+
}, {
|
|
286
|
+
readonly id: "not_registered_or_qualified";
|
|
287
|
+
readonly qualifying: true;
|
|
288
|
+
}, {
|
|
289
|
+
readonly id: "not_advisor_or_asset_manager";
|
|
290
|
+
readonly qualifying: true;
|
|
291
|
+
}, {
|
|
292
|
+
readonly id: "no_redistribution_or_business_application";
|
|
293
|
+
readonly qualifying: true;
|
|
294
|
+
}];
|
|
295
|
+
readonly groups: readonly [];
|
|
296
|
+
readonly addendum: {
|
|
297
|
+
readonly id: "ila_subscriber_addendum_2026_06_accepted";
|
|
298
|
+
readonly version: "v1";
|
|
299
|
+
};
|
|
300
|
+
readonly postalAddress: {
|
|
301
|
+
readonly answerId: "postal_address";
|
|
302
|
+
};
|
|
303
|
+
readonly identityFields: readonly ["legalName", "employer", "occupation", "country", "address"];
|
|
304
|
+
readonly identityLimits: {
|
|
305
|
+
readonly legalName: 200;
|
|
306
|
+
readonly employer: 200;
|
|
307
|
+
readonly occupation: 200;
|
|
308
|
+
readonly country: 2;
|
|
309
|
+
readonly address: 300;
|
|
310
|
+
};
|
|
311
|
+
readonly validityDays: 365;
|
|
312
|
+
readonly renewalWindowDays: 30;
|
|
313
|
+
};
|
|
314
|
+
readonly agreement: {
|
|
315
|
+
readonly recordedAs: "registration";
|
|
316
|
+
readonly version: "cme-data-terms-v1";
|
|
317
|
+
readonly url: "/api/v1/market-data/cme/agreement";
|
|
318
|
+
readonly delayedRequiresAcceptance: true;
|
|
319
|
+
};
|
|
320
|
+
readonly delayMinutes: 10;
|
|
321
|
+
readonly disclosure: {
|
|
322
|
+
readonly kind: "translated";
|
|
323
|
+
};
|
|
324
|
+
readonly flagKey: "cme-engine";
|
|
325
|
+
readonly i18nNamespace: "cmeRealtimeData";
|
|
326
|
+
readonly storeId: "cmeMarketData";
|
|
327
|
+
readonly surfaces: readonly ["contract-chart-delay-chip", "contract-chart-delay-card", "chart-source-line", "watchlist-panel", "watchlist-cell-tooltip", "purchase-live-price"];
|
|
328
|
+
readonly contractRevision: "2026-10-23.1";
|
|
329
|
+
}];
|
|
345
330
|
type CarriedMarketDataVenue = (typeof MARKET_DATA_VENUES)[number] | (typeof FLAG_GATED_MARKET_DATA_VENUES)[number];
|
|
346
331
|
/** A registered venue's key: a card the build carries, served now or dark. */
|
|
347
332
|
export type MarketDataVenueKey = CarriedMarketDataVenue['key'];
|
|
@@ -2,9 +2,9 @@ import { CME_VENUE } from './cme.js';
|
|
|
2
2
|
import { OPRA_VENUE } from './opra.js';
|
|
3
3
|
import { STOCKS_VENUE } from './stocks.js';
|
|
4
4
|
/** The venues served in every session. */
|
|
5
|
-
export const MARKET_DATA_VENUES = [OPRA_VENUE];
|
|
5
|
+
export const MARKET_DATA_VENUES = [OPRA_VENUE, STOCKS_VENUE];
|
|
6
6
|
/** The venues carried dark: each is listed only while its `flagKey` reads on (`marketDataVenueIsServed`). */
|
|
7
|
-
export const FLAG_GATED_MARKET_DATA_VENUES = [CME_VENUE
|
|
7
|
+
export const FLAG_GATED_MARKET_DATA_VENUES = [CME_VENUE];
|
|
8
8
|
/** Every card the build carries, served or dark, for the card lookup (`requireVenueByKey`). */
|
|
9
9
|
const CARRIED_VENUES = [...MARKET_DATA_VENUES, ...FLAG_GATED_MARKET_DATA_VENUES];
|
|
10
10
|
/** The venue in `venues` with this key, or null. */
|
|
@@ -122,7 +122,7 @@ export declare const STOCKS_VENUE: {
|
|
|
122
122
|
readonly disclosure: {
|
|
123
123
|
readonly kind: "verbatim";
|
|
124
124
|
};
|
|
125
|
-
readonly flagKey:
|
|
125
|
+
readonly flagKey: null;
|
|
126
126
|
readonly i18nNamespace: "stocksRealtimeData";
|
|
127
127
|
readonly storeId: "stocksRealtime";
|
|
128
128
|
readonly surfaces: readonly ["contract-chart-delay-chip", "chart-source-line"];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The US stocks venue card (the consolidated tape: CTA for Tapes A and B, UTP for Tape C): the frontend descriptor of
|
|
3
3
|
* the $19 "Real-time US stocks" add-on on the venue-generic market-data plane (docs/features/market-data/plane.md, "US
|
|
4
|
-
* stocks on the plane").
|
|
5
|
-
* (`FLAG_GATED_MARKET_DATA_VENUES`, `marketDataVenueIsServed`), so with the flag off nothing in the app reads it.
|
|
4
|
+
* stocks on the plane"). Served in every session (`MARKET_DATA_VENUES`).
|
|
6
5
|
*
|
|
7
6
|
* OPRA's policy set (pay first, one product, a professional refused, staff on operator test grants: contract revision
|
|
8
7
|
* 2026-11-08.1, no attestation, in no report), with what the tape adds: two agreements, one per set of product
|
|
@@ -17,7 +16,6 @@
|
|
|
17
16
|
* export replaces it) and the gate's release mirror (`gate-mirror.copy.yaml` beside the spec) by
|
|
18
17
|
* tests/packages/wrun-chart-host/market-data/venues/stocks.contract.spec.ts.
|
|
19
18
|
*/
|
|
20
|
-
import { FeatureFlag } from '../../constants/feature-flags.constants.js';
|
|
21
19
|
import { STOCKS_GOVERNED_EXCHANGES, STOCKS_TAPE_OF_EXCHANGE } from '../../interfaces/stocks-realtime.interface.js';
|
|
22
20
|
// The product groups are the frontend's tape codes (the gate's wire names are the listing venues: the service and the
|
|
23
21
|
// gate mirror's copy name those, STOCKS_TAPE_WIRE_EXCHANGE maps them). CTA licenses Tapes A and B, UTP Tape C.
|
|
@@ -111,7 +109,7 @@ export const STOCKS_VENUE = {
|
|
|
111
109
|
// The CTA Delayed Market Data Policy's exact statement: STOCKS_DELAY_STATEMENT in
|
|
112
110
|
// constants/stocks-compliance.constants.ts ("Delayed 15 minutes").
|
|
113
111
|
disclosure: { kind: 'verbatim' },
|
|
114
|
-
flagKey:
|
|
112
|
+
flagKey: null,
|
|
115
113
|
i18nNamespace: 'stocksRealtimeData',
|
|
116
114
|
storeId: 'stocksRealtime',
|
|
117
115
|
// For now the delay statement shows on a tape chart's delay chip and its source line only.
|