@orangecharts/wrun-chart-host 0.8.0 → 0.10.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 (246) hide show
  1. package/README.md +3 -1
  2. package/dist/constants/feature-flags.constants.d.ts +9 -0
  3. package/dist/constants/feature-flags.constants.js +86 -16
  4. package/dist/constants/marketCapabilities.constants.d.ts +14 -9
  5. package/dist/constants/marketCapabilities.constants.js +36 -13
  6. package/dist/constants/opra-compliance.constants.d.ts +15 -0
  7. package/dist/constants/opra-compliance.constants.js +15 -0
  8. package/dist/constants/option-venues.constants.d.ts +11 -6
  9. package/dist/constants/option-venues.constants.js +5 -2
  10. package/dist/constants/scriptEditor/builtin-script-snippets.d.ts +26 -0
  11. package/dist/constants/scriptEditor/builtin-script-snippets.js +6 -0
  12. package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.d.ts +15 -0
  13. package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.js +17 -0
  14. package/dist/constants/venue-presets.constants.d.ts +20 -20
  15. package/dist/constants/venue-presets.constants.js +24 -26
  16. package/dist/host-env.d.ts +39 -9
  17. package/dist/host-env.js +6 -0
  18. package/dist/host-ports.types.d.ts +108 -18
  19. package/dist/index.d.ts +14 -0
  20. package/dist/index.js +14 -0
  21. package/dist/interfaces/kscript-diagnostics.interface.d.ts +6 -0
  22. package/dist/interfaces/opra-realtime.interface.d.ts +13 -11
  23. package/dist/interfaces/opra-realtime.interface.js +10 -10
  24. package/dist/interfaces/replay.interface.d.ts +8 -0
  25. package/dist/interfaces/wrun-runtime.interface.d.ts +52 -15
  26. package/dist/kscript-data/controls/live-trades-merge.util.d.ts +94 -14
  27. package/dist/kscript-data/controls/live-trades-merge.util.js +132 -22
  28. package/dist/kscript-data/controls/live-trades-order-gate.util.d.ts +56 -0
  29. package/dist/kscript-data/controls/live-trades-order-gate.util.js +107 -0
  30. package/dist/market-data/billing.interface.d.ts +227 -42
  31. package/dist/market-data/billing.interface.js +60 -12
  32. package/dist/market-data/venue.d.ts +88 -6
  33. package/dist/market-data/venues/cme.contract.copy.json +66 -0
  34. package/dist/market-data/venues/cme.d.ts +126 -0
  35. package/dist/market-data/venues/cme.js +133 -0
  36. package/dist/market-data/venues/index.d.ts +165 -8
  37. package/dist/market-data/venues/index.js +48 -6
  38. package/dist/market-data/venues/opra.contract.copy.json +5 -3
  39. package/dist/market-data/venues/opra.d.ts +3 -3
  40. package/dist/market-data/venues/opra.js +5 -4
  41. package/dist/replay/replayLadder.js +3 -1
  42. package/dist/settings-templates/index.js +7 -3
  43. package/dist/settings-templates/indicator-fields.d.ts +5 -4
  44. package/dist/settings-templates/indicator-fields.js +45 -6
  45. package/dist/settings-templates/tool-rules.d.ts +27 -17
  46. package/dist/settings-templates/tool-rules.js +27 -11
  47. package/dist/settings-templates/tool-tables.generated.js +91 -31
  48. package/dist/utility/chart/book-live-bucket.util.d.ts +15 -0
  49. package/dist/utility/chart/book-live-bucket.util.js +47 -0
  50. package/dist/utility/chart/crypto-index.leaf.d.ts +2 -2
  51. package/dist/utility/chart/crypto-index.leaf.js +2 -2
  52. package/dist/utility/chart/index-mode-admission.util.js +24 -3
  53. package/dist/utility/chart/index-mode.util.d.ts +5 -2
  54. package/dist/utility/chart/index-mode.util.js +23 -13
  55. package/dist/utility/chart/kscript-drawing-safe-area.util.d.ts +35 -11
  56. package/dist/utility/chart/kscript-drawing-safe-area.util.js +145 -35
  57. package/dist/utility/chart/kscript-live-coalesce.util.d.ts +7 -2
  58. package/dist/utility/chart/kscript-live-coalesce.util.js +9 -3
  59. package/dist/utility/chart/kscript-provenance-keys.util.js +6 -0
  60. package/dist/utility/chart/kscript-standin-identity.leaf.d.ts +3 -1
  61. package/dist/utility/chart/kscript-titancharts-render-keys.constants.d.ts +32 -2
  62. package/dist/utility/chart/kscript-titancharts-render-keys.constants.js +45 -0
  63. package/dist/utility/chart/kscript-venue-policy.util.d.ts +53 -27
  64. package/dist/utility/chart/kscript-venue-policy.util.js +74 -32
  65. package/dist/utility/chart/market-session-schedule.util.d.ts +10 -0
  66. package/dist/utility/chart/market-session-schedule.util.js +16 -0
  67. package/dist/utility/chart/marketKind.util.d.ts +12 -10
  68. package/dist/utility/chart/marketKind.util.js +17 -7
  69. package/dist/utility/chart/om-panel-push-style.util.d.ts +7 -7
  70. package/dist/utility/chart/om-panel-push-style.util.js +17 -15
  71. package/dist/utility/chart/om-panel.util.js +6 -6
  72. package/dist/utility/chart/opra-read-access.leaf.d.ts +5 -3
  73. package/dist/utility/chart/opra-read-access.leaf.js +5 -3
  74. package/dist/utility/chart/profile-block-size.util.d.ts +16 -0
  75. package/dist/utility/chart/profile-block-size.util.js +7 -0
  76. package/dist/utility/chart/quote-perp.leaf.d.ts +17 -0
  77. package/dist/utility/chart/quote-perp.leaf.js +20 -0
  78. package/dist/utility/chart/rth-session.util.d.ts +3 -2
  79. package/dist/utility/chart/rth-session.util.js +2 -1
  80. package/dist/utility/chart/window-geometry.leaf.d.ts +8 -0
  81. package/dist/utility/chart/window-geometry.leaf.js +22 -6
  82. package/dist/utility/chart/wrun-run-result.util.d.ts +17 -0
  83. package/dist/utility/chart/wrun-run-result.util.js +145 -7
  84. package/dist/utility/common/transformations.util.d.ts +7 -0
  85. package/dist/utility/common/transformations.util.js +11 -0
  86. package/dist/utility/options/option-bar-anchor.util.d.ts +145 -0
  87. package/dist/utility/options/option-bar-anchor.util.js +340 -0
  88. package/dist/utility/options/option-venue.util.d.ts +21 -3
  89. package/dist/utility/options/option-venue.util.js +30 -3
  90. package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +2 -0
  91. package/dist/utility/wrun/derived-roots.util.d.ts +213 -0
  92. package/dist/utility/wrun/derived-roots.util.js +471 -0
  93. package/dist/utility/wrun/run-schedule/wrun-chart-gate-reader.util.d.ts +41 -6
  94. package/dist/utility/wrun/run-schedule/wrun-chart-gate-reader.util.js +89 -19
  95. package/dist/utility/wrun/run-schedule/wrun-gate-reader-warm.util.d.ts +9 -4
  96. package/dist/utility/wrun/run-schedule/wrun-gate-reader-warm.util.js +47 -6
  97. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +5 -3
  98. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +6 -4
  99. package/dist/utility/wrun/run-schedule/wrun-prefix-feeds.util.d.ts +2 -2
  100. package/dist/utility/wrun/run-schedule/wrun-prefix-feeds.util.js +5 -1
  101. package/dist/utility/wrun/sources/lanes/option_daily.js +5 -2
  102. package/dist/utility/wrun/sources/lanes/options_flow.js +5 -2
  103. package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +64 -19
  104. package/dist/utility/wrun/sources/opra-option-lanes.util.js +105 -35
  105. package/dist/utility/wrun/sources/row-lane-registry.js +3 -2
  106. package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +2 -1
  107. package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +9 -3
  108. package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +15 -6
  109. package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +14 -0
  110. package/dist/utility/wrun/sources/row-lanes/option_prints.js +82 -13
  111. package/dist/utility/wrun/sources/row-lanes/option_strike_flow.js +17 -4
  112. package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +55 -8
  113. package/dist/utility/wrun/sources/row-lanes/option_strikes.js +95 -14
  114. package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +5 -2
  115. package/dist/utility/wrun/sources/row-lanes/option_surface.js +7 -3
  116. package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -0
  117. package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +35 -14
  118. package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +70 -20
  119. package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.d.ts +64 -0
  120. package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.js +89 -0
  121. package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.d.ts +45 -1
  122. package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.js +114 -6
  123. package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +56 -5
  124. package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +224 -26
  125. package/dist/utility/wrun/sources/wrun-row-lanes.util.js +822 -58
  126. package/dist/utility/wrun/wrun-batched-marks.util.d.ts +16 -3
  127. package/dist/utility/wrun/wrun-batched-marks.util.js +30 -19
  128. package/dist/utility/wrun/wrun-batched-readout.util.d.ts +37 -9
  129. package/dist/utility/wrun/wrun-batched-readout.util.js +61 -15
  130. package/dist/utility/wrun/wrun-builtin-twin.util.d.ts +12 -0
  131. package/dist/utility/wrun/wrun-builtin-twin.util.js +21 -0
  132. package/dist/utility/wrun/wrun-canvas-readout.util.d.ts +4 -0
  133. package/dist/utility/wrun/wrun-cell-capacity.leaf.d.ts +66 -0
  134. package/dist/utility/wrun/wrun-cell-capacity.leaf.js +86 -0
  135. package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +192 -13
  136. package/dist/utility/wrun/wrun-chart-market-facts.util.js +437 -55
  137. package/dist/utility/wrun/wrun-color-facts.util.d.ts +19 -9
  138. package/dist/utility/wrun/wrun-color-facts.util.js +24 -14
  139. package/dist/utility/wrun/wrun-color-settings.util.d.ts +15 -4
  140. package/dist/utility/wrun/wrun-color-settings.util.js +31 -12
  141. package/dist/utility/wrun/wrun-dollar-unit-port.leaf.d.ts +17 -0
  142. package/dist/utility/wrun/wrun-dollar-unit-port.leaf.js +9 -0
  143. package/dist/utility/wrun/wrun-download-meter.util.d.ts +107 -0
  144. package/dist/utility/wrun/wrun-download-meter.util.js +134 -0
  145. package/dist/utility/wrun/wrun-download-plan.util.d.ts +99 -0
  146. package/dist/utility/wrun/wrun-download-plan.util.js +118 -0
  147. package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +11 -3
  148. package/dist/utility/wrun/wrun-draft-legend-note.util.js +26 -4
  149. package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +6 -1
  150. package/dist/utility/wrun/wrun-draft-overlay.util.js +23 -3
  151. package/dist/utility/wrun/wrun-frames.d.ts +27 -6
  152. package/dist/utility/wrun/wrun-frames.js +78 -15
  153. package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +2 -2
  154. package/dist/utility/wrun/wrun-hosted-wire-caps.js +7 -0
  155. package/dist/utility/wrun/wrun-hosted-wire.util.d.ts +7 -1
  156. package/dist/utility/wrun/wrun-hosted-wire.util.js +12 -2
  157. package/dist/utility/wrun/wrun-hud-looks.util.d.ts +51 -21
  158. package/dist/utility/wrun/wrun-hud-looks.util.js +74 -28
  159. package/dist/utility/wrun/wrun-latest-snapshot.d.ts +11 -0
  160. package/dist/utility/wrun/wrun-lifecycle-runtime.util.d.ts +8 -6
  161. package/dist/utility/wrun/wrun-lifecycle-runtime.util.js +8 -6
  162. package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +4 -2
  163. package/dist/utility/wrun/wrun-live-intake.util.d.ts +19 -9
  164. package/dist/utility/wrun/wrun-live-intake.util.js +213 -45
  165. package/dist/utility/wrun/wrun-live-tick.util.d.ts +4 -0
  166. package/dist/utility/wrun/wrun-live-tick.util.js +246 -49
  167. package/dist/utility/wrun/wrun-market-size-contract-carry.leaf.d.ts +53 -0
  168. package/dist/utility/wrun/wrun-market-size-contract-carry.leaf.js +162 -0
  169. package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +205 -48
  170. package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +277 -34
  171. package/dist/utility/wrun/wrun-market-size-defaults.util.d.ts +51 -7
  172. package/dist/utility/wrun/wrun-market-size-defaults.util.js +340 -56
  173. package/dist/utility/wrun/wrun-opra-lane.util.d.ts +17 -4
  174. package/dist/utility/wrun/wrun-opra-lane.util.js +6 -4
  175. package/dist/utility/wrun/wrun-option-prints.util.d.ts +41 -2
  176. package/dist/utility/wrun/wrun-option-prints.util.js +80 -13
  177. package/dist/utility/wrun/wrun-option-strike-flow-forecast.util.d.ts +31 -0
  178. package/dist/utility/wrun/wrun-option-strike-flow-forecast.util.js +119 -0
  179. package/dist/utility/wrun/wrun-option-strike-flow-lane.util.d.ts +26 -6
  180. package/dist/utility/wrun/wrun-option-strike-flow-lane.util.js +50 -11
  181. package/dist/utility/wrun/wrun-option-strike-flow.util.d.ts +109 -19
  182. package/dist/utility/wrun/wrun-option-strike-flow.util.js +222 -61
  183. package/dist/utility/wrun/wrun-option-views.util.d.ts +96 -18
  184. package/dist/utility/wrun/wrun-option-views.util.js +246 -51
  185. package/dist/utility/wrun/wrun-options-stop.util.d.ts +2 -1
  186. package/dist/utility/wrun/wrun-options-stop.util.js +3 -2
  187. package/dist/utility/wrun/wrun-output-style.util.d.ts +6 -2
  188. package/dist/utility/wrun/wrun-output-style.util.js +20 -2
  189. package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +20 -0
  190. package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.d.ts +31 -14
  191. package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.js +22 -0
  192. package/dist/utility/wrun/wrun-overlay-lifecycle.util.d.ts +10 -1
  193. package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +52 -4
  194. package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +7 -0
  195. package/dist/utility/wrun/wrun-overlay-recovery.util.js +25 -1
  196. package/dist/utility/wrun/wrun-overlay-result.util.d.ts +7 -1
  197. package/dist/utility/wrun/wrun-overlay-result.util.js +2 -0
  198. package/dist/utility/wrun/wrun-overlay-run.util.d.ts +134 -37
  199. package/dist/utility/wrun/wrun-overlay-run.util.js +1118 -254
  200. package/dist/utility/wrun/wrun-pack-widths.leaf.d.ts +4 -4
  201. package/dist/utility/wrun/wrun-pack-widths.leaf.js +4 -4
  202. package/dist/utility/wrun/wrun-pack.util.d.ts +7 -3
  203. package/dist/utility/wrun/wrun-pack.util.js +20 -9
  204. package/dist/utility/wrun/wrun-pane-format.util.d.ts +2 -1
  205. package/dist/utility/wrun/wrun-pane-format.util.js +7 -3
  206. package/dist/utility/wrun/wrun-panel-mount.util.d.ts +9 -0
  207. package/dist/utility/wrun/wrun-panel-mount.util.js +63 -13
  208. package/dist/utility/wrun/wrun-panel-style.util.d.ts +37 -24
  209. package/dist/utility/wrun/wrun-panel-style.util.js +100 -29
  210. package/dist/utility/wrun/wrun-param-map.util.d.ts +15 -11
  211. package/dist/utility/wrun/wrun-param-map.util.js +13 -5
  212. package/dist/utility/wrun/wrun-param-values.util.d.ts +21 -3
  213. package/dist/utility/wrun/wrun-param-values.util.js +6 -0
  214. package/dist/utility/wrun/wrun-pin-spelling.util.js +12 -11
  215. package/dist/utility/wrun/wrun-prefix-lanes.util.js +2 -2
  216. package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +50 -0
  217. package/dist/utility/wrun/wrun-refusal-surface.util.js +68 -0
  218. package/dist/utility/wrun/wrun-refusal.util.js +10 -1
  219. package/dist/utility/wrun/wrun-refused-latest.util.d.ts +10 -0
  220. package/dist/utility/wrun/wrun-refused-latest.util.js +12 -0
  221. package/dist/utility/wrun/wrun-row-source.d.ts +11 -0
  222. package/dist/utility/wrun/wrun-run-interval.util.d.ts +4 -2
  223. package/dist/utility/wrun/wrun-run-interval.util.js +9 -6
  224. package/dist/utility/wrun/wrun-script-inputs.util.d.ts +52 -1
  225. package/dist/utility/wrun/wrun-script-inputs.util.js +112 -4
  226. package/dist/utility/wrun/wrun-setting-words.util.d.ts +7 -3
  227. package/dist/utility/wrun/wrun-setting-words.util.js +13 -5
  228. package/dist/utility/wrun/wrun-socket-row-source.d.ts +27 -2
  229. package/dist/utility/wrun/wrun-socket-row-source.js +113 -8
  230. package/dist/utility/wrun/wrun-source-rows.util.d.ts +9 -1
  231. package/dist/utility/wrun/wrun-source-rows.util.js +108 -43
  232. package/dist/utility/wrun/wrun-style-words.util.js +6 -4
  233. package/dist/utility/wrun/wrun-table-chrome.util.d.ts +3 -2
  234. package/dist/utility/wrun/wrun-table-chrome.util.js +19 -11
  235. package/dist/utility/wrun/wrun-tape-per-order.util.d.ts +2 -0
  236. package/dist/utility/wrun/wrun-tape-per-order.util.js +26 -0
  237. package/dist/utility/wrun/wrun-tape-source.util.d.ts +126 -50
  238. package/dist/utility/wrun/wrun-tape-source.util.js +193 -68
  239. package/dist/utility/wrun/wrun-volume-profile-lane.util.d.ts +7 -5
  240. package/dist/utility/wrun/wrun-volume-profile-lane.util.js +8 -6
  241. package/dist/utils/replay/replay-buffer-math.d.ts +53 -2
  242. package/dist/utils/replay/replay-buffer-math.js +227 -20
  243. package/dist/workers/utils/volume-profile.worker.util.d.ts +4 -1
  244. package/dist/workers/utils/volume-profile.worker.util.js +5 -2
  245. package/dist/workers/wrun/wrun-abi-host.js +3 -2
  246. package/package.json +5 -5
@@ -185,7 +185,7 @@ export interface WrunOptionView {
185
185
  export declare const WRUN_OPTION_VIEW_MARGIN_PCT = 0.5;
186
186
  /** The lane refusal code (wrun-lane-refusal.leaf) of a view ask the gateway answered without the views. */
187
187
  export declare const WRUN_OPTION_VIEWS_UNSERVED_CODE = "option-views-unserved";
188
- /** The plan's refusal of a view whose answer no reader of this host takes yet (a fold). */
188
+ /** The plan's refusal of a view this host does not read yet (`wrunOptionViewUnread`). */
189
189
  export declare const WRUN_OPTION_VIEW_UNREAD_CODE = "wrun_option_view_unread";
190
190
  /** The plan's refusal of one chain lane whose inputs read it through views and whole at once (one ask serves both
191
191
  * never: B and a view of B are two answers). */
@@ -196,6 +196,9 @@ export declare const WRUN_OPTION_VIEWS_ONE_ASK_CODE = "wrun_option_views_one_ask
196
196
  export declare const WRUN_OPTION_VIEWS_ONE_EXPIRIES_CODE = "wrun_option_views_one_expiries";
197
197
  /** A view's spec, or undefined for a word that names none. */
198
198
  export declare function wrunOptionViewSpec(word: unknown): WrunOptionViewSpec | undefined;
199
+ /** 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). */
201
+ export declare function wrunOptionViewUnread(spec: WrunOptionViewSpec): string | undefined;
199
202
  /**
200
203
  * The knobs an input names its views in: `page_view` (one word) or `page_views` (a list), the chain page's views
201
204
  * (section 6.1's title). Never `view`: that is every input's bar view (`confirmed`, `forming`, `is_new_period`,
@@ -213,8 +216,8 @@ export declare function wrunOptionViewParamKnobs(source: Readonly<Record<string,
213
216
  /**
214
217
  * An input's views, validated (main thread, after the paint seam): undefined when it declares none (today's path),
215
218
  * else the views in canonical order (`canonicalViews`). Refuses by name a word that names no view of the input's
216
- * class, a param that is no finite number (a `"@<param>"` the sheet declares no param of stays a string here), and a
217
- * fold, which no reader of this host takes yet.
219
+ * 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).
218
221
  */
219
222
  export declare function wrunOptionViewsOfSource(input: object, ctx: {
220
223
  inputName: string;
@@ -229,7 +232,8 @@ export declare function wrunOptionViewsHinted(views: readonly WrunOptionView[]):
229
232
  /**
230
233
  * A payload's `<prefix>Views` read back (the worker twins, the K controls): the views of `cls`, canonical, or
231
234
  * undefined for a payload that names none; null for a text that is not one this module writes (a word of another
232
- * class, a param that is no finite number, garbage): the ask is refused, never widened to B whole.
235
+ * class, a view this host does not read, a param that is no finite number, garbage): the ask is refused, never
236
+ * widened to B whole.
233
237
  */
234
238
  export declare function wrunOptionViewsOf(text: unknown, cls: WrunOptionViewClass): WrunOptionView[] | null | undefined;
235
239
  /** What an `options_chain` view ask hands the gateway to size B on its page (section 5.1). */
@@ -243,10 +247,41 @@ export interface WrunOptionsChainViewScope {
243
247
  export declare function wrunOptionViewLaneFields(cls: WrunOptionViewClass, views: readonly WrunOptionView[], scope?: WrunOptionsChainViewScope): Record<string, unknown>;
244
248
  /** The view fields of a payload, as they ride (a K control copies them onto the request it builds). */
245
249
  export declare function wrunOptionViewPayloadFields(cls: WrunOptionViewClass, payload: Readonly<Record<string, unknown>> | undefined): Record<string, unknown>;
250
+ /**
251
+ * The implicit view (OPTLOAD W3 FE-STATE): an `option_contract_state` input that declares no view reads its block B
252
+ * whole, so its lane asks the gateway for exactly that, the `WHOLE` view of B (pb-common `OPTION_CHAIN_VIEW_WHOLE`,
253
+ * which the gateway answers on either class), in ONE chain summary read: no expiry directory, no page of every strike,
254
+ * no per-contract registry read. The answer is B's own class tuples in B's order, so the input reads it as it read B.
255
+ * The acquisition names it apart from any view text (`stateViews: "whole"`, never a JSON list: the authoring table
256
+ * keeps `whole` an options_chain word, as the kit does, and no author declares it on this class), so it keys an
257
+ * instance of its own (one key per chain, tier, expiries word, window and book), and the worker twin reads it back as
258
+ * the `whole` view, `implicit` (`wrunOptionViewAskFieldsOf`).
259
+ */
260
+ export declare const WRUN_OPTION_STATE_IMPLICIT_VIEW = "whole";
261
+ /** The payload field of the implicit view (`WRUN_OPTION_STATE_IMPLICIT_VIEW`), as the state lane writes it. */
262
+ export declare function wrunOptionStateImplicitViewFields(): Record<string, unknown>;
263
+ /**
264
+ * The implicit view of an `options_chain` input (OPTLOAD W3 FE-CHAIN), FE-STATE's rule on the chain class: a governed
265
+ * chain whose inputs declare no view reads its block B whole, so its lane asks the gateway's `WHOLE` view of B in ONE
266
+ * chain summary read, sized on the gateway's page by the inputs' expiries word and budget (`chainNearestExpiries`, the
267
+ * inputs' `nearest:N` when every input declares one; `chainMaxContracts`, the smallest `max_cells`; the gateway ports the
268
+ * lane scope's arithmetic, `wrunOptionsChainLaneScope`): no expiry directory before the ask and no per-contract registry
269
+ * read after it. The answer is B's 10-value tuples in B's order, so the inputs read it as they read B. The acquisition
270
+ * names it by the bare word (`chainViews: "whole"`), never a JSON list, so it never shares an author's spelling (an
271
+ * explicit `page_view: "whole"` rides as view text and is refused like any view when the gateway does not answer it),
272
+ * and the worker twin reads it back as the `whole` view, `implicit` (`wrunOptionViewAskFieldsOf`).
273
+ */
274
+ export declare const WRUN_OPTIONS_CHAIN_IMPLICIT_VIEW = "whole";
275
+ /** The payload fields of the options_chain implicit view (`WRUN_OPTIONS_CHAIN_IMPLICIT_VIEW`), as the chain lane writes
276
+ * them: the bare word, then the gateway's scope inputs. */
277
+ export declare function wrunOptionsChainImplicitViewFields(scope: WrunOptionsChainViewScope): Record<string, unknown>;
246
278
  /** A view ask read off a payload (the worker twins): the views and the scope and hint fields, or null for a payload
247
279
  * whose views are not this module's text; undefined for one that names no views (today's path). */
248
280
  export interface WrunOptionViewAskFields {
249
281
  views: WrunOptionView[];
282
+ /** The implicit WHOLE of an input that declares no view (`WRUN_OPTIONS_CHAIN_IMPLICIT_VIEW`,
283
+ * `WRUN_OPTION_STATE_IMPLICIT_VIEW`): an answer that is not B's rows is read today's way, never refused. */
284
+ implicit?: true;
250
285
  nearestExpiries?: number;
251
286
  maxContracts?: number;
252
287
  spotHint?: number;
@@ -291,6 +326,9 @@ export declare const WRUN_OPTION_LANE_KNOBS: Readonly<Record<string, Readonly<Re
291
326
  /** What `expiries` takes beside the strike kit fold (the SDK's `WRUN_OPTION_STRIKES_KIT_EXPIRIES_TAKES`, kit 0.91.1):
292
327
  * the fold keeps its expiries with its own `nearest`, so any other word beside it is refused at declaration. */
293
328
  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`";
329
+ /** What `curve` takes beside the strike kit fold (the SDK's `WRUN_OPTION_STRIKES_KIT_CURVE_TAKES`, kit 0.96.0): the
330
+ * curve row follows each bar's levels row, so `curve: true` without `levels: true` is refused at declaration. */
331
+ export declare const WRUN_OPTION_STRIKES_KIT_CURVE_TAKES = "true only beside levels: true (the curve row follows each bar's levels row), or false";
294
332
  /** A per-bar class, or undefined for a class that declares no per-bar word. */
295
333
  export declare function wrunOptionLaneClassOf(sourceClass: unknown): WrunOptionLaneClass | undefined;
296
334
  /** One word's knobs on a per-bar class (empty for a word the class does not take). */
@@ -341,18 +379,44 @@ export declare const WRUN_OPTION_VIEW_ROW_WIDTHS: Readonly<{
341
379
  readonly option_contract_state: 16;
342
380
  readonly option_strikes: 14;
343
381
  }>;
344
- /** Column 0 of every strike kit fold row (the SDK's `WRUN_OPTION_STRIKES_KIT_LAYOUTS`). */
382
+ /** Column 0 of every strike kit fold row (the SDK's `WRUN_OPTION_STRIKES_KIT_LAYOUTS`): a strike row, a bar's levels
383
+ * row and, with `curve` (kit 0.96.0), its curve row after the levels row. */
345
384
  export declare const WRUN_OPTION_STRIKES_KIT_LAYOUTS: Readonly<{
346
385
  readonly strike: 0;
347
386
  readonly levels: 1;
387
+ readonly curve: 2;
348
388
  }>;
349
389
  /** The column of a kit levels row that says the bar was refused (its newest minute held more rows than the input's
350
390
  * `max_cells`): 1 refused, 0 served. */
351
391
  export declare const WRUN_OPTION_STRIKES_KIT_REFUSED_COLUMN = 13;
392
+ /**
393
+ * `option_strikes`' strike velocity knob (contract H; the om schema takes the knob by this name and shape): a literal
394
+ * list of 1 to 7 distinct windows in minutes, each one of `WRUN_OPTION_STRIKES_VELOCITY_WINDOWS`, in the order its
395
+ * columns take. A setting's handle (`"@param"`) never names it: the windows size the block, and a setting never
396
+ * resizes one (`wrunOptionInputTupleWidth`).
397
+ */
398
+ export declare const WRUN_OPTION_STRIKES_VELOCITY_KNOB = "velocity_windows";
399
+ /** The windows the gateway answers velocity over (tsdb-gateway `optionStrikeVelocityWindows`), in minutes. */
400
+ export declare const WRUN_OPTION_STRIKES_VELOCITY_WINDOWS: readonly number[];
401
+ /** What `velocity_windows` takes, for a refusal. */
402
+ 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";
403
+ /** The ask's field the windows ride (the K control copies it, the worker twin reads it), in the knob's order. */
404
+ export declare const WRUN_OPTION_STRIKES_VELOCITY_FIELD = "strikeVelocityWindowsMin";
405
+ /**
406
+ * The velocity lists a tuple appends after `underlying` when the knob is set, in this order, each one entry per window
407
+ * in the knob's order: the change of net GEX, net DEX, net VEX, and the open interest (calls plus puts, in contracts).
408
+ */
409
+ export declare const WRUN_OPTION_STRIKES_VELOCITY_LISTS: readonly string[];
410
+ /** A `velocity_windows` value's windows in its own order, or undefined for a value outside the knob's words. */
411
+ export declare function wrunOptionStrikesVelocityWindows(value: unknown): number[] | undefined;
412
+ /** The f64s per tuple of a velocity read: the class's tuple, then one value per list per window. */
413
+ export declare function wrunOptionStrikesVelocityWidth(classWidth: number, windows: readonly number[]): number;
352
414
  /**
353
415
  * 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.
416
+ * by): a view block's row width when its words name a fold (a page view fold, the strike kit fold), the class's tuple
417
+ * and its velocity lists when an `option_strikes` input names `velocity_windows` (`wrunOptionStrikesVelocityWidth`;
418
+ * the kit sizes it so from the om schema's knob on, `WRUN_OPTION_STRIKES_VELOCITY_SERVED`), else the class's own
419
+ * width. The words alone decide it, never a param, so a setting never resizes a block.
356
420
  */
357
421
  export declare function wrunOptionInputTupleWidth(source: Readonly<Record<string, unknown>>, classWidth: number): number;
358
422
  /** pb-common `OptionSurfacePick` by word (the gateway decodes numbers, never names). */
@@ -360,18 +424,21 @@ export declare const WRUN_OPTION_SURFACE_PICK_CODES: Readonly<Record<string, num
360
424
  /** pb-common `StrikeMetric` by the kit fold's lens code (0 gamma, 1 delta, 2 vega): NET_GEX, DEX, VEX. */
361
425
  export declare const WRUN_OPTION_STRIKES_KIT_METRICS: Readonly<Record<number, number>>;
362
426
  /**
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
427
+ * The `OptionReadShape` G5 fields (pb-common 12.74.0, fields 40 to 53) a per-bar ask names, as they ride the lane's
364
428
  * payload and the gateway reads them (JSON names, enums as numbers):
365
429
  * - the surface pick: `surfacePick` (1 nearest_days, 2 tenor_bracket) with `surfaceDays` and `surfaceDelta` (25 or
366
430
  * 10, the wings) or `surfaceTenorDays`;
367
431
  * - the strike kit fold: `strikeKitFold`, `strikeNearest`, `strikeKitWindowPct`, `strikeStepRows`, `strikeCarryNext`,
368
432
  * `strikeLevels`, `strikeMaxCells` (the input's `max_cells`: a minute with more rows answers a refused levels row)
369
- * and `strikeKitMetric` (the lens).
433
+ * and `strikeKitMetric` (the lens); with `curve` (OPTLOAD W3 U4) `strikeKitCurve` and `strikeKitMultiplier` (the
434
+ * chart's `market.option_multiplier()`, `facts.optionMultiplier`; 0, which the gateway reads as 1, when unknown),
435
+ * both or neither, so an input without `curve` asks exactly what it asked before.
370
436
  * The fields key the lane instance, so two inputs asking two picks are two reads, and an input declaring no word asks
371
437
  * none of them (today's read).
372
438
  */
373
439
  export declare function wrunOptionLaneAskFields(ask: WrunOptionLaneAsk, facts?: {
374
440
  maxCells?: number;
441
+ optionMultiplier?: number;
375
442
  }): Record<string, unknown>;
376
443
  /** A per-bar ask read back off a payload (the worker twins, the K controls): the G5 fields as they ride, or
377
444
  * undefined for a payload that names none (today's read). */
@@ -388,6 +455,9 @@ export interface WrunOptionLaneAskRead {
388
455
  strikeLevels?: boolean;
389
456
  strikeMaxCells?: number;
390
457
  strikeKitMetric?: number;
458
+ /** Set (with its multiplier) only on an ask whose input declares `curve`. */
459
+ strikeKitCurve?: true;
460
+ strikeKitMultiplier?: number;
391
461
  }
392
462
  /** A per-bar ask's fields of a payload, as they ride (a K control copies them onto the request it builds). */
393
463
  export declare function wrunOptionLanePayloadFields(cls: WrunOptionLaneClass, payload: Readonly<Record<string, unknown>> | undefined): Record<string, unknown>;
@@ -406,8 +476,13 @@ export declare function wrunOptionLaneCarriesNext(sourceClass: string, acquisiti
406
476
  /** Whether one landed kit fold bar has rows the carry reads: any row, its levels row not the refusal (a refused bar
407
477
  * keeps no strike, so the carry passes over it to the next bar). */
408
478
  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`). */
479
+ /**
480
+ * The f64s per row an instance's rows carry, by its facets (the SDK's `wrunAskTupleWidth`, the ask's side of
481
+ * `wrunOptionInputTupleWidth`: the views ride the instance's key, so every input it serves shares its width): the kit
482
+ * fold's rows on an instance asking it, the class's tuple and its velocity lists on an `option_strikes` instance asking
483
+ * velocity windows (`WRUN_OPTION_STRIKES_VELOCITY_FIELD`), a view block's rows on one whose views (`<prefix>Views`) name
484
+ * a fold of its class (Top Contracts' totals), else the class's own tuple (`classWidth`).
485
+ */
411
486
  export declare function wrunOptionLaneTupleWidth(sourceClass: string, acquisition: Readonly<Record<string, unknown>>, classWidth: number): number;
412
487
  /**
413
488
  * The row budget the first-paint slice sizes an instance asking a per-bar word by (wrun-row-lane-first-paint.util, the
@@ -432,11 +507,14 @@ export declare function wrunOptionLaneFirstPaintBudget(sourceClass: string, acqu
432
507
  export declare function wrunOptionSurfacePickTuples(tuples: ReadonlyArray<ReadonlyArray<number>>, word: string, params: Readonly<Record<string, number>>): number[][];
433
508
  /**
434
509
  * The chart's chain on the OPRA plane by coin, held in place of the chain directory's answer (section 8, O1): the
435
- * chain `wrunLaneOpraPlaneChain` reads for the chart's coin when the chart's options ride the OPRA plane (the
436
- * planner's verdict when the lane context carries it, `opraPlane`, else the run's own rule over the chart's exchange,
437
- * `governedOptionPlane`, the predicate the planners' `isOpraPlaneExchange` is). Undefined off the plane, for a chart
438
- * naming no coin, and while another screen holds the plane's session (the directory resolution then stops by that
439
- * name before any read). Main thread only; the lane resolver loads lazily (this module stays light: the paint seam
440
- * reads its view table).
510
+ * chain `wrunLaneOpraPlaneChain` reads for the coin when the chart's options ride the OPRA plane. With the planner's
511
+ * verdict (`opraPlane`, which the lane context carries: a stock twin's context names its stock's ticker as the coin) the
512
+ * coin is read as given; without one the market is judged through the options seam (the gate port's
513
+ * `chartOptionsMarket`, then `governedOptionPlane` over the market it answers, exchange and `symbol` both: the
514
+ * predicate the planners' `isOpraPlaneExchange` is), and a stock twin's chain is its stock's, by the twin's ticker,
515
+ * never the chart's own coin, naming the chart market (`stockTwinOf`). Undefined off the plane, for a chart naming no
516
+ * coin, and while another screen holds the plane's session (the directory resolution then stops by that name before
517
+ * any read). Main thread only; the lane resolver loads lazily (this module stays light: the paint seam reads its view
518
+ * table).
441
519
  */
442
- export declare function wrunHeldOpraPlaneChain(exchange: unknown, coin: unknown, opraPlane?: boolean): Promise<WrunLaneChartChain | undefined>;
520
+ export declare function wrunHeldOpraPlaneChain(exchange: unknown, coin: unknown, opraPlane?: boolean, symbol?: unknown): Promise<WrunLaneChartChain | undefined>;