@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { WrunLaneChartChain } from './sources/opra-option-lanes.util.js';
|
|
2
|
+
import type { WrunRowLaneRowBudget } from './sources/wrun-row-lane.types.js';
|
|
2
3
|
/** The classes whose inputs declare views (the cell class each view's block is built in). */
|
|
3
4
|
export type WrunOptionViewClass = 'options_chain' | 'option_contract_state';
|
|
4
5
|
/** One view word's contract (section 6.1). */
|
|
@@ -155,11 +156,13 @@ export declare const WRUN_OPTION_VIEWS: Readonly<{
|
|
|
155
156
|
readonly rate: "rate";
|
|
156
157
|
};
|
|
157
158
|
readonly answer: "fold";
|
|
159
|
+
readonly hinted: true;
|
|
158
160
|
};
|
|
159
161
|
readonly strike_table: {
|
|
160
162
|
readonly cls: "options_chain";
|
|
161
163
|
readonly params: {};
|
|
162
164
|
readonly answer: "fold";
|
|
165
|
+
readonly hinted: true;
|
|
163
166
|
};
|
|
164
167
|
readonly gex_curve: {
|
|
165
168
|
readonly cls: "options_chain";
|
|
@@ -169,6 +172,7 @@ export declare const WRUN_OPTION_VIEWS: Readonly<{
|
|
|
169
172
|
readonly points: "points";
|
|
170
173
|
};
|
|
171
174
|
readonly answer: "fold";
|
|
175
|
+
readonly hinted: true;
|
|
172
176
|
};
|
|
173
177
|
}>;
|
|
174
178
|
export type WrunOptionViewWord = keyof typeof WRUN_OPTION_VIEWS;
|
|
@@ -186,6 +190,10 @@ export declare const WRUN_OPTION_VIEW_UNREAD_CODE = "wrun_option_view_unread";
|
|
|
186
190
|
/** The plan's refusal of one chain lane whose inputs read it through views and whole at once (one ask serves both
|
|
187
191
|
* never: B and a view of B are two answers). */
|
|
188
192
|
export declare const WRUN_OPTION_VIEWS_ONE_ASK_CODE = "wrun_option_views_one_ask";
|
|
193
|
+
/** The plan's refusal of one chain lane whose view inputs declare different `expiries` words: the lane asks ONE block
|
|
194
|
+
* B of the gateway, built for one `nearestExpiries`, so an input of another word would read views of another B (the
|
|
195
|
+
* SDK asks each word apart; one acquisition per word would serve them). */
|
|
196
|
+
export declare const WRUN_OPTION_VIEWS_ONE_EXPIRIES_CODE = "wrun_option_views_one_expiries";
|
|
189
197
|
/** A view's spec, or undefined for a word that names none. */
|
|
190
198
|
export declare function wrunOptionViewSpec(word: unknown): WrunOptionViewSpec | undefined;
|
|
191
199
|
/**
|
|
@@ -196,9 +204,11 @@ export declare function wrunOptionViewSpec(word: unknown): WrunOptionViewSpec |
|
|
|
196
204
|
export declare const WRUN_OPTION_VIEW_KNOB = "page_view";
|
|
197
205
|
export declare const WRUN_OPTION_VIEWS_KNOB = "page_views";
|
|
198
206
|
/** Every view word an input source declares, in either knob, unvalidated (the paint seam and the stray-knob rule
|
|
199
|
-
* read which params the declared views take).
|
|
207
|
+
* read which params the declared views take; the tuple width reads whether one is a fold). A `page_views` that is
|
|
208
|
+
* no list reads as its one value, as the SDK's `wrunOptionViewWordsDeclared` reads it (its declaration refuses). */
|
|
200
209
|
export declare function wrunOptionViewWordsDeclared(source: Readonly<Record<string, unknown>>): unknown[];
|
|
201
|
-
/** The knob names every view the source declares takes as params
|
|
210
|
+
/** The knob names every view the source declares takes as params, and on a per-bar class the number params its
|
|
211
|
+
* declared word takes (a flag takes no setting: true or false only). */
|
|
202
212
|
export declare function wrunOptionViewParamKnobs(source: Readonly<Record<string, unknown>>): Set<string>;
|
|
203
213
|
/**
|
|
204
214
|
* An input's views, validated (main thread, after the paint seam): undefined when it declares none (today's path),
|
|
@@ -224,7 +234,7 @@ export declare function wrunOptionViewsHinted(views: readonly WrunOptionView[]):
|
|
|
224
234
|
export declare function wrunOptionViewsOf(text: unknown, cls: WrunOptionViewClass): WrunOptionView[] | null | undefined;
|
|
225
235
|
/** What an `options_chain` view ask hands the gateway to size B on its page (section 5.1). */
|
|
226
236
|
export interface WrunOptionsChainViewScope {
|
|
227
|
-
/** The
|
|
237
|
+
/** The lane's one `nearest:N` (its view inputs declare one expiries word); absent when they read every expiry. */
|
|
228
238
|
nearestExpiries?: number;
|
|
229
239
|
/** The smallest `max_cells` over the lane's inputs; absent when none declares one. */
|
|
230
240
|
maxContracts?: number;
|
|
@@ -250,6 +260,176 @@ export declare function wrunOptionViewHintCovers(hint: number, marginPct: number
|
|
|
250
260
|
export declare function wrunOptionViewHint(held: unknown, marginPct: number, close: number | undefined): number | undefined;
|
|
251
261
|
/** The close of a chart's last row (`[ts, open, high, low, close, ...]`), or undefined. */
|
|
252
262
|
export declare function wrunChartLastClose(rows: unknown): number | undefined;
|
|
263
|
+
/** The classes whose inputs declare a per-bar word. */
|
|
264
|
+
export type WrunOptionLaneClass = 'option_surface' | 'option_strikes';
|
|
265
|
+
/** Each per-bar class's word knob and its words, in the SDK's order (`WRUN_OPTION_SURFACE_PICKS`,
|
|
266
|
+
* `WRUN_OPTION_STRIKES_FOLDS`). */
|
|
267
|
+
export declare const WRUN_OPTION_LANE_WORDS: Readonly<Record<WrunOptionLaneClass, {
|
|
268
|
+
knob: string;
|
|
269
|
+
words: readonly string[];
|
|
270
|
+
}>>;
|
|
271
|
+
/**
|
|
272
|
+
* What one per-bar param knob takes (the SDK's `WrunOptionKnobSpec`): a number in min..max (`above` excludes min,
|
|
273
|
+
* `below` excludes max), a whole number, or (`codes`) one of a few numbers, each naming a choice (a select setting's
|
|
274
|
+
* picked index); a flag takes true or false, never a setting. `what` names it in a refusal; `fallback` is what an
|
|
275
|
+
* absent knob reads (absent: the knob is required).
|
|
276
|
+
*/
|
|
277
|
+
export interface WrunOptionKnobSpec {
|
|
278
|
+
readonly kind: 'number' | 'whole' | 'time' | 'flag';
|
|
279
|
+
readonly min?: number;
|
|
280
|
+
readonly max?: number;
|
|
281
|
+
readonly above?: boolean;
|
|
282
|
+
readonly below?: boolean;
|
|
283
|
+
readonly codes?: Readonly<Record<number, string>>;
|
|
284
|
+
readonly what: string;
|
|
285
|
+
readonly fallback?: number;
|
|
286
|
+
}
|
|
287
|
+
/** The per-bar words' knobs, by word, in the SDK's order (`WRUN_OPTION_LANE_KNOBS`, kit 0.90.0; the surface pick's
|
|
288
|
+
* `delta` 0 reads the 25 delta wings, 1 the 10 delta ones). tests/utility/wrun/wrun-option-views.kit-pin.spec.ts holds
|
|
289
|
+
* every spec equal to the installed kit's. */
|
|
290
|
+
export declare const WRUN_OPTION_LANE_KNOBS: Readonly<Record<string, Readonly<Record<string, WrunOptionKnobSpec>>>>;
|
|
291
|
+
/** What `expiries` takes beside the strike kit fold (the SDK's `WRUN_OPTION_STRIKES_KIT_EXPIRIES_TAKES`, kit 0.91.1):
|
|
292
|
+
* the fold keeps its expiries with its own `nearest`, so any other word beside it is refused at declaration. */
|
|
293
|
+
export declare const WRUN_OPTION_STRIKES_KIT_EXPIRIES_TAKES = "\"all\" (or no expiries) beside fold \"kit\": the fold keeps its expiries with its own `nearest`";
|
|
294
|
+
/** A per-bar class, or undefined for a class that declares no per-bar word. */
|
|
295
|
+
export declare function wrunOptionLaneClassOf(sourceClass: unknown): WrunOptionLaneClass | undefined;
|
|
296
|
+
/** One word's knobs on a per-bar class (empty for a word the class does not take). */
|
|
297
|
+
export declare function wrunOptionLaneKnobSpecs(cls: WrunOptionLaneClass, word: string): Readonly<Record<string, WrunOptionKnobSpec>>;
|
|
298
|
+
/** Every param knob a per-bar class takes, over its words, each once, in table order (the SDK's
|
|
299
|
+
* `wrunOptionViewParamKnobsOf`). */
|
|
300
|
+
export declare function wrunOptionLaneParamKnobs(cls: WrunOptionLaneClass): readonly string[];
|
|
301
|
+
/** Whether a number is a legal value of a per-bar knob, a flag's 0 or 1 included (the SDK's
|
|
302
|
+
* `wrunOptionKnobSpecLegal`). */
|
|
303
|
+
export declare function wrunOptionKnobSpecLegal(spec: WrunOptionKnobSpec, value: number): boolean;
|
|
304
|
+
/** What a per-bar knob takes, as a refusal spells it (the SDK's `wrunOptionKnobSpecTakes`). */
|
|
305
|
+
export declare function wrunOptionKnobSpecTakes(spec: WrunOptionKnobSpec): string;
|
|
306
|
+
/** One input's per-bar ask: its class, its word and each param by knob, at its value (a flag's 1 or 0) or fallback. */
|
|
307
|
+
export interface WrunOptionLaneAsk {
|
|
308
|
+
cls: WrunOptionLaneClass;
|
|
309
|
+
word: string;
|
|
310
|
+
params: Readonly<Record<string, number>>;
|
|
311
|
+
}
|
|
312
|
+
/** Why an input's per-bar knobs refuse: the knob, its value and what it takes (the SDK's `WrunOptionViewIssue`). */
|
|
313
|
+
export interface WrunOptionLaneIssue {
|
|
314
|
+
knob: string;
|
|
315
|
+
value: unknown;
|
|
316
|
+
takes: string;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* ONE reader of a per-bar class's knobs, the SDK's `wrunOptionViewAskOf` for `option_surface` and `option_strikes`
|
|
320
|
+
* (no handle option: a `"@<param>"` the paint seam did not replace is refused as any other value): the ask, or
|
|
321
|
+
* undefined when the input declares neither the word nor a param of it, or the first issue in the SDK's order (the
|
|
322
|
+
* word; each declared param in table order, taken by the word and legal on it; each required param; an `expiries` word
|
|
323
|
+
* other than "all" beside the kit fold, `WRUN_OPTION_STRIKES_KIT_EXPIRIES_TAKES`). Pure: the lane's facets refuse its
|
|
324
|
+
* issue by name (`wrunOptionLaneAskOfSource`), its per-input projection reads the ask.
|
|
325
|
+
*/
|
|
326
|
+
export declare function wrunOptionLaneAskOf(source: Readonly<Record<string, unknown>>): {
|
|
327
|
+
ask: WrunOptionLaneAsk;
|
|
328
|
+
} | {
|
|
329
|
+
issue: WrunOptionLaneIssue;
|
|
330
|
+
} | undefined;
|
|
331
|
+
/** An input's per-bar ask, its first issue refused by name (`wrun_option_knob_invalid`): undefined when it declares no
|
|
332
|
+
* per-bar knob (today's read). */
|
|
333
|
+
export declare function wrunOptionLaneAskOfSource(source: object, ctx: {
|
|
334
|
+
inputName: string;
|
|
335
|
+
sourceClass: string;
|
|
336
|
+
}): WrunOptionLaneAsk | undefined;
|
|
337
|
+
/** f64s per row of a view block (the page views' folds) and of the strike kit fold (the SDK's
|
|
338
|
+
* `WRUN_OPTION_VIEW_ROW_WIDTHS`): the layout, then the widest layout's fields. */
|
|
339
|
+
export declare const WRUN_OPTION_VIEW_ROW_WIDTHS: Readonly<{
|
|
340
|
+
readonly options_chain: 11;
|
|
341
|
+
readonly option_contract_state: 16;
|
|
342
|
+
readonly option_strikes: 14;
|
|
343
|
+
}>;
|
|
344
|
+
/** Column 0 of every strike kit fold row (the SDK's `WRUN_OPTION_STRIKES_KIT_LAYOUTS`). */
|
|
345
|
+
export declare const WRUN_OPTION_STRIKES_KIT_LAYOUTS: Readonly<{
|
|
346
|
+
readonly strike: 0;
|
|
347
|
+
readonly levels: 1;
|
|
348
|
+
}>;
|
|
349
|
+
/** The column of a kit levels row that says the bar was refused (its newest minute held more rows than the input's
|
|
350
|
+
* `max_cells`): 1 refused, 0 served. */
|
|
351
|
+
export declare const WRUN_OPTION_STRIKES_KIT_REFUSED_COLUMN = 13;
|
|
352
|
+
/**
|
|
353
|
+
* The f64s per tuple one input's block carries (the SDK's `wrunOptionInputTupleWidth`, the one rule every host sizes
|
|
354
|
+
* by): a view block's row width when its words name a fold (a page view fold, the strike kit fold), else the class's
|
|
355
|
+
* own width. The words alone decide it, never a param, so a setting never resizes a block.
|
|
356
|
+
*/
|
|
357
|
+
export declare function wrunOptionInputTupleWidth(source: Readonly<Record<string, unknown>>, classWidth: number): number;
|
|
358
|
+
/** pb-common `OptionSurfacePick` by word (the gateway decodes numbers, never names). */
|
|
359
|
+
export declare const WRUN_OPTION_SURFACE_PICK_CODES: Readonly<Record<string, number>>;
|
|
360
|
+
/** pb-common `StrikeMetric` by the kit fold's lens code (0 gamma, 1 delta, 2 vega): NET_GEX, DEX, VEX. */
|
|
361
|
+
export declare const WRUN_OPTION_STRIKES_KIT_METRICS: Readonly<Record<number, number>>;
|
|
362
|
+
/**
|
|
363
|
+
* The `OptionReadShape` G5 fields (pb-common 12.72.0, fields 40 to 51) a per-bar ask names, as they ride the lane's
|
|
364
|
+
* payload and the gateway reads them (JSON names, enums as numbers):
|
|
365
|
+
* - the surface pick: `surfacePick` (1 nearest_days, 2 tenor_bracket) with `surfaceDays` and `surfaceDelta` (25 or
|
|
366
|
+
* 10, the wings) or `surfaceTenorDays`;
|
|
367
|
+
* - the strike kit fold: `strikeKitFold`, `strikeNearest`, `strikeKitWindowPct`, `strikeStepRows`, `strikeCarryNext`,
|
|
368
|
+
* `strikeLevels`, `strikeMaxCells` (the input's `max_cells`: a minute with more rows answers a refused levels row)
|
|
369
|
+
* and `strikeKitMetric` (the lens).
|
|
370
|
+
* The fields key the lane instance, so two inputs asking two picks are two reads, and an input declaring no word asks
|
|
371
|
+
* none of them (today's read).
|
|
372
|
+
*/
|
|
373
|
+
export declare function wrunOptionLaneAskFields(ask: WrunOptionLaneAsk, facts?: {
|
|
374
|
+
maxCells?: number;
|
|
375
|
+
}): Record<string, unknown>;
|
|
376
|
+
/** A per-bar ask read back off a payload (the worker twins, the K controls): the G5 fields as they ride, or
|
|
377
|
+
* undefined for a payload that names none (today's read). */
|
|
378
|
+
export interface WrunOptionLaneAskRead {
|
|
379
|
+
surfacePick?: number;
|
|
380
|
+
surfaceDays?: number;
|
|
381
|
+
surfaceDelta?: number;
|
|
382
|
+
surfaceTenorDays?: number;
|
|
383
|
+
strikeKitFold?: true;
|
|
384
|
+
strikeNearest?: number;
|
|
385
|
+
strikeKitWindowPct?: number;
|
|
386
|
+
strikeStepRows?: number;
|
|
387
|
+
strikeCarryNext?: boolean;
|
|
388
|
+
strikeLevels?: boolean;
|
|
389
|
+
strikeMaxCells?: number;
|
|
390
|
+
strikeKitMetric?: number;
|
|
391
|
+
}
|
|
392
|
+
/** A per-bar ask's fields of a payload, as they ride (a K control copies them onto the request it builds). */
|
|
393
|
+
export declare function wrunOptionLanePayloadFields(cls: WrunOptionLaneClass, payload: Readonly<Record<string, unknown>> | undefined): Record<string, unknown>;
|
|
394
|
+
/** A payload's per-bar ask (the worker twins): its G5 fields, each of its own type, or undefined when it names no
|
|
395
|
+
* word of its class (`surfacePick` 1 or 2, `strikeKitFold` true). */
|
|
396
|
+
export declare function wrunOptionLaneAskOfPayload(cls: WrunOptionLaneClass, payload: Readonly<Record<string, unknown>>): WrunOptionLaneAskRead | undefined;
|
|
397
|
+
/** The kit fold's params by knob (the SDK reference's names) off a payload's ask, the lens back to its code. */
|
|
398
|
+
export declare function wrunOptionStrikesKitParamsOf(read: WrunOptionLaneAskRead): Record<string, number>;
|
|
399
|
+
/** Whether a lane instance's acquisition asks a per-bar word (a pick or the kit fold): its rows are landed on the
|
|
400
|
+
* chart's bars by the gateway (or by the lane's own fallback by the same rules). */
|
|
401
|
+
export declare function wrunOptionLaneAcquisitionAsks(sourceClass: string, acquisition: Readonly<Record<string, unknown>>): boolean;
|
|
402
|
+
/** Whether an instance's acquisition asks the kit fold with `carry`: each bar's rows then hold the strikes the NEXT bar
|
|
403
|
+
* with rows draws, and the gateway's carry stops at its read window, so a paged read must ask each older page through
|
|
404
|
+
* the newer page's first bar with rows (wrun-row-lanes.util `fetchWrunRowLaneRows`). */
|
|
405
|
+
export declare function wrunOptionLaneCarriesNext(sourceClass: string, acquisition: Readonly<Record<string, unknown>>): boolean;
|
|
406
|
+
/** Whether one landed kit fold bar has rows the carry reads: any row, its levels row not the refusal (a refused bar
|
|
407
|
+
* keeps no strike, so the carry passes over it to the next bar). */
|
|
408
|
+
export declare function wrunOptionKitBarHasRows(tuples: ReadonlyArray<unknown>): boolean;
|
|
409
|
+
/** The f64s per row an instance's rows carry, by its facets: the kit fold's rows on an instance asking it, else the
|
|
410
|
+
* class's own tuple (`classWidth`). */
|
|
411
|
+
export declare function wrunOptionLaneTupleWidth(sourceClass: string, acquisition: Readonly<Record<string, unknown>>, classWidth: number): number;
|
|
412
|
+
/**
|
|
413
|
+
* The row budget the first-paint slice sizes an instance asking a per-bar word by (wrun-row-lane-first-paint.util, the
|
|
414
|
+
* slice FE-STRIKE-LANE added; no second one): the answered row's cells and the rows one bar is projected to hold (a
|
|
415
|
+
* nearest_days pick 1, a tenor bracket 2, a kit fold bar its levels row and drawn strikes). Undefined for an instance
|
|
416
|
+
* that asks no per-bar word: its asks are today's, unsliced.
|
|
417
|
+
*/
|
|
418
|
+
export declare function wrunOptionLaneFirstPaintBudget(sourceClass: string, acquisition: Readonly<Record<string, unknown>>, classWidth: number): WrunRowLaneRowBudget | undefined;
|
|
419
|
+
/**
|
|
420
|
+
* One bar's option_surface block under a pick, the SDK's reference (`wrunOptionSurfacePick` and
|
|
421
|
+
* `wrunOptionSurfacePickBlock`, wrun-host/option-views.ts) on the bar's tuples:
|
|
422
|
+
* - `nearest_days` (Skew History): the tuple with dte_days served and at least 1 and both wings served at `delta` (0:
|
|
423
|
+
* iv_p25 and iv_c25, 1: iv_p10 and iv_c10), its dte nearest `days`, the earlier expiry on a tie (the first tuple on
|
|
424
|
+
* an exact one);
|
|
425
|
+
* - `tenor_bracket` (Options Sentiment's AVAR): the anchors (dte_days and both 25-delta wings served, dte above 0.5
|
|
426
|
+
* and both wings above 0) ordered by dte, ties in the block's order; the one before the first at or past `tenor`
|
|
427
|
+
* days and that one, or the first alone, or the last alone.
|
|
428
|
+
* The kept tuples ride in the block's order. A bar that held tuples and whose pick keeps none answers one all-zero
|
|
429
|
+
* tuple (a served bar still reads served); a partial bar's bit 14 rides the first tuple of the answer. Idempotent: a
|
|
430
|
+
* bar the gateway already picked picks to itself, so the gateway's answer and today's read land the same block.
|
|
431
|
+
*/
|
|
432
|
+
export declare function wrunOptionSurfacePickTuples(tuples: ReadonlyArray<ReadonlyArray<number>>, word: string, params: Readonly<Record<string, number>>): number[][];
|
|
253
433
|
/**
|
|
254
434
|
* The chart's chain on the OPRA plane by coin, held in place of the chain directory's answer (section 8, O1): the
|
|
255
435
|
* chain `wrunLaneOpraPlaneChain` reads for the chart's coin when the chart's options ride the OPRA plane (the
|