@orangecharts/wrun-chart-host 0.16.0 → 0.18.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 +2 -9
- package/dist/constants/feature-flags.constants.js +20 -98
- package/dist/constants/feature-limits.constants.d.ts +2 -2
- package/dist/constants/feature-limits.constants.js +8 -6
- package/dist/constants/marketCapabilities.constants.d.ts +9 -0
- package/dist/constants/marketCapabilities.constants.js +39 -11
- package/dist/constants/typed-indicator-source.leaf.d.ts +7 -0
- package/dist/constants/typed-indicator-source.leaf.js +47 -0
- package/dist/constants/typed-session-history-venue.leaf.d.ts +7 -0
- package/dist/constants/typed-session-history-venue.leaf.js +9 -0
- package/dist/constants/typed-width-fold.leaf.d.ts +7 -5
- package/dist/constants/typed-width-fold.leaf.js +7 -5
- package/dist/host-env.d.ts +2 -0
- package/dist/host-ports.types.d.ts +12 -17
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/interfaces/kscript-diagnostics.interface.d.ts +7 -0
- package/dist/interfaces/wrun-runtime.interface.d.ts +6 -3
- 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/indicator-fields.js +5 -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-mode-admission.util.js +9 -1
- package/dist/utility/chart/index-mode.util.d.ts +2 -2
- package/dist/utility/chart/index-mode.util.js +12 -6
- package/dist/utility/chart/index-otc.leaf.d.ts +50 -0
- package/dist/utility/chart/index-otc.leaf.js +86 -0
- package/dist/utility/chart/kscript-provenance-keys.util.js +6 -0
- package/dist/utility/chart/market-session-schedule.util.d.ts +19 -0
- package/dist/utility/chart/market-session-schedule.util.js +2 -1
- package/dist/utility/chart/marketKind.util.d.ts +10 -5
- package/dist/utility/chart/marketKind.util.js +39 -5
- package/dist/utility/chart/mixed-mode.util.d.ts +1 -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/market-events/market-events.util.js +3 -0
- package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +2 -0
- package/dist/utility/v2/v2-enums.leaf.js +2 -0
- package/dist/utility/wrun/sources/row-lanes/dark_pool.d.ts +2 -1
- package/dist/utility/wrun/sources/row-lanes/dark_pool.js +4 -3
- package/dist/utility/wrun/wrun-batched-marks.util.d.ts +6 -2
- package/dist/utility/wrun/wrun-batched-marks.util.js +37 -6
- package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +15 -8
- package/dist/utility/wrun/wrun-chart-market-facts.util.js +11 -8
- package/dist/utility/wrun/wrun-cme-root-specs.util.d.ts +10 -6
- package/dist/utility/wrun/wrun-cme-root-specs.util.js +19 -13
- 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-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 -1
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +40 -6
- package/dist/utility/wrun/wrun-market-size-defaults.util.d.ts +2 -2
- package/dist/utility/wrun/wrun-market-size-defaults.util.js +10 -8
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +3 -0
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-overlay-run.util.js +50 -14
- package/dist/utility/wrun/wrun-pin-venues.util.d.ts +3 -2
- package/dist/utility/wrun/wrun-pin-venues.util.js +6 -3
- package/dist/utility/wrun/wrun-run-health.util.js +1 -1
- package/dist/utility/wrun/wrun-session-composition.util.d.ts +3 -2
- package/dist/utility/wrun/wrun-session-composition.util.js +3 -2
- package/package.json +5 -5
|
@@ -2633,14 +2633,17 @@ export interface WrunMarksSection extends WrunBatchedSectionCommon {
|
|
|
2633
2633
|
opacity_pct?: number;
|
|
2634
2634
|
/** The caption: mode 0 Off, 1 Big bubbles (the largest a bar), 2 All (default 1, `compact`, 22 px); its
|
|
2635
2635
|
* format a word of WRUN_BATCHED_NUMBER_FORMATS (`usd` dollars, `units` the market's own unit: Big Trades
|
|
2636
|
-
* 0.7.0's Size shown as paints one of the two); its place 0 `inside` the mark (default)
|
|
2637
|
-
* Trades looks round)
|
|
2636
|
+
* 0.7.0's Size shown as paints one of the two); its place 0 `inside` the mark (default), 1 `beside` it (the Big
|
|
2637
|
+
* Trades looks round), 2 `fit`, inside the mark where it fits, else beside it (the size inside round; Big
|
|
2638
|
+
* Trades 0.13.0's Size position paints `beside` or `fit`), 3 `fit_short`, as `fit` with the rounded number
|
|
2639
|
+
* inside when only it fits, or 4 `fit_only`, as `fit_short` but never beside (the four size positions round;
|
|
2640
|
+
* Big Trades 0.14.0's Size position paints `beside`, `fit_short`, `fit_only` or `fit`). */
|
|
2638
2641
|
text?: {
|
|
2639
2642
|
mode?: number;
|
|
2640
2643
|
field?: 'qty';
|
|
2641
2644
|
format?: WrunBatchedNumberFormat;
|
|
2642
2645
|
min_px?: number;
|
|
2643
|
-
place?: number | 'inside' | 'beside';
|
|
2646
|
+
place?: number | 'inside' | 'beside' | 'fit' | 'fit_short' | 'fit_only';
|
|
2644
2647
|
};
|
|
2645
2648
|
}
|
|
2646
2649
|
/** One `spans[]` entry (`plot.spans`): per bar, `slots` records of `[top, bottom, length, meta]`
|
|
@@ -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.
|
|
@@ -926,6 +926,11 @@ const ORDERBOOK_PROFILE_FIELDS = [
|
|
|
926
926
|
*/
|
|
927
927
|
const TPO_FIELDS = [
|
|
928
928
|
['blockShape', { lanes: ['row', 'template', 'default'], unset: 'wide' }],
|
|
929
|
+
// The Volume only pick turned the volume on (updateTpoBlockDisplaySettings): it travels with the display and the
|
|
930
|
+
// volume switch it explains. A capture from a TPO that holds none writes false, so it never keeps a stale true.
|
|
931
|
+
// A template saved before 2026-11-17 holds no value and cannot say who turned its volume on: applied over a TPO
|
|
932
|
+
// whose own pick turned the volume on, that TPO's note stands (review 2026-11-17, left as is: no reader can tell).
|
|
933
|
+
['volumeOnlyTurnedVolumeOn', { lanes: ['row', 'template', 'default'], unset: false }],
|
|
929
934
|
];
|
|
930
935
|
/** The VRVP own-window scope rows (see INDICATOR_TYPE_FIELDS below). */
|
|
931
936
|
const VISIBLE_RANGE_PROFILE_FIELDS = [
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
* stays worker-safe and store-free, so the main thread hands it readers instead.
|
|
6
6
|
*
|
|
7
7
|
* The gate is open only while BOTH of its facts answer `true`, each read live on every call:
|
|
8
|
-
* - The flag. The flags store registers
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* it reaches every surface that reads `isOn`: the walls and the surfaces never disagree.
|
|
8
|
+
* - The flag. The flags store registers `licenceFlagOn` as the fallback when it is created, read live: an explicit
|
|
9
|
+
* override answers, so the dev and internal `kiyo.flag-overrides` lens reaches the walls before the map lands, and
|
|
10
|
+
* once the map has answered an absent or archived record reads on. A published reader (a spec's) answers over it.
|
|
12
11
|
* - The viewer's CME entitlement. The web hands its `viewerMayReadCme()` reader: signed in, not a guest, the CME data
|
|
13
12
|
* terms not blocked. Delayed and real-time access both count: the tier a read rides is the gate plane's, decided per
|
|
14
13
|
* socket, never this answer's.
|
|
@@ -26,8 +25,8 @@
|
|
|
26
25
|
* its answer (titan-charts' dataFetch result, the script engine's result, the wrun run's `isCurrent`) compares the
|
|
27
26
|
* token and drops an answer from a previous authorisation context, so a late answer never lands after access changed.
|
|
28
27
|
* A missing token is never current. The epoch is main-thread state: a worker's copy of this module never sees a bump,
|
|
29
|
-
* so a worker carries the captured token back and never judges it. Publishing a reader never moves the epoch
|
|
30
|
-
*
|
|
28
|
+
* so a worker carries the captured token back and never judges it. Publishing a reader never moves the epoch: only the
|
|
29
|
+
* watcher bumps it, on a move it saw.
|
|
31
30
|
*
|
|
32
31
|
* The stopped-study register (`markCmeStudyStopped`, `clearCmeStudyStopped`, `cmeStudyStopReason`,
|
|
33
32
|
* `isCmeStudyStopped`): the studies the lifecycle watcher stopped in place when the gate closed (the viewer's access
|
|
@@ -57,9 +56,10 @@ export declare function cmeStudyRemountStash(chartIndex: number, overlayId: stri
|
|
|
57
56
|
export declare function cmeStudyStopReason(chartIndex: number, overlayId: string): CmeStudyStopReason | undefined;
|
|
58
57
|
/** Whether the lifecycle stopped this study and nothing has mounted it again since. */
|
|
59
58
|
export declare function isCmeStudyStopped(chartIndex: number, overlayId: string): boolean;
|
|
60
|
-
/** Called by
|
|
59
|
+
/** Called by specs (and a host that hands its own reader); null unpublishes. */
|
|
61
60
|
export declare function publishCmeUserScriptsFlag(next: (() => boolean) | null): void;
|
|
62
|
-
/** Called by the flags store when it is created:
|
|
61
|
+
/** Called by the flags store when it is created: `licenceFlagOn`, which reads an absent or archived record as on once
|
|
62
|
+
* the map has answered; read whenever nothing is published. */
|
|
63
63
|
export declare function setCmeUserScriptsFlagFallback(next: (() => boolean) | null): void;
|
|
64
64
|
/** Called by the web with its `viewerMayReadCme()` reader (signed in, not a guest, CME data terms not blocked); null
|
|
65
65
|
* unregisters, and no reader reads closed. */
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
* stays worker-safe and store-free, so the main thread hands it readers instead.
|
|
6
6
|
*
|
|
7
7
|
* The gate is open only while BOTH of its facts answer `true`, each read live on every call:
|
|
8
|
-
* - The flag. The flags store registers
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* it reaches every surface that reads `isOn`: the walls and the surfaces never disagree.
|
|
8
|
+
* - The flag. The flags store registers `licenceFlagOn` as the fallback when it is created, read live: an explicit
|
|
9
|
+
* override answers, so the dev and internal `kiyo.flag-overrides` lens reaches the walls before the map lands, and
|
|
10
|
+
* once the map has answered an absent or archived record reads on. A published reader (a spec's) answers over it.
|
|
12
11
|
* - The viewer's CME entitlement. The web hands its `viewerMayReadCme()` reader: signed in, not a guest, the CME data
|
|
13
12
|
* terms not blocked. Delayed and real-time access both count: the tier a read rides is the gate plane's, decided per
|
|
14
13
|
* socket, never this answer's.
|
|
@@ -26,8 +25,8 @@
|
|
|
26
25
|
* its answer (titan-charts' dataFetch result, the script engine's result, the wrun run's `isCurrent`) compares the
|
|
27
26
|
* token and drops an answer from a previous authorisation context, so a late answer never lands after access changed.
|
|
28
27
|
* A missing token is never current. The epoch is main-thread state: a worker's copy of this module never sees a bump,
|
|
29
|
-
* so a worker carries the captured token back and never judges it. Publishing a reader never moves the epoch
|
|
30
|
-
*
|
|
28
|
+
* so a worker carries the captured token back and never judges it. Publishing a reader never moves the epoch: only the
|
|
29
|
+
* watcher bumps it, on a move it saw.
|
|
31
30
|
*
|
|
32
31
|
* The stopped-study register (`markCmeStudyStopped`, `clearCmeStudyStopped`, `cmeStudyStopReason`,
|
|
33
32
|
* `isCmeStudyStopped`): the studies the lifecycle watcher stopped in place when the gate closed (the viewer's access
|
|
@@ -87,11 +86,12 @@ export function cmeStudyStopReason(chartIndex, overlayId) {
|
|
|
87
86
|
export function isCmeStudyStopped(chartIndex, overlayId) {
|
|
88
87
|
return stopped.has(stoppedKey(chartIndex, overlayId));
|
|
89
88
|
}
|
|
90
|
-
/** Called by
|
|
89
|
+
/** Called by specs (and a host that hands its own reader); null unpublishes. */
|
|
91
90
|
export function publishCmeUserScriptsFlag(next) {
|
|
92
91
|
published = next;
|
|
93
92
|
}
|
|
94
|
-
/** Called by the flags store when it is created:
|
|
93
|
+
/** Called by the flags store when it is created: `licenceFlagOn`, which reads an absent or archived record as on once
|
|
94
|
+
* the map has answered; read whenever nothing is published. */
|
|
95
95
|
export function setCmeUserScriptsFlagFallback(next) {
|
|
96
96
|
fallback = next;
|
|
97
97
|
}
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Store-free on purpose, the shape of the `cme-user-scripts` gate leaf (cme-user-scripts-gate.util): the venue policy
|
|
8
8
|
* stays worker-safe, so the main thread hands it a reader instead. Its one import is the fallback reader's seat
|
|
9
|
-
* (governed-lanes-reader-seat, itself dependency-free), which the flags store fills with
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* (governed-lanes-reader-seat, itself dependency-free), which the flags store fills with `licenceFlagOn` when it is
|
|
10
|
+
* evaluated: an explicit override answers, and once the map has answered an absent or archived record reads on. A
|
|
11
|
+
* published reader (a spec's, or a host that hands one) answers over the seat's.
|
|
12
12
|
*
|
|
13
13
|
* Fail closed everywhere: no reader (a worker, a spec without a store), a reader that throws, a reader that answers
|
|
14
|
-
* anything but `true`, an
|
|
15
|
-
* not name all read dark. The flags never open a lane on their own: each plane's own decision still holds
|
|
16
|
-
* plane keeps the `cme-user-scripts` gate: the flag, sign-in and the CME data terms).
|
|
14
|
+
* anything but `true`, an unanswered or failed map or a guest (`licenceFlagOn` reads those off) and a plane this
|
|
15
|
+
* module does not name all read dark. The flags never open a lane on their own: each plane's own decision still holds
|
|
16
|
+
* (the CME plane keeps the `cme-user-scripts` gate: the flag, sign-in and the CME data terms).
|
|
17
17
|
*/
|
|
18
18
|
/** A licensed plane the cutover opens to the server lanes. */
|
|
19
19
|
export type GovernedLanePlane = 'cme' | 'opra' | 'stocks';
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Store-free on purpose, the shape of the `cme-user-scripts` gate leaf (cme-user-scripts-gate.util): the venue policy
|
|
8
8
|
* stays worker-safe, so the main thread hands it a reader instead. Its one import is the fallback reader's seat
|
|
9
|
-
* (governed-lanes-reader-seat, itself dependency-free), which the flags store fills with
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* (governed-lanes-reader-seat, itself dependency-free), which the flags store fills with `licenceFlagOn` when it is
|
|
10
|
+
* evaluated: an explicit override answers, and once the map has answered an absent or archived record reads on. A
|
|
11
|
+
* published reader (a spec's, or a host that hands one) answers over the seat's.
|
|
12
12
|
*
|
|
13
13
|
* Fail closed everywhere: no reader (a worker, a spec without a store), a reader that throws, a reader that answers
|
|
14
|
-
* anything but `true`, an
|
|
15
|
-
* not name all read dark. The flags never open a lane on their own: each plane's own decision still holds
|
|
16
|
-
* plane keeps the `cme-user-scripts` gate: the flag, sign-in and the CME data terms).
|
|
14
|
+
* anything but `true`, an unanswered or failed map or a guest (`licenceFlagOn` reads those off) and a plane this
|
|
15
|
+
* module does not name all read dark. The flags never open a lane on their own: each plane's own decision still holds
|
|
16
|
+
* (the CME plane keeps the `cme-user-scripts` gate: the flag, sign-in and the CME data terms).
|
|
17
17
|
*/
|
|
18
18
|
import { governedLanesFallbackSeat } from './governed-lanes-reader-seat.js';
|
|
19
19
|
/** Every governed lane plane, in the order the planes shipped. */
|
|
@@ -24,12 +24,15 @@
|
|
|
24
24
|
* other lane at all; a quote-priced perpetual market (Variational, also period-fetched) serves its
|
|
25
25
|
* quote candles, funding and open interest, and no trade, volume, book, profile or options lane; a
|
|
26
26
|
* consolidated tape serves its trades alone (candles, sided volume, the profile, the size flow, the large
|
|
27
|
-
* prints) and no book, open interest, liquidations, funding or options summary;
|
|
27
|
+
* prints) and no book, open interest, liquidations, funding or options summary; the index and yield venue
|
|
28
|
+
* (index-mode, price only) serves its value candles alone: the index-mode admission lets buy/sell volume
|
|
29
|
+
* through, and the venue prints no trade, volume or side behind its points;
|
|
28
30
|
* - the coin table: the option-summary lanes (implied volatility, skew) hold a series for the
|
|
29
31
|
* coins `WRUN_OPTION_SUMMARY_COINS` lists (BTC and ETH) and no other.
|
|
30
32
|
* The dispatcher's own admission (`isKScriptTypeServedOnIndexMode`) stays as it is.
|
|
31
33
|
*/
|
|
32
34
|
import { checkIsCryptoIndex } from './crypto-index.leaf.js';
|
|
35
|
+
import { checkIsIndexOtc } from './index-otc.leaf.js';
|
|
33
36
|
import { checkIsQuotePerp } from './quote-perp.leaf.js';
|
|
34
37
|
import { checkIsIndexMode } from './index-mode.util.js';
|
|
35
38
|
import { checkIsForexOrCommodity, getMarketKind } from './marketKind.util.js';
|
|
@@ -61,6 +64,8 @@ const STOCK_TAPE_SERVED_TYPES = new Set([
|
|
|
61
64
|
]);
|
|
62
65
|
/** The one lane fetch type a crypto index market serves (the market-kind table): its value candles. */
|
|
63
66
|
const CRYPTO_INDEX_SERVED_TYPES = new Set(['ohlcv']);
|
|
67
|
+
/** The one lane fetch type the index and yield venue serves (the market-kind table): its value candles. */
|
|
68
|
+
const INDEX_OTC_SERVED_TYPES = new Set(['ohlcv']);
|
|
64
69
|
/** The lane fetch types a quote-priced perpetual market serves (the market-kind table): its quote candles and the
|
|
65
70
|
* two perpetual series the gateway serves beside them. */
|
|
66
71
|
const QUOTE_PERP_SERVED_TYPES = new Set(['ohlcv', 'funding_rate', 'open_interest']);
|
|
@@ -95,6 +100,9 @@ export function wrunLaneServiceOnMarket({ type, exchange, coin, nativeRows, }) {
|
|
|
95
100
|
if (!QUOTE_PERP_SERVED_TYPES.has(type) && checkIsQuotePerp(exchange)) {
|
|
96
101
|
return { served: false, reason: 'market-kind' };
|
|
97
102
|
}
|
|
103
|
+
if (!INDEX_OTC_SERVED_TYPES.has(type) && checkIsIndexOtc(exchange)) {
|
|
104
|
+
return { served: false, reason: 'market-kind' };
|
|
105
|
+
}
|
|
98
106
|
if (!STOCK_TAPE_SERVED_TYPES.has(type) && isStocksTapeGoverned(exchange)) {
|
|
99
107
|
return { served: false, reason: 'market-kind' };
|
|
100
108
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const POLYGON_EXCHANGES: readonly ["NYSE", "NASDAQ", "CBOE"];
|
|
2
2
|
export declare const PREDICTION_MARKET_EXCHANGES: readonly ["POLYMARKET", "HYPERLIQUID_HIP4"];
|
|
3
3
|
export declare const PYTH_EXCHANGES: never[];
|
|
4
|
-
export declare const INDEX_VENUE_EXCHANGES: readonly ["
|
|
4
|
+
export declare const INDEX_VENUE_EXCHANGES: readonly ["INDICES_OTC"];
|
|
5
5
|
export declare const TRADFI_EXCHANGES: readonly [...never[], "NYSE", "NASDAQ", "CBOE"];
|
|
6
6
|
export declare const DEX_EXCHANGES: readonly ["UNISWAP_V2", "UNISWAP_V3", "UNISWAP_V4", "SUSHISWAP_V2", "SUSHISWAP_V3", "SHIBASWAP", "PANCAKESWAP_V2", "PANCAKESWAP_V3", "FRAXSWAP", "SOLIDLY", "SOLIDLY_V3"];
|
|
7
7
|
export type PMSignalMarketType = 'crypto' | 'tradfi' | 'commodity';
|
|
@@ -52,7 +52,7 @@ export declare function checkIsEligiblePMSignalTicker(normalizedTicker: string):
|
|
|
52
52
|
* CBOT/NYMEX/COMEX-vs-CME behavioral split (see marketKind.util.ts).
|
|
53
53
|
*/
|
|
54
54
|
export declare function checkIsIndexMode(exchange: string | undefined): boolean;
|
|
55
|
-
/** An index venue (`INDEX_VENUE_EXCHANGES`):
|
|
55
|
+
/** An index venue (`INDEX_VENUE_EXCHANGES`): quote series in many time zones, no US session grid. */
|
|
56
56
|
export declare function checkIsIndexVenue(exchange: string | undefined): boolean;
|
|
57
57
|
/**
|
|
58
58
|
* Exchanges that print quotes instead of trades: value-only candles with no
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { formatDisplayToExchange } from '../exchange-normalization.util.js';
|
|
2
2
|
import { checkIsCryptoIndex } from './crypto-index.leaf.js';
|
|
3
3
|
import { checkIsQuotePerp } from './quote-perp.leaf.js';
|
|
4
|
+
import { INDEX_OTC_EXCHANGES } from './index-otc.leaf.js';
|
|
4
5
|
import { PREDICTION_MARKET_EXCHANGE_NAMES } from './prediction-identity.util.js';
|
|
5
6
|
// ============================================================================
|
|
6
7
|
// EXCHANGE CONSTANTS
|
|
@@ -21,11 +22,12 @@ export const PREDICTION_MARKET_EXCHANGES = [...PREDICTION_MARKET_EXCHANGE_NAMES]
|
|
|
21
22
|
export const PYTH_EXCHANGES = []; //['PYTH_NETWORK'] as const;
|
|
22
23
|
const FOREX_EXCHANGES = ['FX_OTC'];
|
|
23
24
|
const COMMODITY_EXCHANGES = ['CBOT', 'ICE', 'NYMEX', 'LBMA', 'PLATTS', 'COMEX', 'LME'];
|
|
24
|
-
// Index venues:
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
//
|
|
28
|
-
|
|
25
|
+
// Index venues: the index and yield venue (index-otc.leaf owns the name), quote series for 22
|
|
26
|
+
// instruments (stock indices, the dollar and volatility indices, US Treasury yields) across many
|
|
27
|
+
// time zones, served as TICKER_AGG candles (OHLC from the quoted values, no volume) from 1m up,
|
|
28
|
+
// like forex. No US session grid applies: each instrument keeps its own market's hours. This set
|
|
29
|
+
// gives the venue index mode, the 1s block and the TICKER data type.
|
|
30
|
+
export const INDEX_VENUE_EXCHANGES = [...INDEX_OTC_EXCHANGES];
|
|
29
31
|
export const TRADFI_EXCHANGES = [...PYTH_EXCHANGES, ...POLYGON_EXCHANGES];
|
|
30
32
|
export const DEX_EXCHANGES = [
|
|
31
33
|
'UNISWAP_V2',
|
|
@@ -314,7 +316,7 @@ export function checkIsIndexMode(exchange) {
|
|
|
314
316
|
return true;
|
|
315
317
|
return checkIsExchangeInSet(exchange, INDEX_MODE_EXCHANGES_SET);
|
|
316
318
|
}
|
|
317
|
-
/** An index venue (`INDEX_VENUE_EXCHANGES`):
|
|
319
|
+
/** An index venue (`INDEX_VENUE_EXCHANGES`): quote series in many time zones, no US session grid. */
|
|
318
320
|
export function checkIsIndexVenue(exchange) {
|
|
319
321
|
return checkIsExchangeInSet(exchange, INDEX_VENUE_EXCHANGES_SET);
|
|
320
322
|
}
|
|
@@ -365,6 +367,10 @@ export function getMarketType(exchange) {
|
|
|
365
367
|
return 'options';
|
|
366
368
|
if (checkIsPolygon(actual))
|
|
367
369
|
return 'equities';
|
|
370
|
+
// The index and yield venue (stock indices, the dollar index, VIX, Treasury yields): the bucket an index ETF
|
|
371
|
+
// reads, as the gateway files an index (ASSET_CLASS_INDEX) with stocks, never the crypto default.
|
|
372
|
+
if (INDEX_OTC_EXCHANGES.includes(actual.toUpperCase()))
|
|
373
|
+
return 'equities';
|
|
368
374
|
if (checkIsForex(actual))
|
|
369
375
|
return 'forex';
|
|
370
376
|
// Kyle-approved flip (2026-07-28): governed venues file as 'futures' while
|