@orangecharts/wrun-chart-host 0.9.0 → 0.11.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.
Files changed (252) hide show
  1. package/README.md +2 -0
  2. package/dist/constants/feature-flags.constants.d.ts +15 -1
  3. package/dist/constants/feature-flags.constants.js +130 -24
  4. package/dist/constants/governed-exchanges.constants.d.ts +12 -0
  5. package/dist/constants/governed-exchanges.constants.js +16 -0
  6. package/dist/constants/opra-compliance.constants.d.ts +3 -2
  7. package/dist/constants/opra-compliance.constants.js +3 -2
  8. package/dist/constants/option-venues.constants.d.ts +2 -2
  9. package/dist/constants/scriptEditor/builtin-script-snippets.d.ts +26 -0
  10. package/dist/constants/scriptEditor/builtin-script-snippets.js +6 -0
  11. package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.d.ts +15 -0
  12. package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.js +17 -0
  13. package/dist/constants/venue-presets.constants.d.ts +20 -20
  14. package/dist/constants/venue-presets.constants.js +24 -26
  15. package/dist/host-env.d.ts +21 -5
  16. package/dist/host-env.js +6 -0
  17. package/dist/host-ports.types.d.ts +102 -19
  18. package/dist/index.d.ts +18 -0
  19. package/dist/index.js +18 -0
  20. package/dist/interfaces/cancel-reason.interface.d.ts +1 -1
  21. package/dist/interfaces/cme-realtime.interface.d.ts +16 -9
  22. package/dist/interfaces/cme-realtime.interface.js +6 -3
  23. package/dist/interfaces/kscript-diagnostics.interface.d.ts +12 -0
  24. package/dist/interfaces/opra-realtime.interface.d.ts +1 -5
  25. package/dist/interfaces/prediction-market.interface.d.ts +7 -0
  26. package/dist/interfaces/replay.interface.d.ts +8 -0
  27. package/dist/interfaces/stocks-realtime.interface.d.ts +57 -0
  28. package/dist/interfaces/stocks-realtime.interface.js +32 -0
  29. package/dist/interfaces/wrun-runtime.interface.d.ts +18 -2
  30. package/dist/kscript-data/controls/live-trades-merge.util.d.ts +62 -94
  31. package/dist/kscript-data/controls/live-trades-merge.util.js +106 -171
  32. package/dist/market-data/billing.interface.d.ts +174 -36
  33. package/dist/market-data/billing.interface.js +58 -8
  34. package/dist/market-data/venue.d.ts +152 -7
  35. package/dist/market-data/venues/cme.contract.copy.json +66 -0
  36. package/dist/market-data/venues/cme.d.ts +126 -0
  37. package/dist/market-data/venues/cme.js +133 -0
  38. package/dist/market-data/venues/index.d.ts +294 -7
  39. package/dist/market-data/venues/index.js +49 -6
  40. package/dist/market-data/venues/opra.contract.copy.json +3 -2
  41. package/dist/market-data/venues/opra.d.ts +2 -2
  42. package/dist/market-data/venues/opra.js +5 -2
  43. package/dist/market-data/venues/stocks.contract.copy.json +64 -0
  44. package/dist/market-data/venues/stocks.d.ts +130 -0
  45. package/dist/market-data/venues/stocks.js +117 -0
  46. package/dist/settings-templates/footprint-rows.js +35 -2
  47. package/dist/settings-templates/form-rows.d.ts +2 -1
  48. package/dist/settings-templates/index.js +7 -3
  49. package/dist/settings-templates/indicator-fields.d.ts +5 -4
  50. package/dist/settings-templates/indicator-fields.js +79 -10
  51. package/dist/settings-templates/tool-rules.d.ts +32 -15
  52. package/dist/settings-templates/tool-rules.js +33 -11
  53. package/dist/settings-templates/tool-tables.generated.js +95 -31
  54. package/dist/utility/chart/book-live-bucket.util.d.ts +15 -0
  55. package/dist/utility/chart/book-live-bucket.util.js +47 -0
  56. package/dist/utility/chart/cme-cache-context.util.d.ts +5 -3
  57. package/dist/utility/chart/cme-cache-context.util.js +10 -6
  58. package/dist/utility/chart/cme-realtime.util.js +10 -0
  59. package/dist/utility/chart/cme-user-scripts-gate.util.d.ts +83 -0
  60. package/dist/utility/chart/cme-user-scripts-gate.util.js +142 -0
  61. package/dist/utility/chart/effective-chart-session.util.d.ts +14 -0
  62. package/dist/utility/chart/effective-chart-session.util.js +39 -0
  63. package/dist/utility/chart/host-bar-placement.util.d.ts +28 -0
  64. package/dist/utility/chart/host-bar-placement.util.js +170 -30
  65. package/dist/utility/chart/index-host-tier.util.d.ts +3 -1
  66. package/dist/utility/chart/index-host-tier.util.js +7 -2
  67. package/dist/utility/chart/index-mode-admission.util.js +30 -3
  68. package/dist/utility/chart/kscript-apply-fingerprint.util.js +1 -1
  69. package/dist/utility/chart/kscript-drawing-safe-area.util.d.ts +35 -11
  70. package/dist/utility/chart/kscript-drawing-safe-area.util.js +145 -35
  71. package/dist/utility/chart/kscript-live-coalesce.util.d.ts +9 -7
  72. package/dist/utility/chart/kscript-live-coalesce.util.js +13 -8
  73. package/dist/utility/chart/kscript-live-source-identity.util.d.ts +9 -0
  74. package/dist/utility/chart/kscript-live-source-identity.util.js +10 -1
  75. package/dist/utility/chart/kscript-provenance-keys.util.js +13 -0
  76. package/dist/utility/chart/kscript-standin-identity.leaf.d.ts +5 -1
  77. package/dist/utility/chart/kscript-titancharts-render-keys.constants.d.ts +32 -2
  78. package/dist/utility/chart/kscript-titancharts-render-keys.constants.js +45 -0
  79. package/dist/utility/chart/kscript-venue-policy.util.d.ts +156 -43
  80. package/dist/utility/chart/kscript-venue-policy.util.js +249 -59
  81. package/dist/utility/chart/live-bucket.util.d.ts +24 -8
  82. package/dist/utility/chart/live-bucket.util.js +85 -27
  83. package/dist/utility/chart/market-session-schedule.util.d.ts +10 -0
  84. package/dist/utility/chart/market-session-schedule.util.js +16 -0
  85. package/dist/utility/chart/marketKind.util.js +5 -0
  86. package/dist/utility/chart/mixed-mode.util.d.ts +7 -0
  87. package/dist/utility/chart/mixed-mode.util.js +14 -0
  88. package/dist/utility/chart/opra-read-access.leaf.d.ts +5 -3
  89. package/dist/utility/chart/opra-read-access.leaf.js +5 -3
  90. package/dist/utility/chart/opra-user-scripts-gate.util.d.ts +11 -16
  91. package/dist/utility/chart/opra-user-scripts-gate.util.js +12 -28
  92. package/dist/utility/chart/rth-session.util.d.ts +12 -10
  93. package/dist/utility/chart/rth-session.util.js +25 -21
  94. package/dist/utility/chart/trading-day.util.d.ts +17 -0
  95. package/dist/utility/chart/trading-day.util.js +59 -0
  96. package/dist/utility/chart/window-geometry.leaf.d.ts +8 -0
  97. package/dist/utility/chart/window-geometry.leaf.js +22 -6
  98. package/dist/utility/chart/window-owner.leaf.d.ts +23 -2
  99. package/dist/utility/chart/window-owner.leaf.js +45 -3
  100. package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +33 -15
  101. package/dist/utility/chart/wrun-bar-session-facts.util.js +70 -20
  102. package/dist/utility/chart/wrun-run-result.util.d.ts +12 -0
  103. package/dist/utility/chart/wrun-run-result.util.js +141 -6
  104. package/dist/utility/intl-locale.util.js +5 -0
  105. package/dist/utility/options/option-bar-anchor.util.d.ts +145 -0
  106. package/dist/utility/options/option-bar-anchor.util.js +340 -0
  107. package/dist/utility/options/option-venue.util.d.ts +18 -0
  108. package/dist/utility/options/option-venue.util.js +27 -0
  109. package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +4 -0
  110. package/dist/utility/v2/gate-plane.util.d.ts +12 -3
  111. package/dist/utility/v2/gate-plane.util.js +30 -4
  112. package/dist/utility/v2/gate-session-latch.util.js +1 -1
  113. package/dist/utility/v2/stocks-governed.util.d.ts +16 -0
  114. package/dist/utility/v2/stocks-governed.util.js +34 -0
  115. package/dist/utility/wrun/derived-roots.leaf.d.ts +13 -0
  116. package/dist/utility/wrun/derived-roots.leaf.js +27 -0
  117. package/dist/utility/wrun/derived-roots.util.d.ts +205 -0
  118. package/dist/utility/wrun/derived-roots.util.js +451 -0
  119. package/dist/utility/wrun/run-schedule/wrun-chart-gate-reader.util.d.ts +43 -7
  120. package/dist/utility/wrun/run-schedule/wrun-chart-gate-reader.util.js +89 -19
  121. package/dist/utility/wrun/run-schedule/wrun-gate-reader-warm.util.d.ts +9 -4
  122. package/dist/utility/wrun/run-schedule/wrun-gate-reader-warm.util.js +47 -6
  123. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +4 -2
  124. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +4 -2
  125. package/dist/utility/wrun/run-schedule/wrun-own-candles.util.d.ts +24 -3
  126. package/dist/utility/wrun/run-schedule/wrun-own-candles.util.js +46 -10
  127. package/dist/utility/wrun/sources/lanes/option_daily.js +5 -2
  128. package/dist/utility/wrun/sources/lanes/options_flow.js +5 -2
  129. package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +64 -19
  130. package/dist/utility/wrun/sources/opra-option-lanes.util.js +105 -35
  131. package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +2 -1
  132. package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +2 -1
  133. package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +3 -0
  134. package/dist/utility/wrun/sources/row-lanes/option_prints.js +19 -4
  135. package/dist/utility/wrun/sources/row-lanes/option_strike_flow.js +17 -4
  136. package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +52 -13
  137. package/dist/utility/wrun/sources/row-lanes/option_strikes.js +88 -19
  138. package/dist/utility/wrun/sources/row-lanes/option_surface.js +2 -1
  139. package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -0
  140. package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +24 -9
  141. package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +41 -10
  142. package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.d.ts +111 -0
  143. package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.js +133 -0
  144. package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.d.ts +15 -3
  145. package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.js +22 -3
  146. package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +31 -0
  147. package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +197 -13
  148. package/dist/utility/wrun/sources/wrun-row-lanes.util.js +761 -27
  149. package/dist/utility/wrun/wrun-browser-sources.leaf.js +1 -2
  150. package/dist/utility/wrun/wrun-builtin-twin.util.d.ts +12 -0
  151. package/dist/utility/wrun/wrun-builtin-twin.util.js +21 -0
  152. package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +60 -16
  153. package/dist/utility/wrun/wrun-chart-market-facts.util.js +113 -61
  154. package/dist/utility/wrun/wrun-color-settings.util.d.ts +9 -0
  155. package/dist/utility/wrun/wrun-color-settings.util.js +33 -0
  156. package/dist/utility/wrun/wrun-download-meter.util.d.ts +15 -0
  157. package/dist/utility/wrun/wrun-download-meter.util.js +14 -2
  158. package/dist/utility/wrun/wrun-download-plan.util.d.ts +99 -0
  159. package/dist/utility/wrun/wrun-download-plan.util.js +118 -0
  160. package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +11 -3
  161. package/dist/utility/wrun/wrun-draft-legend-note.util.js +26 -4
  162. package/dist/utility/wrun/wrun-frames.d.ts +27 -6
  163. package/dist/utility/wrun/wrun-frames.js +73 -10
  164. package/dist/utility/wrun/wrun-handles.util.d.ts +7 -3
  165. package/dist/utility/wrun/wrun-handles.util.js +9 -8
  166. package/dist/utility/wrun/wrun-hosted-wire.util.d.ts +7 -1
  167. package/dist/utility/wrun/wrun-hosted-wire.util.js +12 -2
  168. package/dist/utility/wrun/wrun-hud-looks.util.d.ts +18 -4
  169. package/dist/utility/wrun/wrun-hud-looks.util.js +45 -13
  170. package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +68 -0
  171. package/dist/utility/wrun/wrun-input-requirements.leaf.js +163 -7
  172. package/dist/utility/wrun/wrun-latest-snapshot.d.ts +11 -0
  173. package/dist/utility/wrun/wrun-leg-close.util.d.ts +59 -23
  174. package/dist/utility/wrun/wrun-leg-close.util.js +186 -28
  175. package/dist/utility/wrun/wrun-live-intake.util.d.ts +35 -15
  176. package/dist/utility/wrun/wrun-live-intake.util.js +243 -126
  177. package/dist/utility/wrun/wrun-live-tick.util.d.ts +13 -5
  178. package/dist/utility/wrun/wrun-live-tick.util.js +279 -99
  179. package/dist/utility/wrun/wrun-market-facts.util.d.ts +13 -3
  180. package/dist/utility/wrun/wrun-market-facts.util.js +13 -3
  181. package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +60 -11
  182. package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +70 -5
  183. package/dist/utility/wrun/wrun-market-size-defaults.util.js +31 -5
  184. package/dist/utility/wrun/wrun-opra-lane.util.d.ts +17 -4
  185. package/dist/utility/wrun/wrun-opra-lane.util.js +6 -4
  186. package/dist/utility/wrun/wrun-option-book-rows.util.d.ts +56 -0
  187. package/dist/utility/wrun/wrun-option-book-rows.util.js +96 -0
  188. package/dist/utility/wrun/wrun-option-strike-flow-forecast.util.d.ts +31 -0
  189. package/dist/utility/wrun/wrun-option-strike-flow-forecast.util.js +119 -0
  190. package/dist/utility/wrun/wrun-option-strike-flow-lane.util.d.ts +23 -6
  191. package/dist/utility/wrun/wrun-option-strike-flow-lane.util.js +47 -11
  192. package/dist/utility/wrun/wrun-option-strike-flow.util.d.ts +86 -19
  193. package/dist/utility/wrun/wrun-option-strike-flow.util.js +168 -62
  194. package/dist/utility/wrun/wrun-option-views.util.d.ts +323 -28
  195. package/dist/utility/wrun/wrun-option-views.util.js +484 -71
  196. package/dist/utility/wrun/wrun-options-chain.util.d.ts +3 -3
  197. package/dist/utility/wrun/wrun-options-chain.util.js +2 -0
  198. package/dist/utility/wrun/wrun-output-style.util.d.ts +6 -2
  199. package/dist/utility/wrun/wrun-output-style.util.js +20 -2
  200. package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +32 -2
  201. package/dist/utility/wrun/wrun-overlay-drivers.util.js +13 -3
  202. package/dist/utility/wrun/wrun-overlay-lifecycle.util.d.ts +10 -1
  203. package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +52 -4
  204. package/dist/utility/wrun/wrun-overlay-recovery.util.js +3 -1
  205. package/dist/utility/wrun/wrun-overlay-run.util.d.ts +160 -42
  206. package/dist/utility/wrun/wrun-overlay-run.util.js +1244 -209
  207. package/dist/utility/wrun/wrun-pane-format.util.d.ts +2 -1
  208. package/dist/utility/wrun/wrun-pane-format.util.js +7 -3
  209. package/dist/utility/wrun/wrun-panel-mount.util.d.ts +9 -0
  210. package/dist/utility/wrun/wrun-panel-mount.util.js +114 -19
  211. package/dist/utility/wrun/wrun-panel-style.util.d.ts +10 -9
  212. package/dist/utility/wrun/wrun-panel-style.util.js +58 -9
  213. package/dist/utility/wrun/wrun-param-map.util.d.ts +14 -11
  214. package/dist/utility/wrun/wrun-param-map.util.js +10 -5
  215. package/dist/utility/wrun/wrun-param-values.util.d.ts +14 -4
  216. package/dist/utility/wrun/wrun-param-values.util.js +4 -0
  217. package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +15 -2
  218. package/dist/utility/wrun/wrun-pin-spelling.util.js +39 -14
  219. package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +50 -0
  220. package/dist/utility/wrun/wrun-refusal-surface.util.js +68 -0
  221. package/dist/utility/wrun/wrun-refusal.util.d.ts +3 -2
  222. package/dist/utility/wrun/wrun-refusal.util.js +22 -0
  223. package/dist/utility/wrun/wrun-refused-latest.util.d.ts +10 -0
  224. package/dist/utility/wrun/wrun-refused-latest.util.js +12 -0
  225. package/dist/utility/wrun/wrun-registry-errors.util.d.ts +26 -0
  226. package/dist/utility/wrun/wrun-registry-errors.util.js +34 -0
  227. package/dist/utility/wrun/wrun-replay-lane.util.js +3 -2
  228. package/dist/utility/wrun/wrun-row-source.d.ts +11 -0
  229. package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +20 -6
  230. package/dist/utility/wrun/wrun-run-interval-session.util.js +22 -7
  231. package/dist/utility/wrun/wrun-run-interval.util.d.ts +43 -9
  232. package/dist/utility/wrun/wrun-run-interval.util.js +58 -15
  233. package/dist/utility/wrun/wrun-script-inputs.util.d.ts +45 -1
  234. package/dist/utility/wrun/wrun-script-inputs.util.js +112 -4
  235. package/dist/utility/wrun/wrun-setting-words.util.d.ts +7 -3
  236. package/dist/utility/wrun/wrun-setting-words.util.js +13 -5
  237. package/dist/utility/wrun/wrun-socket-row-source.d.ts +27 -2
  238. package/dist/utility/wrun/wrun-socket-row-source.js +118 -8
  239. package/dist/utility/wrun/wrun-source-rows.util.d.ts +29 -18
  240. package/dist/utility/wrun/wrun-source-rows.util.js +61 -27
  241. package/dist/utility/wrun/wrun-style-words.util.js +6 -4
  242. package/dist/utility/wrun/wrun-table-chrome.util.d.ts +3 -2
  243. package/dist/utility/wrun/wrun-table-chrome.util.js +19 -11
  244. package/dist/utility/wrun/wrun-tape-per-order.util.d.ts +2 -0
  245. package/dist/utility/wrun/wrun-tape-per-order.util.js +7 -0
  246. package/dist/utility/wrun/wrun-tape-source.util.d.ts +17 -9
  247. package/dist/utility/wrun/wrun-tape-source.util.js +20 -12
  248. package/dist/utils/replay/replay-buffer-math.d.ts +53 -2
  249. package/dist/utils/replay/replay-buffer-math.js +227 -20
  250. package/dist/workers/constants/socket-slots.d.ts +91 -6
  251. package/dist/workers/constants/socket-slots.js +85 -6
  252. package/package.json +5 -5
@@ -1,5 +1,6 @@
1
1
  import type { WrunLaneChartChain } from './sources/opra-option-lanes.util.js';
2
2
  import type { WrunRowLaneRowBudget } from './sources/wrun-row-lane.types.js';
3
+ import type { WrunOptionBookLayout } from './wrun-option-book-rows.util.js';
3
4
  /** The classes whose inputs declare views (the cell class each view's block is built in). */
4
5
  export type WrunOptionViewClass = 'options_chain' | 'option_contract_state';
5
6
  /** One view word's contract (section 6.1). */
@@ -11,9 +12,13 @@ export interface WrunOptionViewSpec {
11
12
  answer: 'tuples' | 'fold';
12
13
  /** The view centres on the chart's close (`spotHint`) and covers every close inside the band. */
13
14
  hinted?: true;
15
+ /** A book fold (`WRUN_OPTION_BOOK_VIEWS`): it folds the chain page's one book, never the block, so its ask carries
16
+ * its own params alone. Absent on every view of the block. */
17
+ book?: true;
14
18
  }
15
- /** Every view word, in section 6.1's order. The worker names each by `OPTION_CHAIN_VIEW_<WORD>` (pb-common
16
- * `OptionChainViewKind`; tests/utility/wrun/wrun-option-views.util.spec.ts pins every name). */
19
+ /** Every view word of the block, in section 6.1's order (the book folds follow on options_chain,
20
+ * `WRUN_OPTION_BOOK_VIEWS`). The worker names each by `OPTION_CHAIN_VIEW_<WORD>` (pb-common `OptionChainViewKind`;
21
+ * tests/utility/wrun/wrun-option-views.util.spec.ts pins every name). */
17
22
  export declare const WRUN_OPTION_VIEWS: Readonly<{
18
23
  readonly whole: {
19
24
  readonly cls: "options_chain";
@@ -176,9 +181,11 @@ export declare const WRUN_OPTION_VIEWS: Readonly<{
176
181
  };
177
182
  }>;
178
183
  export type WrunOptionViewWord = keyof typeof WRUN_OPTION_VIEWS;
184
+ /** Every word `page_view` and `page_views` take: the views of the block and the book folds. */
185
+ export type WrunOptionPageViewWord = WrunOptionViewWord | WrunOptionBookViewWord;
179
186
  /** One view an ask names: its word and its params by wire name, each a finite number. */
180
187
  export interface WrunOptionView {
181
- view: WrunOptionViewWord;
188
+ view: WrunOptionPageViewWord;
182
189
  params: Readonly<Record<string, number>>;
183
190
  }
184
191
  /** The hint band each side of the hint, percent of it (section 12: 0.5% of the close). */
@@ -194,10 +201,11 @@ export declare const WRUN_OPTION_VIEWS_ONE_ASK_CODE = "wrun_option_views_one_ask
194
201
  * B of the gateway, built for one `nearestExpiries`, so an input of another word would read views of another B (the
195
202
  * SDK asks each word apart; one acquisition per word would serve them). */
196
203
  export declare const WRUN_OPTION_VIEWS_ONE_EXPIRIES_CODE = "wrun_option_views_one_expiries";
197
- /** A view's spec, or undefined for a word that names none. */
204
+ /** A view's spec, a view of the block or a book fold (the kit's `wrunOptionPageViewSpec`), or undefined for a word
205
+ * that names none. */
198
206
  export declare function wrunOptionViewSpec(word: unknown): WrunOptionViewSpec | undefined;
199
207
  /** Why this host does not read a view yet, in a refusal's words, or undefined when it reads it (every projection,
200
- * option_contract_state's folds but `oi_board`, which follows the chart's close). */
208
+ * options_chain's book folds, option_contract_state's folds but `oi_board`, which follows the chart's close). */
201
209
  export declare function wrunOptionViewUnread(spec: WrunOptionViewSpec): string | undefined;
202
210
  /**
203
211
  * The knobs an input names its views in: `page_view` (one word) or `page_views` (a list), the chain page's views
@@ -217,13 +225,31 @@ export declare function wrunOptionViewParamKnobs(source: Readonly<Record<string,
217
225
  * An input's views, validated (main thread, after the paint seam): undefined when it declares none (today's path),
218
226
  * else the views in canonical order (`canonicalViews`). Refuses by name a word that names no view of the input's
219
227
  * class, a view this host does not read yet (`wrunOptionViewUnread`), and a param that is no finite number (a
220
- * `"@<param>"` the sheet declares no param of stays a string here).
228
+ * `"@<param>"` the sheet declares no param of stays a string here). An input naming a book fold has every word judged
229
+ * first, then its book knobs by the kit's rules (`wrunOptionBookViewIssue`: a value outside what a knob takes on a
230
+ * declared word, a book knob no declared word takes, `nearest` beside `days`, an `expiries` word other than "all"),
231
+ * each refused by its knob (`wrun_option_knob_invalid`) with the kit's words; an input of views of the block alone
232
+ * is read word by word, as before.
221
233
  */
222
234
  export declare function wrunOptionViewsOfSource(input: object, ctx: {
223
235
  inputName: string;
224
236
  sourceClass: string;
225
237
  }, cls: WrunOptionViewClass): WrunOptionView[] | undefined;
226
- /** The union of several inputs' views, canonical. */
238
+ /** The most views one ask names: the data plane's `MaxViews` (it refuses an ask naming more). */
239
+ export declare const WRUN_OPTION_VIEWS_MAX_PER_ASK = 16;
240
+ /** The plan's refusal of one lane whose inputs' views make an ask of more views than the data plane answers. */
241
+ export declare const WRUN_OPTION_VIEWS_TOO_MANY_CODE = "wrun_option_views_too_many";
242
+ /** The plan's refusal of one options_chain lane whose view inputs read a book fold and different views: the lane asks
243
+ * their union ONCE, and a book fold's rows name no input, so each input would read every other input's book rows (two
244
+ * `numbers` asks' scope and expiry rows twice over), and an input narrower than the union's widest word would read
245
+ * none of them (an input's reader keeps the rows of its own width alone). */
246
+ export declare const WRUN_OPTION_BOOK_VIEWS_ONE_ASK_CODE = "wrun_option_book_views_one_ask";
247
+ /**
248
+ * The union of several inputs' views, canonical: the views one lane asks for every input it serves. Refused by name
249
+ * before any read: inputs that read a book fold and different views (`WRUN_OPTION_BOOK_VIEWS_ONE_ASK_CODE`; one input
250
+ * may name several words), and a union of more views than one ask may name (`WRUN_OPTION_VIEWS_MAX_PER_ASK`). One
251
+ * input's views never pass the cap (each word once).
252
+ */
227
253
  export declare function wrunOptionViewsUnion(sets: ReadonlyArray<readonly WrunOptionView[]>): WrunOptionView[];
228
254
  /** The canonical text of a set of views (the payload's `<prefix>Views`). */
229
255
  export declare function wrunOptionViewsText(views: readonly WrunOptionView[]): string;
@@ -243,7 +269,9 @@ export interface WrunOptionsChainViewScope {
243
269
  /** The smallest `max_cells` over the lane's inputs; absent when none declares one. */
244
270
  maxContracts?: number;
245
271
  }
246
- /** A view ask's payload fields (see the module doc). */
272
+ /** A view ask's payload fields (see the module doc). The gateway's scope inputs size B: an options_chain ask naming
273
+ * book folds alone reads no B, so it carries neither (`wrunOptionViewsReadBlock`), nor the hint margin (no book fold
274
+ * is hinted); a mixed ask keeps them for the views of the block. */
247
275
  export declare function wrunOptionViewLaneFields(cls: WrunOptionViewClass, views: readonly WrunOptionView[], scope?: WrunOptionsChainViewScope): Record<string, unknown>;
248
276
  /** The view fields of a payload, as they ride (a K control copies them onto the request it builds). */
249
277
  export declare function wrunOptionViewPayloadFields(cls: WrunOptionViewClass, payload: Readonly<Record<string, unknown>> | undefined): Record<string, unknown>;
@@ -304,10 +332,11 @@ export declare const WRUN_OPTION_LANE_WORDS: Readonly<Record<WrunOptionLaneClass
304
332
  words: readonly string[];
305
333
  }>>;
306
334
  /**
307
- * What one per-bar param knob takes (the SDK's `WrunOptionKnobSpec`): a number in min..max (`above` excludes min,
308
- * `below` excludes max), a whole number, or (`codes`) one of a few numbers, each naming a choice (a select setting's
309
- * picked index); a flag takes true or false, never a setting. `what` names it in a refusal; `fallback` is what an
310
- * absent knob reads (absent: the knob is required).
335
+ * What one per-bar or book fold param knob takes (the SDK's `WrunOptionKnobSpec`): a number in min..max (`above`
336
+ * excludes min, `below` excludes max), a whole number, or (`codes`) one of a few numbers, each naming a choice (a
337
+ * select setting's picked index); `zero` takes 0 beside the range (a book fold's part turned off: strike_profile's
338
+ * `points` 0 answers no curve); a flag takes true or false, never a setting. `what` names it in a refusal; `fallback`
339
+ * is what an absent per-bar knob reads (absent: the knob is required).
311
340
  */
312
341
  export interface WrunOptionKnobSpec {
313
342
  readonly kind: 'number' | 'whole' | 'time' | 'flag';
@@ -315,6 +344,7 @@ export interface WrunOptionKnobSpec {
315
344
  readonly max?: number;
316
345
  readonly above?: boolean;
317
346
  readonly below?: boolean;
347
+ readonly zero?: true;
318
348
  readonly codes?: Readonly<Record<number, string>>;
319
349
  readonly what: string;
320
350
  readonly fallback?: number;
@@ -336,10 +366,10 @@ export declare function wrunOptionLaneKnobSpecs(cls: WrunOptionLaneClass, word:
336
366
  /** Every param knob a per-bar class takes, over its words, each once, in table order (the SDK's
337
367
  * `wrunOptionViewParamKnobsOf`). */
338
368
  export declare function wrunOptionLaneParamKnobs(cls: WrunOptionLaneClass): readonly string[];
339
- /** Whether a number is a legal value of a per-bar knob, a flag's 0 or 1 included (the SDK's
369
+ /** Whether a number is a legal value of a per-bar or book fold knob, a flag's 0 or 1 included (the SDK's
340
370
  * `wrunOptionKnobSpecLegal`). */
341
371
  export declare function wrunOptionKnobSpecLegal(spec: WrunOptionKnobSpec, value: number): boolean;
342
- /** What a per-bar knob takes, as a refusal spells it (the SDK's `wrunOptionKnobSpecTakes`). */
372
+ /** What a per-bar or book fold knob takes, as a refusal spells it (the SDK's `wrunOptionKnobSpecTakes`). */
343
373
  export declare function wrunOptionKnobSpecTakes(spec: WrunOptionKnobSpec): string;
344
374
  /** 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. */
345
375
  export interface WrunOptionLaneAsk {
@@ -347,7 +377,8 @@ export interface WrunOptionLaneAsk {
347
377
  word: string;
348
378
  params: Readonly<Record<string, number>>;
349
379
  }
350
- /** Why an input's per-bar knobs refuse: the knob, its value and what it takes (the SDK's `WrunOptionViewIssue`). */
380
+ /** Why an input's per-bar or book fold knobs refuse: the knob, its value and what it takes (the SDK's
381
+ * `WrunOptionViewIssue`). */
351
382
  export interface WrunOptionLaneIssue {
352
383
  knob: string;
353
384
  value: unknown;
@@ -372,6 +403,222 @@ export declare function wrunOptionLaneAskOfSource(source: object, ctx: {
372
403
  inputName: string;
373
404
  sourceClass: string;
374
405
  }): WrunOptionLaneAsk | undefined;
406
+ /** One book fold's contract (the kit's `WrunOptionBookViewSpec`): an options_chain fold of the book, its wire kind
407
+ * (pb-common `OptionChainViewKind`), its params (the input's knob, then the wire name), what each knob takes, what the
408
+ * data plane reads for a param the ask leaves out (by wire name; a `days` of 0 is none, and no ask carries it) and
409
+ * the layouts it answers, in their order. No book fold is hinted and none has a required param. */
410
+ export interface WrunOptionBookViewSpec extends WrunOptionViewSpec {
411
+ cls: 'options_chain';
412
+ answer: 'fold';
413
+ book: true;
414
+ kind: number;
415
+ knobs: Readonly<Record<string, WrunOptionKnobSpec>>;
416
+ defaults: Readonly<Record<string, number>>;
417
+ layouts: readonly WrunOptionBookLayout[];
418
+ }
419
+ /** Every book fold, in kind order (the kit's `WRUN_OPTION_BOOK_VIEWS`): the wire's kind is OPTION_CHAIN_VIEW_<WORD>
420
+ * (numbers 20, vol_term 22, smile 23, surface 24, strike_profile 25). Their words follow the views of the block on
421
+ * options_chain. */
422
+ export declare const WRUN_OPTION_BOOK_VIEWS: Readonly<{
423
+ readonly numbers: {
424
+ readonly cls: "options_chain";
425
+ readonly answer: "fold";
426
+ readonly book: true;
427
+ readonly kind: 20;
428
+ readonly params: {
429
+ readonly nearest: "nearest";
430
+ readonly days: "days";
431
+ };
432
+ readonly knobs: {
433
+ readonly nearest: WrunOptionKnobSpec;
434
+ readonly days: WrunOptionKnobSpec;
435
+ };
436
+ readonly defaults: {
437
+ readonly nearest: 0;
438
+ readonly days: 0;
439
+ };
440
+ readonly layouts: readonly ["numbers"];
441
+ };
442
+ readonly vol_term: {
443
+ readonly cls: "options_chain";
444
+ readonly answer: "fold";
445
+ readonly book: true;
446
+ readonly kind: 22;
447
+ readonly params: {};
448
+ readonly knobs: {};
449
+ readonly defaults: {};
450
+ readonly layouts: readonly ["vol_term"];
451
+ };
452
+ readonly smile: {
453
+ readonly cls: "options_chain";
454
+ readonly answer: "fold";
455
+ readonly book: true;
456
+ readonly kind: 23;
457
+ readonly params: {
458
+ readonly count: "count";
459
+ readonly window_pct: "windowPct";
460
+ };
461
+ readonly knobs: {
462
+ readonly count: Readonly<{
463
+ kind: "whole";
464
+ min: 1;
465
+ max: 3;
466
+ what: "the smile's series (the expiries nearest today, 7 and 30 days out, the first N)";
467
+ }>;
468
+ readonly window_pct: WrunOptionKnobSpec;
469
+ };
470
+ readonly defaults: {
471
+ readonly count: 3;
472
+ readonly windowPct: 40;
473
+ };
474
+ readonly layouts: readonly ["smile_series", "smile_point"];
475
+ };
476
+ readonly surface: {
477
+ readonly cls: "options_chain";
478
+ readonly answer: "fold";
479
+ readonly book: true;
480
+ readonly kind: 24;
481
+ readonly params: {
482
+ readonly lens: "lens";
483
+ readonly window_pct: "windowPct";
484
+ readonly columns: "columns";
485
+ readonly rows: "rows";
486
+ };
487
+ readonly knobs: {
488
+ readonly lens: Readonly<{
489
+ kind: "whole";
490
+ codes: Readonly<{
491
+ 0: "gex";
492
+ 1: "oi";
493
+ 2: "iv";
494
+ 3: "dex";
495
+ 4: "vex";
496
+ }>;
497
+ what: "the lens";
498
+ }>;
499
+ readonly window_pct: WrunOptionKnobSpec;
500
+ readonly columns: Readonly<{
501
+ kind: "whole";
502
+ min: 1;
503
+ max: 16;
504
+ what: "the expiry columns";
505
+ }>;
506
+ readonly rows: Readonly<{
507
+ kind: "whole";
508
+ min: 1;
509
+ max: 64;
510
+ what: "the strike rows";
511
+ }>;
512
+ };
513
+ readonly defaults: {
514
+ readonly lens: 0;
515
+ readonly windowPct: 20;
516
+ readonly columns: 8;
517
+ readonly rows: 21;
518
+ };
519
+ readonly layouts: readonly ["surface_cell"];
520
+ };
521
+ readonly strike_profile: {
522
+ readonly cls: "options_chain";
523
+ readonly answer: "fold";
524
+ readonly book: true;
525
+ readonly kind: 25;
526
+ readonly params: {
527
+ readonly nearest: "nearest";
528
+ readonly days: "days";
529
+ readonly window_pct: "windowPct";
530
+ readonly strikes: "strikes";
531
+ readonly points: "points";
532
+ readonly half_pct: "halfPct";
533
+ };
534
+ readonly knobs: {
535
+ readonly nearest: WrunOptionKnobSpec;
536
+ readonly days: WrunOptionKnobSpec;
537
+ readonly window_pct: Readonly<{
538
+ kind: "number";
539
+ min: 0;
540
+ max: 100;
541
+ what: "the strike rows within this percent of S0 (0: every strike)";
542
+ }>;
543
+ readonly strikes: Readonly<{
544
+ kind: "whole";
545
+ codes: Readonly<{
546
+ 0: "no strike rows";
547
+ 1: "a row a strike";
548
+ }>;
549
+ what: "the strike rows";
550
+ }>;
551
+ readonly points: Readonly<{
552
+ kind: "whole";
553
+ min: 2;
554
+ max: 1000;
555
+ zero: true;
556
+ what: "the curve's points (0: no curve)";
557
+ }>;
558
+ readonly half_pct: Readonly<{
559
+ kind: "number";
560
+ min: 0;
561
+ max: 50;
562
+ above: true;
563
+ what: "the curve's reach, a percent of S0 each side";
564
+ }>;
565
+ };
566
+ readonly defaults: {
567
+ readonly nearest: 0;
568
+ readonly days: 0;
569
+ readonly windowPct: 0;
570
+ readonly strikes: 1;
571
+ readonly points: 0;
572
+ readonly halfPct: 15;
573
+ };
574
+ readonly layouts: readonly ["profile_strike", "profile_levels", "profile_point"];
575
+ };
576
+ }>;
577
+ export type WrunOptionBookViewWord = keyof typeof WRUN_OPTION_BOOK_VIEWS;
578
+ /** The book folds' words, in kind order. */
579
+ export declare const WRUN_OPTION_BOOK_VIEW_WORDS: readonly WrunOptionBookViewWord[];
580
+ /** f64s per view block row of each book word (the kit's `WRUN_OPTION_BOOK_VIEW_ROW_WIDTHS`): the layout column, then
581
+ * the wider of its widest layout and the book stamp (ten cells, riding every book answer). An input's rows are the
582
+ * widest of its words (`wrunOptionViewWordsRowWidth`), never narrower than the class's view row. */
583
+ export declare const WRUN_OPTION_BOOK_VIEW_ROW_WIDTHS: Readonly<{
584
+ readonly numbers: 12;
585
+ readonly vol_term: 16;
586
+ readonly smile: 11;
587
+ readonly surface: 11;
588
+ readonly strike_profile: 13;
589
+ }>;
590
+ /** What options_chain's `expiries` takes beside a book fold (the kit's `WRUN_OPTION_BOOK_EXPIRIES_TAKES`): its default
591
+ * alone. A book fold reads the whole book, so any other word would be dropped unseen. */
592
+ export declare const WRUN_OPTION_BOOK_EXPIRIES_TAKES = "\"all\" (or no expiries) beside a book fold (numbers, vol_term, smile, surface, strike_profile): it reads the whole book; a fold's own nearest or days scopes it";
593
+ /** What a book fold's `days` takes beside `nearest` on a word that takes both (the kit's
594
+ * `WRUN_OPTION_BOOK_SCOPE_TAKES`): nothing (the data plane refuses two scopes). */
595
+ export declare const WRUN_OPTION_BOOK_SCOPE_TAKES = "one scope of a book fold's expiries, \"nearest\" or \"days\", never both";
596
+ /** The knobs a view of the block shares with a book fold on options_chain, as that view takes them (the kit's
597
+ * `WRUN_OPTION_PAGE_VIEW_KNOBS` rows): a shared knob takes one value for every declared word and must be legal on
598
+ * each (`wrunOptionBookViewIssue`), so `nearest` 0 refuses beside `exposure`, `lens` 5 and 6 beside `surface`, and
599
+ * `points` 0 beside `horizon_otm` and `gex_curve`. */
600
+ export declare const WRUN_OPTION_BOOK_SHARED_KNOBS: Readonly<Record<string, Readonly<Record<string, WrunOptionKnobSpec>>>>;
601
+ /** A book fold's spec, or undefined for a word that names none. */
602
+ export declare function wrunOptionBookViewSpec(word: unknown): WrunOptionBookViewSpec | undefined;
603
+ /** Whether a word names a book fold. */
604
+ export declare function wrunOptionPageViewIsBook(word: unknown): word is WrunOptionBookViewWord;
605
+ /** Whether an ask's views read the block B (the kit's `wrunOptionViewsReadBlock`): any view but a book fold. Only such
606
+ * an ask carries B's facts (the live bar's open on each view of B, the expiries word and the max-contracts size B is
607
+ * shaped by, the spot hint of a hinted view); an ask naming book folds alone carries each view's kind and its own
608
+ * params, nothing else. */
609
+ export declare function wrunOptionViewsReadBlock(views: ReadonlyArray<{
610
+ readonly view: string;
611
+ }>): boolean;
612
+ /**
613
+ * The first issue of an options_chain input's book knobs, the kit's rules (`wrunOptionViewAskOf`) in its order, or
614
+ * undefined (also for words naming no book fold: an input of views of the block alone keeps its reads): each declared
615
+ * knob a book fold takes, legal on every declared word that takes it (a book fold's own spec, a view of the block's
616
+ * shared one, `WRUN_OPTION_BOOK_SHARED_KNOBS`), else refused with what it takes there and the word; such a knob beside
617
+ * no declared word that takes it (`a param of "<word>" only`); `nearest` beside `days` on a word that takes both
618
+ * (`WRUN_OPTION_BOOK_SCOPE_TAKES`); the class's `expiries` other than "all" (`WRUN_OPTION_BOOK_EXPIRIES_TAKES`). A
619
+ * view of the block's own knobs are the kit planner's where the rows are built.
620
+ */
621
+ export declare function wrunOptionBookViewIssue(source: Readonly<Record<string, unknown>>, words: readonly string[]): WrunOptionLaneIssue | undefined;
375
622
  /** f64s per row of a view block (the page views' folds) and of the strike kit fold (the SDK's
376
623
  * `WRUN_OPTION_VIEW_ROW_WIDTHS`): the layout, then the widest layout's fields. */
377
624
  export declare const WRUN_OPTION_VIEW_ROW_WIDTHS: Readonly<{
@@ -389,10 +636,47 @@ export declare const WRUN_OPTION_STRIKES_KIT_LAYOUTS: Readonly<{
389
636
  /** The column of a kit levels row that says the bar was refused (its newest minute held more rows than the input's
390
637
  * `max_cells`): 1 refused, 0 served. */
391
638
  export declare const WRUN_OPTION_STRIKES_KIT_REFUSED_COLUMN = 13;
639
+ /**
640
+ * `option_strikes`' strike velocity knob (contract H; the om schema takes the knob by this name and shape): a literal
641
+ * list of 1 to 7 distinct windows in minutes, each one of `WRUN_OPTION_STRIKES_VELOCITY_WINDOWS`, in the order its
642
+ * columns take. A setting's handle (`"@param"`) never names it: the windows size the block, and a setting never
643
+ * resizes one (`wrunOptionInputTupleWidth`).
644
+ */
645
+ export declare const WRUN_OPTION_STRIKES_VELOCITY_KNOB = "velocity_windows";
646
+ /** The windows the gateway answers velocity over (tsdb-gateway `optionStrikeVelocityWindows`), in minutes. */
647
+ export declare const WRUN_OPTION_STRIKES_VELOCITY_WINDOWS: readonly number[];
648
+ /** What `velocity_windows` takes, for a refusal. */
649
+ export declare const WRUN_OPTION_STRIKES_VELOCITY_TAKES = "a list of 1 to 7 distinct windows in minutes, each one of 1, 5, 10, 15, 60, 240 and 1440";
650
+ /** The ask's field the windows ride (the K control copies it, the worker twin reads it), in the knob's order. */
651
+ export declare const WRUN_OPTION_STRIKES_VELOCITY_FIELD = "strikeVelocityWindowsMin";
652
+ /**
653
+ * The velocity lists a tuple appends after `underlying` when the knob is set, in this order, each one entry per window
654
+ * in the knob's order: the change of net GEX, net DEX, net VEX, and the open interest (calls plus puts, in contracts).
655
+ */
656
+ export declare const WRUN_OPTION_STRIKES_VELOCITY_LISTS: readonly string[];
657
+ /** A `velocity_windows` value's windows in its own order, or undefined for a value outside the knob's words. */
658
+ export declare function wrunOptionStrikesVelocityWindows(value: unknown): number[] | undefined;
659
+ /** The f64s per tuple of a velocity read: the class's tuple, then one value per list per window. */
660
+ export declare function wrunOptionStrikesVelocityWidth(classWidth: number, windows: readonly number[]): number;
661
+ /**
662
+ * The f64s per row of a block whose words are `words` (the kit's `wrunOptionViewWordsRowWidth`, each a word of the
663
+ * class or not): the class's own width (`classWidth`) when no word names a fold; else the widest row a declared word
664
+ * answers, the class's view row (`WRUN_OPTION_VIEW_ROW_WIDTHS`) widened to a declared book fold's own
665
+ * (`WRUN_OPTION_BOOK_VIEW_ROW_WIDTHS`). The words alone decide it, never a param, so a setting never resizes a block:
666
+ * the one rule an input's width (`wrunOptionInputTupleWidth`) and an instance's (`wrunOptionLaneTupleWidth`) read.
667
+ */
668
+ export declare function wrunOptionViewWordsRowWidth(sourceClass: WrunOptionViewClass | WrunOptionLaneClass, words: readonly unknown[], classWidth: number): number;
669
+ /** The f64s per row a class's view block may take, ascending (the kit's `wrunOptionViewRowWidthsOf`): its view row,
670
+ * and on options_chain each book fold's own (never the class's tuple width). A host tells a view block from class
671
+ * tuples by the width alone (the kit's `wrunCellBlockIsViewRows`). */
672
+ export declare function wrunOptionViewRowWidthsOf(sourceClass: WrunOptionViewClass | WrunOptionLaneClass): readonly number[];
392
673
  /**
393
674
  * The f64s per tuple one input's block carries (the SDK's `wrunOptionInputTupleWidth`, the one rule every host sizes
394
- * 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
395
- * own width. The words alone decide it, never a param, so a setting never resizes a block.
675
+ * by): a view block's row width when its words name a fold (`wrunOptionViewWordsRowWidth`: a page view fold, a book
676
+ * fold's own width when wider, the strike kit fold), the class's tuple and its velocity lists when an `option_strikes`
677
+ * input names `velocity_windows` (`wrunOptionStrikesVelocityWidth`; the kit sizes it so from the om schema's knob on,
678
+ * `WRUN_OPTION_STRIKES_VELOCITY_SERVED`), else the class's own width. The words alone decide it, never a param, so a
679
+ * setting never resizes a block.
396
680
  */
397
681
  export declare function wrunOptionInputTupleWidth(source: Readonly<Record<string, unknown>>, classWidth: number): number;
398
682
  /** pb-common `OptionSurfacePick` by word (the gateway decodes numbers, never names). */
@@ -400,18 +684,21 @@ export declare const WRUN_OPTION_SURFACE_PICK_CODES: Readonly<Record<string, num
400
684
  /** pb-common `StrikeMetric` by the kit fold's lens code (0 gamma, 1 delta, 2 vega): NET_GEX, DEX, VEX. */
401
685
  export declare const WRUN_OPTION_STRIKES_KIT_METRICS: Readonly<Record<number, number>>;
402
686
  /**
403
- * The `OptionReadShape` G5 fields (pb-common 12.72.0, fields 40 to 51) a per-bar ask names, as they ride the lane's
687
+ * The `OptionReadShape` G5 fields (pb-common 12.74.0, fields 40 to 53) a per-bar ask names, as they ride the lane's
404
688
  * payload and the gateway reads them (JSON names, enums as numbers):
405
689
  * - the surface pick: `surfacePick` (1 nearest_days, 2 tenor_bracket) with `surfaceDays` and `surfaceDelta` (25 or
406
690
  * 10, the wings) or `surfaceTenorDays`;
407
691
  * - the strike kit fold: `strikeKitFold`, `strikeNearest`, `strikeKitWindowPct`, `strikeStepRows`, `strikeCarryNext`,
408
692
  * `strikeLevels`, `strikeMaxCells` (the input's `max_cells`: a minute with more rows answers a refused levels row)
409
- * and `strikeKitMetric` (the lens).
693
+ * and `strikeKitMetric` (the lens); with `curve` (OPTLOAD W3 U4) `strikeKitCurve` and `strikeKitMultiplier` (the
694
+ * chart's `market.option_multiplier()`, `facts.optionMultiplier`; 0, which the gateway reads as 1, when unknown),
695
+ * both or neither, so an input without `curve` asks exactly what it asked before.
410
696
  * The fields key the lane instance, so two inputs asking two picks are two reads, and an input declaring no word asks
411
697
  * none of them (today's read).
412
698
  */
413
699
  export declare function wrunOptionLaneAskFields(ask: WrunOptionLaneAsk, facts?: {
414
700
  maxCells?: number;
701
+ optionMultiplier?: number;
415
702
  }): Record<string, unknown>;
416
703
  /** A per-bar ask read back off a payload (the worker twins, the K controls): the G5 fields as they ride, or
417
704
  * undefined for a payload that names none (today's read). */
@@ -428,6 +715,9 @@ export interface WrunOptionLaneAskRead {
428
715
  strikeLevels?: boolean;
429
716
  strikeMaxCells?: number;
430
717
  strikeKitMetric?: number;
718
+ /** Set (with its multiplier) only on an ask whose input declares `curve`. */
719
+ strikeKitCurve?: true;
720
+ strikeKitMultiplier?: number;
431
721
  }
432
722
  /** A per-bar ask's fields of a payload, as they ride (a K control copies them onto the request it builds). */
433
723
  export declare function wrunOptionLanePayloadFields(cls: WrunOptionLaneClass, payload: Readonly<Record<string, unknown>> | undefined): Record<string, unknown>;
@@ -449,8 +739,10 @@ export declare function wrunOptionKitBarHasRows(tuples: ReadonlyArray<unknown>):
449
739
  /**
450
740
  * The f64s per row an instance's rows carry, by its facets (the SDK's `wrunAskTupleWidth`, the ask's side of
451
741
  * `wrunOptionInputTupleWidth`: the views ride the instance's key, so every input it serves shares its width): the kit
452
- * fold's rows on an instance asking it, a view block's rows on one whose views (`<prefix>Views`) name a fold of its
453
- * class (Top Contracts' totals), else the class's own tuple (`classWidth`).
742
+ * fold's rows on an instance asking it, the class's tuple and its velocity lists on an `option_strikes` instance asking
743
+ * velocity windows (`WRUN_OPTION_STRIKES_VELOCITY_FIELD`), a view block's rows on one whose views (`<prefix>Views`) name
744
+ * a fold of its class (Top Contracts' totals; a book fold, at the widest of its words,
745
+ * `wrunOptionViewWordsRowWidth`), else the class's own tuple (`classWidth`).
454
746
  */
455
747
  export declare function wrunOptionLaneTupleWidth(sourceClass: string, acquisition: Readonly<Record<string, unknown>>, classWidth: number): number;
456
748
  /**
@@ -476,11 +768,14 @@ export declare function wrunOptionLaneFirstPaintBudget(sourceClass: string, acqu
476
768
  export declare function wrunOptionSurfacePickTuples(tuples: ReadonlyArray<ReadonlyArray<number>>, word: string, params: Readonly<Record<string, number>>): number[][];
477
769
  /**
478
770
  * The chart's chain on the OPRA plane by coin, held in place of the chain directory's answer (section 8, O1): the
479
- * chain `wrunLaneOpraPlaneChain` reads for the chart's coin when the chart's options ride the OPRA plane (the
480
- * planner's verdict when the lane context carries it, `opraPlane`, else the run's own rule over the chart's exchange,
481
- * `governedOptionPlane`, the predicate the planners' `isOpraPlaneExchange` is). Undefined off the plane, for a chart
482
- * naming no coin, and while another screen holds the plane's session (the directory resolution then stops by that
483
- * name before any read). Main thread only; the lane resolver loads lazily (this module stays light: the paint seam
484
- * reads its view table).
771
+ * chain `wrunLaneOpraPlaneChain` reads for the coin when the chart's options ride the OPRA plane. With the planner's
772
+ * verdict (`opraPlane`, which the lane context carries: a stock twin's context names its stock's ticker as the coin) the
773
+ * coin is read as given; without one the market is judged through the options seam (the gate port's
774
+ * `chartOptionsMarket`, then `governedOptionPlane` over the market it answers, exchange and `symbol` both: the
775
+ * predicate the planners' `isOpraPlaneExchange` is), and a stock twin's chain is its stock's, by the twin's ticker,
776
+ * never the chart's own coin, naming the chart market (`stockTwinOf`). Undefined off the plane, for a chart naming no
777
+ * coin, and while another screen holds the plane's session (the directory resolution then stops by that name before
778
+ * any read). Main thread only; the lane resolver loads lazily (this module stays light: the paint seam reads its view
779
+ * table).
485
780
  */
486
- export declare function wrunHeldOpraPlaneChain(exchange: unknown, coin: unknown, opraPlane?: boolean): Promise<WrunLaneChartChain | undefined>;
781
+ export declare function wrunHeldOpraPlaneChain(exchange: unknown, coin: unknown, opraPlane?: boolean, symbol?: unknown): Promise<WrunLaneChartChain | undefined>;