@orangecharts/wrun-chart-host 0.11.1 β†’ 0.15.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 (319) hide show
  1. package/README.md +1 -0
  2. package/dist/constants/feature-flags.constants.d.ts +4 -4
  3. package/dist/constants/feature-flags.constants.js +38 -52
  4. package/dist/constants/feature-limits.constants.d.ts +1 -1
  5. package/dist/constants/feature-limits.constants.js +5 -4
  6. package/dist/constants/interval.constants.d.ts +7 -0
  7. package/dist/constants/interval.constants.js +7 -0
  8. package/dist/constants/scriptEditor/cme-official-scripts.constants.d.ts +20 -149
  9. package/dist/constants/scriptEditor/cme-official-scripts.constants.js +20 -309
  10. package/dist/constants/stocks-compliance.constants.d.ts +15 -0
  11. package/dist/constants/stocks-compliance.constants.js +15 -0
  12. package/dist/host-env.d.ts +69 -3
  13. package/dist/host-env.js +21 -0
  14. package/dist/host-ports.types.d.ts +36 -3
  15. package/dist/index.d.ts +18 -0
  16. package/dist/index.js +19 -0
  17. package/dist/indicators/controls/tpo-session.util.d.ts +52 -12
  18. package/dist/indicators/controls/tpo-session.util.js +113 -16
  19. package/dist/instances/script-engine-worker-ohlcv-transfer.d.ts +6 -0
  20. package/dist/instances/script-engine-worker-ohlcv-transfer.js +16 -0
  21. package/dist/interfaces/cme-realtime.interface.d.ts +8 -0
  22. package/dist/interfaces/cme-realtime.interface.js +2 -1
  23. package/dist/interfaces/feed.interface.d.ts +15 -1
  24. package/dist/interfaces/replay.interface.d.ts +5 -0
  25. package/dist/interfaces/stocks-realtime.interface.d.ts +4 -3
  26. package/dist/interfaces/stocks-realtime.interface.js +5 -4
  27. package/dist/interfaces/wrun-runtime.interface.d.ts +141 -20
  28. package/dist/kscript-data/controls/live-ohlcv-merge.util.d.ts +17 -0
  29. package/dist/kscript-data/controls/live-ohlcv-merge.util.js +22 -0
  30. package/dist/kscript-data/controls/live-trades-merge.util.d.ts +46 -40
  31. package/dist/kscript-data/controls/live-trades-merge.util.js +80 -107
  32. package/dist/market-data/billing.interface.d.ts +9 -1
  33. package/dist/market-data/venue.d.ts +1 -1
  34. package/dist/market-data/venues/index.d.ts +5 -5
  35. package/dist/market-data/venues/opra.js +3 -3
  36. package/dist/market-data/venues/stocks.contract.copy.json +6 -5
  37. package/dist/market-data/venues/stocks.d.ts +5 -5
  38. package/dist/market-data/venues/stocks.js +21 -18
  39. package/dist/settings-templates/frvp-fields.d.ts +12 -1
  40. package/dist/settings-templates/frvp-fields.js +15 -4
  41. package/dist/settings-templates/index.js +12 -5
  42. package/dist/settings-templates/indicator-fields.js +43 -2
  43. package/dist/settings-templates/tool-rules.d.ts +17 -8
  44. package/dist/settings-templates/tool-rules.js +15 -8
  45. package/dist/settings-templates/tool-tables.generated.js +4 -2
  46. package/dist/utility/auth/server-clock.util.d.ts +3 -1
  47. package/dist/utility/auth/server-clock.util.js +3 -1
  48. package/dist/utility/chart/book-live-bucket.util.js +2 -2
  49. package/dist/utility/chart/cache-alignment.util.d.ts +38 -7
  50. package/dist/utility/chart/cache-alignment.util.js +50 -13
  51. package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +2 -0
  52. package/dist/utility/chart/chart-data-fetch-generation.util.js +16 -0
  53. package/dist/utility/chart/cme-session-bucket.util.d.ts +18 -75
  54. package/dist/utility/chart/cme-session-bucket.util.js +25 -332
  55. package/dist/utility/chart/continuous-contracts.util.js +6 -5
  56. package/dist/utility/chart/display-offset.leaf.d.ts +24 -0
  57. package/dist/utility/chart/display-offset.leaf.js +41 -0
  58. package/dist/utility/chart/effective-chart-session.util.d.ts +2 -1
  59. package/dist/utility/chart/effective-chart-session.util.js +13 -5
  60. package/dist/utility/chart/feed-interval.util.d.ts +6 -20
  61. package/dist/utility/chart/feed-interval.util.js +13 -22
  62. package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +27 -7
  63. package/dist/utility/chart/fetch-dedupe-policy.util.js +86 -11
  64. package/dist/utility/chart/footprint-band.util.d.ts +21 -5
  65. package/dist/utility/chart/footprint-band.util.js +53 -14
  66. package/dist/utility/chart/host-bar-placement.util.d.ts +7 -4
  67. package/dist/utility/chart/host-bar-placement.util.js +8 -2
  68. package/dist/utility/chart/indicator-inflight-registry.util.d.ts +32 -0
  69. package/dist/utility/chart/indicator-inflight-registry.util.js +52 -0
  70. package/dist/utility/chart/indicator-run-interval.util.d.ts +10 -4
  71. package/dist/utility/chart/indicator-run-interval.util.js +21 -12
  72. package/dist/utility/chart/interval-registry.util.d.ts +1 -1
  73. package/dist/utility/chart/interval-registry.util.js +1 -1
  74. package/dist/utility/chart/kscript-legend-entries.util.d.ts +12 -0
  75. package/dist/utility/chart/kscript-legend-entries.util.js +16 -0
  76. package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +1 -1
  77. package/dist/utility/chart/kscript-run-interval-projection.util.js +4 -2
  78. package/dist/utility/chart/kscript-venue-policy.util.d.ts +53 -62
  79. package/dist/utility/chart/kscript-venue-policy.util.js +85 -94
  80. package/dist/utility/chart/live-bucket.util.d.ts +39 -17
  81. package/dist/utility/chart/live-bucket.util.js +103 -57
  82. package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +58 -20
  83. package/dist/utility/chart/local-kscript-source-revalidation.util.js +98 -23
  84. package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +35 -11
  85. package/dist/utility/chart/local-kscript-warmup-depth.util.js +24 -3
  86. package/dist/utility/chart/market-session-schedule.util.d.ts +8 -0
  87. package/dist/utility/chart/market-session-schedule.util.js +39 -1
  88. package/dist/utility/chart/market-session.util.d.ts +136 -0
  89. package/dist/utility/chart/market-session.util.js +341 -0
  90. package/dist/utility/chart/om-panel.util.d.ts +5 -3
  91. package/dist/utility/chart/om-panel.util.js +42 -7
  92. package/dist/utility/chart/om-target.util.d.ts +14 -1
  93. package/dist/utility/chart/om-target.util.js +22 -5
  94. package/dist/utility/chart/opra-read-access.leaf.d.ts +16 -1
  95. package/dist/utility/chart/opra-read-access.leaf.js +22 -0
  96. package/dist/utility/chart/profile-row-height.util.d.ts +49 -16
  97. package/dist/utility/chart/profile-row-height.util.js +74 -37
  98. package/dist/utility/chart/rth-session.util.d.ts +55 -20
  99. package/dist/utility/chart/rth-session.util.js +94 -46
  100. package/dist/utility/chart/session-lattice.util.d.ts +150 -0
  101. package/dist/utility/chart/session-lattice.util.js +488 -0
  102. package/dist/utility/chart/trading-day.util.d.ts +40 -2
  103. package/dist/utility/chart/trading-day.util.js +84 -7
  104. package/dist/utility/chart/us-equities-session.util.d.ts +32 -11
  105. package/dist/utility/chart/us-equities-session.util.js +44 -15
  106. package/dist/utility/chart/window-geometry.leaf.d.ts +28 -7
  107. package/dist/utility/chart/window-geometry.leaf.js +57 -8
  108. package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +21 -14
  109. package/dist/utility/chart/wrun-bar-session-facts.util.js +32 -38
  110. package/dist/utility/chart/wrun-run-result.util.d.ts +38 -13
  111. package/dist/utility/chart/wrun-run-result.util.js +97 -27
  112. package/dist/utility/common/time.util.js +5 -4
  113. package/dist/utility/market-events/earnings-scope.util.d.ts +10 -5
  114. package/dist/utility/market-events/earnings-scope.util.js +17 -9
  115. package/dist/utility/market-events/market-events.util.d.ts +14 -7
  116. package/dist/utility/market-events/market-events.util.js +30 -17
  117. package/dist/utility/number-format.util.d.ts +14 -21
  118. package/dist/utility/number-format.util.js +38 -24
  119. package/dist/utility/options/option-venue-disclosure.util.d.ts +40 -6
  120. package/dist/utility/options/option-venue-disclosure.util.js +71 -11
  121. package/dist/utility/options/option-venue.util.d.ts +1 -1
  122. package/dist/utility/options/option-venue.util.js +1 -1
  123. package/dist/utility/pool-symbol.leaf.d.ts +7 -0
  124. package/dist/utility/pool-symbol.leaf.js +50 -5
  125. package/dist/utility/stocks/stock-display.util.d.ts +15 -0
  126. package/dist/utility/stocks/stock-display.util.js +37 -0
  127. package/dist/utility/symbol-selection/contract-expiry.util.js +5 -4
  128. package/dist/utility/v2/gate-plane.util.d.ts +6 -0
  129. package/dist/utility/v2/gate-plane.util.js +11 -1
  130. package/dist/utility/v2/gate-session-latch.util.d.ts +1 -1
  131. package/dist/utility/v2/gate-session-latch.util.js +3 -3
  132. package/dist/utility/v2/governed-tier.leaf.d.ts +17 -16
  133. package/dist/utility/v2/governed-tier.leaf.js +17 -16
  134. package/dist/utility/v2/stocks-governed.util.d.ts +5 -0
  135. package/dist/utility/v2/stocks-governed.util.js +14 -0
  136. package/dist/utility/v2/v2-enums.leaf.d.ts +13 -0
  137. package/dist/utility/v2/v2-enums.leaf.js +458 -0
  138. package/dist/utility/wrun/derived-roots.leaf.d.ts +21 -1
  139. package/dist/utility/wrun/derived-roots.leaf.js +27 -1
  140. package/dist/utility/wrun/derived-roots.util.d.ts +44 -32
  141. package/dist/utility/wrun/derived-roots.util.js +97 -56
  142. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +4 -3
  143. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +4 -3
  144. package/dist/utility/wrun/sources/lanes/option_daily.d.ts +2 -1
  145. package/dist/utility/wrun/sources/lanes/option_daily.js +2 -1
  146. package/dist/utility/wrun/sources/lanes/options_flow.d.ts +3 -0
  147. package/dist/utility/wrun/sources/lanes/options_flow.js +23 -5
  148. package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +3 -4
  149. package/dist/utility/wrun/sources/row-lane-registry.js +9 -4
  150. package/dist/utility/wrun/sources/row-lanes/dark_pool.d.ts +19 -0
  151. package/dist/utility/wrun/sources/row-lanes/dark_pool.js +104 -0
  152. package/dist/utility/wrun/sources/row-lanes/index.js +2 -0
  153. package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.d.ts +20 -0
  154. package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.js +103 -0
  155. package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -2
  156. package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +15 -13
  157. package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +49 -23
  158. package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +14 -9
  159. package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +75 -27
  160. package/dist/utility/wrun/sources/wrun-row-lanes.util.js +139 -82
  161. package/dist/utility/wrun/wrun-app-layer.leaf.d.ts +78 -0
  162. package/dist/utility/wrun/wrun-app-layer.leaf.js +89 -0
  163. package/dist/utility/wrun/wrun-bar-count.util.d.ts +11 -7
  164. package/dist/utility/wrun/wrun-bar-count.util.js +12 -8
  165. package/dist/utility/wrun/wrun-batched-kinds.leaf.d.ts +13 -0
  166. package/dist/utility/wrun/wrun-batched-kinds.leaf.js +18 -0
  167. package/dist/utility/wrun/wrun-batched-marks.util.d.ts +46 -23
  168. package/dist/utility/wrun/wrun-batched-marks.util.js +260 -62
  169. package/dist/utility/wrun/wrun-batched-readout.util.d.ts +26 -19
  170. package/dist/utility/wrun/wrun-batched-readout.util.js +81 -27
  171. package/dist/utility/wrun/wrun-book-bands.leaf.d.ts +8 -0
  172. package/dist/utility/wrun/wrun-book-bands.leaf.js +7 -0
  173. package/dist/utility/wrun/wrun-candle-equal.leaf.d.ts +19 -0
  174. package/dist/utility/wrun/wrun-candle-equal.leaf.js +40 -0
  175. package/dist/utility/wrun/wrun-canvas-readout.util.d.ts +4 -2
  176. package/dist/utility/wrun/wrun-canvases.util.d.ts +24 -7
  177. package/dist/utility/wrun/wrun-canvases.util.js +99 -30
  178. package/dist/utility/wrun/wrun-chart-context-names.util.d.ts +6 -3
  179. package/dist/utility/wrun/wrun-chart-context-names.util.js +8 -4
  180. package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +47 -29
  181. package/dist/utility/wrun/wrun-chart-market-facts.util.js +201 -201
  182. package/dist/utility/wrun/wrun-child-overlay-id.util.js +2 -1
  183. package/dist/utility/wrun/wrun-cme-legs-note.util.d.ts +15 -0
  184. package/dist/utility/wrun/wrun-cme-legs-note.util.js +49 -0
  185. package/dist/utility/wrun/wrun-cme-root-specs.util.d.ts +38 -0
  186. package/dist/utility/wrun/wrun-cme-root-specs.util.js +81 -0
  187. package/dist/utility/wrun/wrun-coin-lane-live.util.js +3 -0
  188. package/dist/utility/wrun/wrun-color-settings.util.d.ts +6 -1
  189. package/dist/utility/wrun/wrun-color-settings.util.js +32 -7
  190. package/dist/utility/wrun/wrun-dark-pool.util.d.ts +50 -0
  191. package/dist/utility/wrun/wrun-dark-pool.util.js +127 -0
  192. package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +67 -12
  193. package/dist/utility/wrun/wrun-declared-warmup.util.js +165 -13
  194. package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +18 -8
  195. package/dist/utility/wrun/wrun-draft-legend-note.util.js +57 -11
  196. package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +14 -10
  197. package/dist/utility/wrun/wrun-draft-overlay.util.js +26 -14
  198. package/dist/utility/wrun/wrun-earnings-facts.util.js +3 -2
  199. package/dist/utility/wrun/wrun-etf-funds.util.d.ts +2 -0
  200. package/dist/utility/wrun/wrun-etf-funds.util.js +4 -0
  201. package/dist/utility/wrun/wrun-held-lanes.util.js +8 -2
  202. package/dist/utility/wrun/wrun-history-as-of.util.d.ts +77 -0
  203. package/dist/utility/wrun/wrun-history-as-of.util.js +108 -0
  204. package/dist/utility/wrun/wrun-host.service.d.ts +64 -14
  205. package/dist/utility/wrun/wrun-host.service.js +137 -27
  206. package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +3 -3
  207. package/dist/utility/wrun/wrun-hosted-wire-caps.js +12 -2
  208. package/dist/utility/wrun/wrun-hover.util.d.ts +8 -2
  209. package/dist/utility/wrun/wrun-hover.util.js +24 -13
  210. package/dist/utility/wrun/wrun-inert-legend.util.d.ts +13 -0
  211. package/dist/utility/wrun/wrun-inert-legend.util.js +31 -3
  212. package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +7 -5
  213. package/dist/utility/wrun/wrun-input-requirements.leaf.js +16 -6
  214. package/dist/utility/wrun/wrun-install-pacer.util.d.ts +26 -0
  215. package/dist/utility/wrun/wrun-install-pacer.util.js +145 -0
  216. package/dist/utility/wrun/wrun-kit-refusal-stages.types.d.ts +22 -0
  217. package/dist/utility/wrun/wrun-kit-refusal-stages.types.js +1 -0
  218. package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +12 -5
  219. package/dist/utility/wrun/wrun-lane-refusal.leaf.js +23 -5
  220. package/dist/utility/wrun/wrun-lane-warmup.util.js +22 -4
  221. package/dist/utility/wrun/wrun-leg-close.util.d.ts +6 -5
  222. package/dist/utility/wrun/wrun-leg-close.util.js +11 -9
  223. package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +3 -1
  224. package/dist/utility/wrun/wrun-leg-fetch.util.js +9 -2
  225. package/dist/utility/wrun/wrun-levels-child.util.d.ts +2 -0
  226. package/dist/utility/wrun/wrun-levels-child.util.js +6 -0
  227. package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +4 -0
  228. package/dist/utility/wrun/wrun-live-intake.util.d.ts +15 -6
  229. package/dist/utility/wrun/wrun-live-intake.util.js +167 -47
  230. package/dist/utility/wrun/wrun-live-tick.util.d.ts +52 -8
  231. package/dist/utility/wrun/wrun-live-tick.util.js +655 -97
  232. package/dist/utility/wrun/wrun-market-facts.util.d.ts +16 -2
  233. package/dist/utility/wrun/wrun-market-facts.util.js +32 -3
  234. package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +27 -27
  235. package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +28 -16
  236. package/dist/utility/wrun/wrun-market-size-defaults.util.js +34 -5
  237. package/dist/utility/wrun/wrun-oi-lane.util.d.ts +10 -7
  238. package/dist/utility/wrun/wrun-oi-lane.util.js +16 -10
  239. package/dist/utility/wrun/wrun-option-strike-flow.util.js +1 -1
  240. package/dist/utility/wrun/wrun-option-views.util.d.ts +2 -2
  241. package/dist/utility/wrun/wrun-option-views.util.js +5 -2
  242. package/dist/utility/wrun/wrun-options-flow-underlying.leaf.d.ts +5 -0
  243. package/dist/utility/wrun/wrun-options-flow-underlying.leaf.js +16 -0
  244. package/dist/utility/wrun/wrun-options-stop.util.d.ts +3 -2
  245. package/dist/utility/wrun/wrun-options-stop.util.js +6 -4
  246. package/dist/utility/wrun/wrun-output-words.util.d.ts +14 -0
  247. package/dist/utility/wrun/wrun-output-words.util.js +51 -0
  248. package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +116 -11
  249. package/dist/utility/wrun/wrun-overlay-drivers.util.js +208 -43
  250. package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +20 -10
  251. package/dist/utility/wrun/wrun-overlay-park.util.d.ts +84 -0
  252. package/dist/utility/wrun/wrun-overlay-park.util.js +135 -0
  253. package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +37 -4
  254. package/dist/utility/wrun/wrun-overlay-recovery.util.js +26 -14
  255. package/dist/utility/wrun/wrun-overlay-result.util.d.ts +6 -1
  256. package/dist/utility/wrun/wrun-overlay-result.util.js +2 -0
  257. package/dist/utility/wrun/wrun-overlay-run.util.d.ts +247 -26
  258. package/dist/utility/wrun/wrun-overlay-run.util.js +2234 -408
  259. package/dist/utility/wrun/wrun-pack.util.d.ts +8 -5
  260. package/dist/utility/wrun/wrun-panel-mount.util.d.ts +11 -2
  261. package/dist/utility/wrun/wrun-panel-mount.util.js +122 -19
  262. package/dist/utility/wrun/wrun-panel-style.util.d.ts +4 -2
  263. package/dist/utility/wrun/wrun-panel-style.util.js +3 -2
  264. package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +7 -0
  265. package/dist/utility/wrun/wrun-pin-spelling.util.js +18 -4
  266. package/dist/utility/wrun/wrun-pin-venues.util.d.ts +26 -17
  267. package/dist/utility/wrun/wrun-pin-venues.util.js +43 -36
  268. package/dist/utility/wrun/wrun-pinned-lanes.util.d.ts +58 -0
  269. package/dist/utility/wrun/wrun-pinned-lanes.util.js +72 -0
  270. package/dist/utility/wrun/wrun-prefix-cohort.util.js +2 -1
  271. package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +22 -9
  272. package/dist/utility/wrun/wrun-prefix-lanes.util.js +145 -26
  273. package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +29 -0
  274. package/dist/utility/wrun/wrun-prefix-proof.util.js +23 -5
  275. package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +9 -1
  276. package/dist/utility/wrun/wrun-refusal-surface.util.js +15 -1
  277. package/dist/utility/wrun/wrun-refusal.util.d.ts +19 -1
  278. package/dist/utility/wrun/wrun-refusal.util.js +103 -16
  279. package/dist/utility/wrun/wrun-registry-errors.util.d.ts +20 -6
  280. package/dist/utility/wrun/wrun-registry-errors.util.js +20 -6
  281. package/dist/utility/wrun/wrun-replay-rows.util.js +6 -10
  282. package/dist/utility/wrun/wrun-run-health.util.d.ts +95 -5
  283. package/dist/utility/wrun/wrun-run-health.util.js +209 -3
  284. package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +2 -2
  285. package/dist/utility/wrun/wrun-run-interval-session.util.js +2 -2
  286. package/dist/utility/wrun/wrun-run-interval.util.d.ts +9 -8
  287. package/dist/utility/wrun/wrun-run-interval.util.js +13 -11
  288. package/dist/utility/wrun/wrun-sandbox-row-source.js +5 -2
  289. package/dist/utility/wrun/wrun-script-inputs.util.d.ts +38 -11
  290. package/dist/utility/wrun/wrun-script-inputs.util.js +194 -56
  291. package/dist/utility/wrun/wrun-session-composition.util.d.ts +81 -0
  292. package/dist/utility/wrun/wrun-session-composition.util.js +169 -0
  293. package/dist/utility/wrun/wrun-setting-words.util.d.ts +10 -7
  294. package/dist/utility/wrun/wrun-setting-words.util.js +25 -7
  295. package/dist/utility/wrun/wrun-source-rows.util.d.ts +94 -28
  296. package/dist/utility/wrun/wrun-source-rows.util.js +738 -93
  297. package/dist/utility/wrun/wrun-stream-clock.util.d.ts +45 -0
  298. package/dist/utility/wrun/wrun-stream-clock.util.js +108 -0
  299. package/dist/utility/wrun/wrun-style-names.util.d.ts +23 -0
  300. package/dist/utility/wrun/wrun-style-names.util.js +74 -0
  301. package/dist/utility/wrun/wrun-tape-coins.util.d.ts +116 -0
  302. package/dist/utility/wrun/wrun-tape-coins.util.js +110 -0
  303. package/dist/utility/wrun/wrun-tape-source.util.d.ts +62 -32
  304. package/dist/utility/wrun/wrun-tape-source.util.js +72 -34
  305. package/dist/utility/wrun/wrun-tier-grid.util.d.ts +13 -5
  306. package/dist/utility/wrun/wrun-tier-grid.util.js +23 -13
  307. package/dist/utility/wrun/wrun-tpo-rows.util.js +2 -1
  308. package/dist/utility/wrun/wrun-trades-lane.util.d.ts +73 -0
  309. package/dist/utility/wrun/wrun-trades-lane.util.js +82 -0
  310. package/dist/utility/wrun/wrun-twin-compute-inputs.util.d.ts +5 -0
  311. package/dist/utility/wrun/wrun-twin-compute-inputs.util.js +9 -2
  312. package/dist/utility/wrun/wrun-visibility-table.d.ts +13 -0
  313. package/dist/utility/wrun/wrun-visibility-table.js +9 -0
  314. package/dist/utility/wrun/wrun-volume-profile.util.js +7 -3
  315. package/dist/utils/replay/replay-buffer-math.d.ts +16 -6
  316. package/dist/utils/replay/replay-buffer-math.js +60 -30
  317. package/dist/workers/constants/socket-slots.d.ts +11 -7
  318. package/dist/workers/constants/socket-slots.js +6 -5
  319. package/package.json +5 -5
@@ -8,7 +8,8 @@
8
8
  // The large lane folds the collector's TRADE_LARGE rows (one per order), any other tape raw TRADE fills: never mix them.
9
9
  import { Intervals } from '../../constants/interval.constants.js';
10
10
  import { barEndMs, barStartMs } from '../../utility/chart/calendar-interval.util.js';
11
- import { cmeSessionBarEndMs, cmeSessionBarOpenMs, cmeSessionBucketMs, isCmeSessionLatticeExchange, isCmeSessionLatticeIntervalMs, } from '../../utility/chart/cme-session-bucket.util.js';
11
+ import { isCmeSessionLatticeExchange } from '../../utility/chart/cme-session-bucket.util.js';
12
+ import { isSessionLatticeIntervalMs, sessionLatticeBarEndMs, sessionLatticeBarOpenMs, sessionLatticeBucketMs, sessionLatticeNextBarMs, sessionLatticeOf, } from '../../utility/chart/session-lattice.util.js';
12
13
  import { findMonday } from '../../workers/utils/time.worker.util.js';
13
14
  import { liveOptionPrintUsdPremium } from '../../utility/options/option-trade-units.util.js';
14
15
  export const LIVE_MAX_CELLS_PER_BAR = 20_000;
@@ -23,12 +24,14 @@ export const TRADES_RETENTION_SEC = 2 * 24 * 3600;
23
24
  export const TRADES_LARGE_RETENTION_SEC = 90 * 24 * 3600;
24
25
  /** tsdb-gateway's bar limit on the large lane (validateKiyoPlusBar, kiyo_plus_validation.go): an
25
26
  * unaggregated read (TRADE_LARGE included) is estimated at one point per minute, and a tier user's
26
- * window opening before now minus the tier's default max_bar_limit (15,000 on every tier of ore
27
- * and cme) is trimmed to it without a word. About 10.4 days: the lane's real history horizon. */
27
+ * window longer than the tier's default max_bar_limit (15,000 on every tier of ore and cme) is
28
+ * trimmed to its last 15,000 minutes without a word, counted from the window's own end (a window
29
+ * ending at now counts from the gateway's clock). About 10.4 days: the lane's history horizon on
30
+ * one ask, at any date, so a replay weeks back reads its history too. */
28
31
  export const TRADES_LARGE_BAR_LIMIT_SEC = 15_000 * 60;
29
- /** How far inside that horizon the large lane opens: the gateway reads its own clock when the ask
30
- * lands, later than this one (the worker queue, the wire, a slow client clock), and a horizon that
31
- * moved past the ask's first bar would cut that bar in two again. */
32
+ /** How far inside that horizon the large lane opens: on a window ending at now the gateway reads
33
+ * its own clock when the ask lands, later than this one (the worker queue, the wire, a slow client
34
+ * clock), and a horizon that moved past the ask's first bar would cut that bar in two again. */
32
35
  const TRADES_LARGE_BAR_LIMIT_MARGIN_SEC = 600;
33
36
  /** A copy of the collector's `peggedUSDQuotes`, which the dollar-unit rule reads too: keep the two lists identical. */
34
37
  const TRADES_LARGE_USD_QUOTES = new Set([
@@ -48,61 +51,25 @@ const TRADES_LARGE_USD_QUOTES = new Set([
48
51
  /** A raw-tape acquisition's seed cap: a longer window over the raw TRADE table costs the gateway a
49
52
  * scan over cold chunks (measured 18-30 s, or a server-side internal error, for ten days). */
50
53
  export const TRADES_MAX_HISTORY_SEC = 2 * 3600;
51
- /** A CME Group contract code: the product root, a delivery month letter, one or two year digits. */
52
- const CME_CONTRACT_CODE = /^([A-Z0-9]+?)[FGHJKMNQUVXZ]\d{1,2}$/;
53
54
  /**
54
- * The CME Group product roots the collector copies into the large-print table (TRADE_LARGE): the keys of its contracts
55
- * floor list (streamd charts/streamd/values.cme.yaml `large_trade.contract_floors`, the 33 roots tsdb-gateway's
56
- * values.cme.yaml listed as `write.large_trade_cme_contract_floors` before the rule moved to the collector). The
57
- * collector copies no print of a root off the list (it only counts them, `streamd_large_trade_skipped_points_total`),
58
- * so the table answers such a market empty, history and live:
59
- * COMEX:MGC1! 1m on 2026-10-29 read 0 prints of any size over six hours of the table while the raw tape held 79 prints
60
- * of 10 contracts or more in two hours (#feedback-stream 2149). A copy of the collector's list until the instrument
61
- * registry names the served floor per root; recorded with each root's newest TRADE_LARGE row in
62
- * tests/fixtures/wrun/tape-dollar-units.json, whose spec holds the two equal: they change in the same round as the
63
- * collector's list.
55
+ * The payload field a run names the instant its lanes' declared history counts back from, when that instant is not
56
+ * the server's now. A market replay run names the replay's present (the close of the newest completed bar the replay
57
+ * shows, the open of the bar its playhead is in), while its lanes run on to the replay window's end (the forward
58
+ * runway), on every lane it asks (wrun-overlay-run.util `fetchLane`). A live run names its session's pin for the tape
59
+ * (wrun-history-as-of.util: the instant the session's first run counted the tape's history back from), from the
60
+ * session's second run on, while the window still ends at the server's now; its first run names none, so that ask is
61
+ * the payload it always was. Every reader of a declared history counts back from it (`sourceHistoryAsOfMs`: the
62
+ * K_TRADES seed, the wrun reconcile's served start). The table's retention and the gateway's bar limit never read it:
63
+ * the table keeps, and the gateway trims a window, by the wall clock.
64
64
  */
65
- export const TRADES_LARGE_CME_ROOTS = new Set([
66
- // Equity index
67
- 'ES',
68
- 'NQ',
69
- 'YM',
70
- 'RTY',
71
- 'MES',
72
- 'MNQ',
73
- // Energy and metals
74
- 'CL',
75
- 'NG',
76
- 'GC',
77
- 'SI',
78
- 'HG',
79
- // FX
80
- '6A',
81
- '6B',
82
- '6C',
83
- '6E',
84
- '6J',
85
- '6S',
86
- '6N',
87
- '6M',
88
- // Rates
89
- 'ZN',
90
- 'ZF',
91
- 'ZT',
92
- 'TN',
93
- 'ZB',
94
- 'UB',
95
- // Grains
96
- 'ZC',
97
- 'ZS',
98
- 'ZM',
99
- 'ZL',
100
- 'ZW',
101
- // Crypto
102
- 'BTC',
103
- 'MBT',
104
- 'ETH',
105
- ]);
65
+ export const SOURCE_HISTORY_AS_OF_FIELD = 'historyAsOfMs';
66
+ /** The instant a declared history counts back from: the one an ask names (`SOURCE_HISTORY_AS_OF_FIELD`, a finite
67
+ * instant above zero, never later than the server's now), else the server's now. */
68
+ export function sourceHistoryAsOfMs(named, serverNowMs) {
69
+ return typeof named === 'number' && Number.isFinite(named) && named > 0 ? Math.min(named, serverNowMs) : serverNowMs;
70
+ }
71
+ /** A CME Group contract code: the product root, a delivery month letter, one or two year digits. */
72
+ const CME_CONTRACT_CODE = /^([A-Z0-9]+?)[FGHJKMNQUVXZ]\d{1,2}$/;
106
73
  /** Every reader of a live amount reads here, so a floor never reads one channel's case while the fold reads the other. */
107
74
  export function liveTradeOfPoint(point, large) {
108
75
  if (!point || typeof point !== 'object')
@@ -112,33 +79,52 @@ export function liveTradeOfPoint(point, large) {
112
79
  return trade ?? tradeLarge;
113
80
  return large ? tradeLarge : trade;
114
81
  }
82
+ /** The market's session lattice at an interval the gateway rolls it up on (session-lattice.util), else null. */
83
+ function tradesLatticeAt(exchange, intervalMs) {
84
+ const lattice = sessionLatticeOf(exchange);
85
+ return lattice !== null && isSessionLatticeIntervalMs(lattice, intervalMs) ? lattice : null;
86
+ }
115
87
  /**
116
88
  * The chart bar a print at `tsMs` lands in, keyed the way the chart's candles of that market are:
117
- * the CME Group session lattice at 4h, 1d and 1w on a CME venue (the gateway's
118
- * cmeSessionBucketExpression), else a week bar on its Monday (`findMonday`, the chart's week: the
119
- * epoch week opens on a Thursday no weekly candle carries), else the UTC floor (the calendar
120
- * boundary on a month-class bar).
89
+ * the market's session lattice at 4h, 1d and 1w on a session-lattice venue (the gateway's
90
+ * `sessionProfile.bucketExpression`: the CME family, forex), else a week bar on its Monday
91
+ * (`findMonday`, the chart's week: the epoch week opens on a Thursday no weekly candle carries),
92
+ * else the UTC floor (the calendar boundary on a month-class bar).
121
93
  */
122
94
  export function tradesBarStartMs(tsMs, intervalMs, exchange) {
123
- if (isCmeSessionLatticeExchange(exchange) && isCmeSessionLatticeIntervalMs(intervalMs)) {
124
- return cmeSessionBucketMs(tsMs, intervalMs) ?? barStartMs(tsMs, intervalMs);
125
- }
95
+ const lattice = tradesLatticeAt(exchange, intervalMs);
96
+ if (lattice !== null)
97
+ return sessionLatticeBucketMs(lattice, tsMs, intervalMs) ?? barStartMs(tsMs, intervalMs);
126
98
  return intervalMs === Intervals.WEEK ? findMonday(tsMs) : barStartMs(tsMs, intervalMs);
127
99
  }
100
+ /**
101
+ * The key of the chart bar after the one keyed `barMs` (a `tradesBarStartMs` key), for a walk over a window's bars:
102
+ * the session lattice's next bar on a lattice venue (`sessionLatticeNextBarMs`: a lattice bar can outlast its width,
103
+ * so the bucket of `barMs + intervalMs` can be the bar itself), else the bar's end (a calendar bar's next boundary, a
104
+ * fixed bar its width on). Null when no later bar can be named: a walk stops there, it never repeats `barMs`.
105
+ */
106
+ export function tradesNextBarStartMs(barMs, intervalMs, exchange) {
107
+ if (!Number.isFinite(barMs) || !Number.isFinite(intervalMs) || intervalMs <= 0)
108
+ return null;
109
+ const lattice = tradesLatticeAt(exchange, intervalMs);
110
+ const nextMs = lattice !== null ? sessionLatticeNextBarMs(lattice, barMs, intervalMs) : barEndMs(barMs, intervalMs);
111
+ return nextMs !== null && nextMs > barMs ? nextMs : null;
112
+ }
128
113
  /**
129
114
  * Where a seeded history ask opens: the open of the chart bar holding `nowMs - historySec`, so the
130
115
  * seed covers whole bars and a bar is never bought from its middle (it would be replaced by its
131
116
  * later prints on every poll). A CME session lattice bar opens where the lattice opens it (a daily
132
117
  * bar at the prior 17:00 Chicago open, ahead of its 00:00Z label); every other bar on
133
- * `tradesBarStartMs` (a Monday on a week chart). Without a history the live edge itself.
118
+ * `tradesBarStartMs` (a Monday on a week chart). Without a history the live edge itself. `nowMs` is
119
+ * the ask's as-of (`sourceHistoryAsOfMs`: a replay's present, else the server's now).
134
120
  */
135
121
  export function tradesSeedStartMs(nowMs, historySec, intervalMs, exchange) {
136
122
  const seedMs = nowMs - historySec * 1000;
137
123
  if (!(historySec > 0) || !Number.isFinite(intervalMs) || intervalMs <= 0)
138
124
  return seedMs;
139
- if (isCmeSessionLatticeExchange(exchange) && isCmeSessionLatticeIntervalMs(intervalMs)) {
140
- return cmeSessionBarOpenMs(seedMs, intervalMs) ?? barStartMs(seedMs, intervalMs);
141
- }
125
+ const lattice = tradesLatticeAt(exchange, intervalMs);
126
+ if (lattice !== null)
127
+ return sessionLatticeBarOpenMs(lattice, seedMs, intervalMs) ?? barStartMs(seedMs, intervalMs);
142
128
  return tradesBarStartMs(seedMs, intervalMs, exchange);
143
129
  }
144
130
  /**
@@ -150,9 +136,9 @@ export function tradesSeedStartMs(nowMs, historySec, intervalMs, exchange) {
150
136
  export function tradesBarOpenMs(tsMs, intervalMs, exchange) {
151
137
  if (!Number.isFinite(intervalMs) || intervalMs <= 0)
152
138
  return tsMs;
153
- if (isCmeSessionLatticeExchange(exchange) && isCmeSessionLatticeIntervalMs(intervalMs)) {
154
- return cmeSessionBarOpenMs(tsMs, intervalMs) ?? barStartMs(tsMs, intervalMs);
155
- }
139
+ const lattice = tradesLatticeAt(exchange, intervalMs);
140
+ if (lattice !== null)
141
+ return sessionLatticeBarOpenMs(lattice, tsMs, intervalMs) ?? barStartMs(tsMs, intervalMs);
156
142
  return tradesBarStartMs(tsMs, intervalMs, exchange);
157
143
  }
158
144
  /** The open of the first chart bar opening at or after `tsMs`: the bar holding it when it opens
@@ -162,19 +148,22 @@ export function tradesFirstBarOpenFromMs(tsMs, intervalMs, exchange) {
162
148
  const open = tradesBarOpenMs(tsMs, intervalMs, exchange);
163
149
  if (open >= tsMs || !Number.isFinite(intervalMs) || intervalMs <= 0)
164
150
  return open;
165
- if (isCmeSessionLatticeExchange(exchange) && isCmeSessionLatticeIntervalMs(intervalMs)) {
166
- const key = cmeSessionBucketMs(tsMs, intervalMs);
167
- const end = key === null ? null : cmeSessionBarEndMs(key, intervalMs);
151
+ const lattice = tradesLatticeAt(exchange, intervalMs);
152
+ if (lattice !== null) {
153
+ const key = sessionLatticeBucketMs(lattice, tsMs, intervalMs);
154
+ const end = key === null ? null : sessionLatticeBarEndMs(lattice, key, intervalMs);
168
155
  if (end !== null && end > tsMs)
169
156
  return tradesBarOpenMs(end, intervalMs, exchange);
170
157
  }
171
158
  return barEndMs(tradesBarStartMs(tsMs, intervalMs, exchange), intervalMs);
172
159
  }
173
- /** Where a large-lane ask opens at the earliest: the first bar open at or after now minus the
174
- * gateway's bar limit (TRADES_LARGE_BAR_LIMIT_SEC, kept a margin inside it), so the gateway never
175
- * trims the window it was handed and the worker's grid opens where the answer does. */
176
- export function tradesBarLimitStartMs(nowMs, barLimitSec, intervalMs, exchange) {
177
- return tradesFirstBarOpenFromMs(nowMs - (barLimitSec - TRADES_LARGE_BAR_LIMIT_MARGIN_SEC) * 1000, intervalMs, exchange);
160
+ /** Where a large-lane ask opens at the earliest: the first bar open at or after the ask's window
161
+ * end minus the gateway's bar limit (TRADES_LARGE_BAR_LIMIT_SEC, kept a margin inside it), so the
162
+ * gateway never trims the window it was handed and the worker's grid opens where the answer does.
163
+ * The gateway counts a raw window's cap from the window's own end (now, for a window ending there),
164
+ * so the limit bounds the ask's length, never how far back it sits. */
165
+ export function tradesBarLimitStartMs(windowEndMs, barLimitSec, intervalMs, exchange) {
166
+ return tradesFirstBarOpenFromMs(windowEndMs - (barLimitSec - TRADES_LARGE_BAR_LIMIT_MARGIN_SEC) * 1000, intervalMs, exchange);
178
167
  }
179
168
  /**
180
169
  * The first stamp a seeded history ask serves prints from, whichever of these is latest (K_TRADES's
@@ -182,14 +171,18 @@ export function tradesBarLimitStartMs(nowMs, barLimitSec, intervalMs, exchange)
182
171
  * never opens inside a bar: a CME daily-class bar's key runs ahead of its open), the seed start
183
172
  * (`tradesSeedStartMs`), the table's retention horizon, and on the large lane the gateway's bar
184
173
  * limit (`barLimitSec`, `tradesBarLimitStartMs`). A reader of the answer (the wrun reconcile) tells
185
- * a PARTIAL first bucket, one that opened before this stamp, from a bucket served whole.
174
+ * a PARTIAL first bucket, one that opened before this stamp, from a bucket served whole. The seed
175
+ * counts back from the ask's as-of (`historyAsOfMs`, the ask's `SOURCE_HISTORY_AS_OF_FIELD`:
176
+ * `sourceHistoryAsOfMs`, the request builder's rule), the retention from `nowMs`, and the bar limit
177
+ * from the ask's window end (`windowEndMs`, else `nowMs`: the gateway counts a raw window's cap from
178
+ * its own end).
186
179
  */
187
180
  export function tradesServedStartMs(nowMs, historySec, intervalMs, options = {}) {
188
181
  return Math.max(options.windowFromMs === undefined
189
182
  ? Number.NEGATIVE_INFINITY
190
- : tradesBarOpenMs(options.windowFromMs, intervalMs, options.exchange), tradesSeedStartMs(nowMs, historySec, intervalMs, options.exchange), nowMs - (options.retentionSec ?? TRADES_RETENTION_SEC) * 1000, options.barLimitSec === undefined
183
+ : tradesBarOpenMs(options.windowFromMs, intervalMs, options.exchange), tradesSeedStartMs(sourceHistoryAsOfMs(options.historyAsOfMs, nowMs), historySec, intervalMs, options.exchange), nowMs - (options.retentionSec ?? TRADES_RETENTION_SEC) * 1000, options.barLimitSec === undefined
191
184
  ? Number.NEGATIVE_INFINITY
192
- : tradesBarLimitStartMs(nowMs, options.barLimitSec, intervalMs, options.exchange));
185
+ : tradesBarLimitStartMs(options.windowEndMs ?? nowMs, options.barLimitSec, intervalMs, options.exchange));
193
186
  }
194
187
  /** Null for a point the fold rejects, another channel's included; without `large`, either channel (stamp readers). */
195
188
  export function readLiveTradePrint(newPoint, large) {
@@ -280,24 +273,6 @@ export function tradesCmeProductRoot(market) {
280
273
  return symbol.slice(0, -2) || undefined;
281
274
  return CME_CONTRACT_CODE.exec(symbol)?.[1] ?? symbol;
282
275
  }
283
- /** Whether the collector copies a CME Group product root into the large-print table (`TRADES_LARGE_CME_ROOTS`); false
284
- * for an unknown root. */
285
- export function tradesLargeServesCmeRoot(root) {
286
- return typeof root === 'string' && TRADES_LARGE_CME_ROOTS.has(root.trim().toUpperCase());
287
- }
288
- /**
289
- * Whether the large-print table holds a market's big trades, the ONE rule of the tape lane a market rides
290
- * (`tradesLaneLimits`): on a CME Group venue only a product root the collector copies (`tradesLargeServesCmeRoot`, the
291
- * root `tradesCmeProductRoot` reads: `MGC1!`, `MGCZ6` and `MGC-USD` are MGC, which it does not); every other market
292
- * is the collector's dollar rule's, which copies every print of at least $10k quote on a dollar-quoted market (a
293
- * dollar tape on any other quote is refused by name before any fetch, `wrun_tape_value_unproven`). A tape on a market
294
- * the table does not hold rides the raw tape, never the empty table.
295
- */
296
- export function tradesLargeServesMarket(market) {
297
- if (!isCmeSessionLatticeExchange(market.exchange))
298
- return true;
299
- return tradesLargeServesCmeRoot(tradesCmeProductRoot(market));
300
- }
301
276
  /** The venues whose TRADE_LARGE read honors `minAmountPerOrder`; no other read may name it (a v2-only field leaves /v3). */
302
277
  export function tradesFloorPerOrder(exchange) {
303
278
  return isCmeSessionLatticeExchange(exchange);
@@ -309,11 +284,9 @@ export function tradesTapeFloorIsDollars(floor) {
309
284
  }
310
285
  /** The tape lane an acquisition rides: the large lane (the table's retention, the gateway's bar
311
286
  * limit, the declared history) when it asks `large`, else the raw tape (a two-hour seed inside the
312
- * raw table's retention). Big trades read the large-print table wherever it holds the market
313
- * (`tradesLargeServesMarket`, which decides `large` where the acquisition is built): raw trade is kept
314
- * about two days, so a longer chart would show its small prints on the newest bars alone. A CME root
315
- * the collector does not copy rides the raw tape (its two hours and the raw live channel, every fill
316
- * judged on its own) instead of an empty table that draws nothing. A dollar floor (`floor.minValue`)
287
+ * raw table's retention). Big trades read the large-print table only, never the raw tape: raw trade
288
+ * is kept about two days, so a longer chart would show its small prints on the newest bars alone. A
289
+ * market the collector never copies reads the table empty and gets no live row either. A dollar floor (`floor.minValue`)
317
290
  * on the raw tape reads no history at all (`historyCapSec` 0, the live edge): the raw tape's quote
318
291
  * amounts are priced by no writer rule (a backfill gap is NULL), so its rows are no proven dollars.
319
292
  * The ONE rule of a tape's served history: the request builder, the reconcile's served start and the
@@ -158,6 +158,13 @@ export interface MarketDataSubscriptionDto {
158
158
  pendingDowngrade?: MarketDataPendingDowngrade | null;
159
159
  /** The Stripe payment method the subscription charges, or null. Additive (a multi-product venue's DTO names it). */
160
160
  paymentMethodId?: string | null;
161
+ /**
162
+ * True exactly while Stripe's status is `past_due`: the renewal payment failed, so nothing renews at `renewsAt`.
163
+ * Additive: a server from before it answers none, which the mapper reads as false.
164
+ */
165
+ pastDue?: boolean;
166
+ /** Stripe's hosted page for the owed renewal invoice while `pastDue`; absent or null when none is owed or on a server from before it. */
167
+ invoiceUrl?: string | null;
161
168
  }
162
169
  /** `grant.steps`: the declaration and the agreement the release waits on, as orange judges the records now. */
163
170
  export interface MarketDataOperatorGrantStepsDto {
@@ -221,7 +228,8 @@ export interface MarketDataPostalAddress {
221
228
  line2?: string;
222
229
  city: string;
223
230
  region?: string;
224
- postalCode: string;
231
+ /** Absent where the country's address has no postal code (the UAE, Hong Kong, Qatar and more). */
232
+ postalCode?: string;
225
233
  country: string;
226
234
  }
227
235
  /**
@@ -185,7 +185,7 @@ export interface MarketDataPlanCard {
185
185
  }
186
186
  /**
187
187
  * The surfaces that carry a venue's delay disclosure wherever its delayed data shows (docs/features/search/
188
- * option-chain-browser.md, "Delay and disclosure"; tests/structure/opra-delay-notice-surfaces.spec.ts holds the rule).
188
+ * option-chain-browser.md, "Delay and disclosure"; tests/structure/delay-notice-surfaces.spec.ts holds the rule).
189
189
  */
190
190
  export type MarketDataDisclosureSurface = 'chain-page-subtitle' | 'chain-price-pill' | 'chain-table-marker' | 'chain-strike-preview' | 'chain-index-notice' | 'flow-tape' | 'terminal-options-tab' | 'options-overlay-legends' | 'indicator-legend-notes' | 'contract-chart-delay-chip' | 'contract-chart-delay-card' | 'chart-source-line' | 'watchlist-panel' | 'watchlist-cell-tooltip' | 'board' | 'purchase-live-price';
191
191
  export interface MarketDataVenue {
@@ -232,10 +232,10 @@ export declare const FLAG_GATED_MARKET_DATA_VENUES: readonly [{
232
232
  };
233
233
  readonly paymentItemPrefix: "stocks_";
234
234
  readonly professionalPolicy: "refuse";
235
- readonly internalRolePolicy: "refuse";
235
+ readonly internalRolePolicy: "report";
236
236
  readonly payFirst: true;
237
237
  readonly questionnaire: {
238
- readonly formVersion: "stocks-pending";
238
+ readonly formVersion: "stocks-2026-10-20";
239
239
  readonly questions: readonly [{
240
240
  readonly id: "personal_non_business_use";
241
241
  readonly qualifying: true;
@@ -319,7 +319,7 @@ export declare const FLAG_GATED_MARKET_DATA_VENUES: readonly [{
319
319
  readonly agreements: readonly [{
320
320
  readonly id: "cta-exhibit-b";
321
321
  readonly productGroups: import("../../interfaces/stocks-realtime.interface.js").StocksGovernedExchange[];
322
- readonly version: "cta-exhibit-b-pending";
322
+ readonly version: "cta-exhibit-b-2013-11-01";
323
323
  readonly url: "/api/v1/market-data/stocks/agreements/cta-exhibit-b";
324
324
  readonly recordedAs: "assent";
325
325
  readonly delayedRequiresAcceptance: false;
@@ -327,7 +327,7 @@ export declare const FLAG_GATED_MARKET_DATA_VENUES: readonly [{
327
327
  }, {
328
328
  readonly id: "utp-subscriber";
329
329
  readonly productGroups: import("../../interfaces/stocks-realtime.interface.js").StocksGovernedExchange[];
330
- readonly version: "utp-subscriber-pending";
330
+ readonly version: "utp-subscriber-2019-1b";
331
331
  readonly url: "/api/v1/market-data/stocks/agreements/utp-subscriber";
332
332
  readonly recordedAs: "assent";
333
333
  readonly delayedRequiresAcceptance: false;
@@ -340,7 +340,7 @@ export declare const FLAG_GATED_MARKET_DATA_VENUES: readonly [{
340
340
  readonly i18nNamespace: "stocksRealtimeData";
341
341
  readonly storeId: "stocksRealtime";
342
342
  readonly surfaces: readonly ["contract-chart-delay-chip", "chart-source-line"];
343
- readonly contractRevision: "2026-10-29.1";
343
+ readonly contractRevision: "2026-11-08.1";
344
344
  }];
345
345
  type CarriedMarketDataVenue = (typeof MARKET_DATA_VENUES)[number] | (typeof FLAG_GATED_MARKET_DATA_VENUES)[number];
346
346
  /** A registered venue's key: a card the build carries, served now or dark. */
@@ -17,9 +17,9 @@ export const OPRA_VENUE = {
17
17
  planCard: { name: 'OPRA real-time', level: 'TOP OF BOOK', market: 'OPRA', region: 'πŸ‡ΊπŸ‡Έ USA' },
18
18
  paymentItemPrefix: 'opra_',
19
19
  professionalPolicy: 'refuse',
20
- // Staff are reported, as on CME (contract revision 2026-10-28.1; Kyle 2026-10-28: staff get OPRA real time): the
21
- // server records an internal account's grant as staff (`dev: true`) and the gate reports it. No role is consulted
22
- // here either way.
20
+ // Staff get OPRA real time through operator test grants (contract revision 2026-10-28.1, `internalPolicy: 'report'`;
21
+ // Kyle 2026-11-08: testing only): the server records a staff grant's rows as staff (`dev: true`) with no attestation,
22
+ // and they are in no report and filed nowhere. No role is consulted here either way.
23
23
  internalRolePolicy: 'report',
24
24
  payFirst: true,
25
25
  questionnaire: {
@@ -1,5 +1,5 @@
1
1
  {
2
- "revision": "2026-10-29.1",
2
+ "revision": "2026-11-08.1",
3
3
  "key": "stocks",
4
4
  "productGroups": ["NYSE", "NYSE_ARCA", "NASDAQ"],
5
5
  "products": [
@@ -10,7 +10,7 @@
10
10
  "interval": "1m"
11
11
  }
12
12
  ],
13
- "formVersion": "stocks-pending",
13
+ "formVersion": "stocks-2026-10-20",
14
14
  "questions": [
15
15
  { "id": "personal_non_business_use", "qualifying": true },
16
16
  { "id": "receives_for_business_or_entity", "qualifying": false },
@@ -36,14 +36,14 @@
36
36
  {
37
37
  "id": "cta-exhibit-b",
38
38
  "productGroups": ["NYSE", "NYSE_ARCA"],
39
- "version": "cta-exhibit-b-pending",
39
+ "version": "cta-exhibit-b-2013-11-01",
40
40
  "url": "/api/v1/market-data/stocks/agreements/cta-exhibit-b",
41
41
  "recordedAs": "assent"
42
42
  },
43
43
  {
44
44
  "id": "utp-subscriber",
45
45
  "productGroups": ["NASDAQ"],
46
- "version": "utp-subscriber-pending",
46
+ "version": "utp-subscriber-2019-1b",
47
47
  "url": "/api/v1/market-data/stocks/agreements/utp-subscriber",
48
48
  "recordedAs": "assent"
49
49
  }
@@ -60,5 +60,6 @@
60
60
  { "id": "paragraph12Titles", "required": true, "maxLength": 200 },
61
61
  { "id": "paragraph12Functions", "required": true, "maxLength": 500 }
62
62
  ],
63
- "legalNameFrom": ["firstName", "middleName", "lastName"]
63
+ "legalNameFrom": ["firstName", "middleName", "lastName"],
64
+ "internalPolicy": "report"
64
65
  }
@@ -18,10 +18,10 @@ export declare const STOCKS_VENUE: {
18
18
  };
19
19
  readonly paymentItemPrefix: "stocks_";
20
20
  readonly professionalPolicy: "refuse";
21
- readonly internalRolePolicy: "refuse";
21
+ readonly internalRolePolicy: "report";
22
22
  readonly payFirst: true;
23
23
  readonly questionnaire: {
24
- readonly formVersion: "stocks-pending";
24
+ readonly formVersion: "stocks-2026-10-20";
25
25
  readonly questions: readonly [{
26
26
  readonly id: "personal_non_business_use";
27
27
  readonly qualifying: true;
@@ -105,7 +105,7 @@ export declare const STOCKS_VENUE: {
105
105
  readonly agreements: readonly [{
106
106
  readonly id: "cta-exhibit-b";
107
107
  readonly productGroups: import("../../interfaces/stocks-realtime.interface.js").StocksGovernedExchange[];
108
- readonly version: "cta-exhibit-b-pending";
108
+ readonly version: "cta-exhibit-b-2013-11-01";
109
109
  readonly url: "/api/v1/market-data/stocks/agreements/cta-exhibit-b";
110
110
  readonly recordedAs: "assent";
111
111
  readonly delayedRequiresAcceptance: false;
@@ -113,7 +113,7 @@ export declare const STOCKS_VENUE: {
113
113
  }, {
114
114
  readonly id: "utp-subscriber";
115
115
  readonly productGroups: import("../../interfaces/stocks-realtime.interface.js").StocksGovernedExchange[];
116
- readonly version: "utp-subscriber-pending";
116
+ readonly version: "utp-subscriber-2019-1b";
117
117
  readonly url: "/api/v1/market-data/stocks/agreements/utp-subscriber";
118
118
  readonly recordedAs: "assent";
119
119
  readonly delayedRequiresAcceptance: false;
@@ -126,5 +126,5 @@ export declare const STOCKS_VENUE: {
126
126
  readonly i18nNamespace: "stocksRealtimeData";
127
127
  readonly storeId: "stocksRealtime";
128
128
  readonly surfaces: readonly ["contract-chart-delay-chip", "chart-source-line"];
129
- readonly contractRevision: "2026-10-29.1";
129
+ readonly contractRevision: "2026-11-08.1";
130
130
  };
@@ -4,14 +4,14 @@
4
4
  * stocks on the plane"). Carried DARK: the registry lists it only while `us-equities-full` reads on
5
5
  * (`FLAG_GATED_MARKET_DATA_VENUES`, `marketDataVenueIsServed`), so with the flag off nothing in the app reads it.
6
6
  *
7
- * OPRA's policy set (pay first, one product, a professional refused), with what the tape adds: two agreements, one per
8
- * set of product groups (`agreements`: CTA's Exhibit B covers Tapes A and B, `NYSE_TAPE` and `NYSE_ARCA_TAPE`, the UTP
9
- * Subscriber Agreement covers Tape C, `NASDAQ_TAPE`; the gate release's `agreements:` names and versions, `*-pending`
10
- * until the texts ship), staff refused
11
- * (ENTITLEMENT.md Β§7: no staff real time, the release's `internal_realtime: false`), and a declaration that records the
12
- * Exhibit B Section 2 answers (a) to (k), the Paragraph 12 data and the UTP subscriber fields (`recordFields`,
13
- * `legalNameFrom`). The question wording is NOT approved yet: the content module is marked so and the checkout stays
14
- * shut while it is (src/components/dialogs/market-data/questionnaires/stocks.ts).
7
+ * OPRA's policy set (pay first, one product, a professional refused, staff on operator test grants: contract revision
8
+ * 2026-11-08.1, no attestation, in no report), with what the tape adds: two agreements, one per set of product
9
+ * groups (`agreements`: CTA's Exhibit B covers Tapes A and B, `NYSE_TAPE` and `NYSE_ARCA_TAPE`, the UTP Subscriber
10
+ * Agreement covers Tape C, `NASDAQ_TAPE`; the gate release's `agreements:` names and versions, each version the
11
+ * revision of the text orange serves), and a declaration that records the Exhibit B Section 2 answers (a) to (k), the
12
+ * Paragraph 12 data and the UTP subscriber fields (`recordFields`, `legalNameFrom`). The question wording is the screen
13
+ * NYSE approved on 2026-10-21: the content module is marked approved, so the plan page sells
14
+ * (src/components/dialogs/market-data/questionnaires/stocks.ts).
15
15
  *
16
16
  * Pinned against the contract copy beside this file (`stocks.contract.copy.json`, written from this card until orange's
17
17
  * export replaces it) and the gate's release mirror (`gate-mirror.copy.yaml` beside the spec) by
@@ -35,14 +35,15 @@ export const STOCKS_VENUE = {
35
35
  planCard: { name: 'Real-time US stocks', level: 'ALL US VENUES', market: 'US stocks', region: 'πŸ‡ΊπŸ‡Έ USA' },
36
36
  paymentItemPrefix: 'stocks_',
37
37
  professionalPolicy: 'refuse',
38
- // Staff get no real time on the tape (ENTITLEMENT.md Β§7; the release refuses internal rows): the server's refusal
39
- // stands. No role is consulted here either way.
40
- internalRolePolicy: 'refuse',
38
+ // Staff get real-time US stocks through operator test grants (contract revision 2026-11-08.1, `internalPolicy:
39
+ // 'report'`; Kyle 2026-11-08: testing only): the server records a staff grant's rows as staff (`dev: true`) with no
40
+ // attestation, and they are in no report and filed nowhere. No role is consulted here either way.
41
+ internalRolePolicy: 'report',
41
42
  payFirst: true,
42
43
  questionnaire: {
43
- // `-pending` like the gate's agreement versions: the question wording is the public reference text until the
44
- // exchange approves our subscriber screen. Bump on any change to the questions, their order or their wording.
45
- formVersion: 'stocks-pending',
44
+ // The approved screen's submission date: the Exhibit B screen went to NYSE with Exhibit A on 2026-10-20, approved
45
+ // on 2026-10-21. Bump on any change to the questions, their order or their wording.
46
+ formVersion: 'stocks-2026-10-20',
46
47
  // CTA Exhibit B, Section 2, Paragraph 10 (a) to (k), in order: (a) personal, non-business use qualifies with Yes,
47
48
  // every other question with No.
48
49
  questions: [
@@ -87,7 +88,8 @@ export const STOCKS_VENUE = {
87
88
  {
88
89
  id: 'cta-exhibit-b',
89
90
  productGroups: CTA_TAPES,
90
- version: 'cta-exhibit-b-pending',
91
+ // The text's revision date: Exhibit B R1 of 2013-11-01, its vendor blank completed (Thanefield Capital Limited).
92
+ version: 'cta-exhibit-b-2013-11-01',
91
93
  url: '/api/v1/market-data/stocks/agreements/cta-exhibit-b',
92
94
  recordedAs: 'assent',
93
95
  delayedRequiresAcceptance: false,
@@ -97,7 +99,8 @@ export const STOCKS_VENUE = {
97
99
  {
98
100
  id: 'utp-subscriber',
99
101
  productGroups: UTP_TAPES,
100
- version: 'utp-subscriber-pending',
102
+ // The text's footer revision: the UTP Plan Subscriber Agreement 2019-1B, behind the Option 4 statement.
103
+ version: 'utp-subscriber-2019-1b',
101
104
  url: '/api/v1/market-data/stocks/agreements/utp-subscriber',
102
105
  recordedAs: 'assent',
103
106
  delayedRequiresAcceptance: false,
@@ -106,12 +109,12 @@ export const STOCKS_VENUE = {
106
109
  // CTA and UTP define delayed data as 15 minutes after publication; the gate's window adds a 5 s margin (905 s).
107
110
  delayMinutes: 15,
108
111
  // The CTA Delayed Market Data Policy's exact statement: STOCKS_DELAY_STATEMENT in
109
- // src/constants/stocks-compliance.constants.ts ("Delayed 15 minutes").
112
+ // constants/stocks-compliance.constants.ts ("Delayed 15 minutes").
110
113
  disclosure: { kind: 'verbatim' },
111
114
  flagKey: FeatureFlag.UsEquitiesFull,
112
115
  i18nNamespace: 'stocksRealtimeData',
113
116
  storeId: 'stocksRealtime',
114
117
  // For now the delay statement shows on a tape chart's delay chip and its source line only.
115
118
  surfaces: ['contract-chart-delay-chip', 'chart-source-line'],
116
- contractRevision: '2026-10-29.1',
119
+ contractRevision: '2026-11-08.1',
117
120
  };
@@ -17,7 +17,7 @@ import type { DeclaredFieldRow } from './indicator-fields.js';
17
17
  * - `row`: the companion's workspace row (the workspace save keeps it).
18
18
  * - `mirror`: the box's copy of its companion, so a profile rebuilt from the box mounts it.
19
19
  * - `template`: a named FRVP template (a drawing template: the box's style and Show on, the profile's preferences).
20
- * - `default`: the saved FRVP defaults the next FRVP starts from (Save as default, every profile save).
20
+ * - `default`: the saved FRVP defaults the next FRVP starts from (Save as default, every edit the user makes).
21
21
  *
22
22
  * Generic drawing keys every tool has (`isLocked`, `isHidden`, ...) are not FRVP fields and are not listed. Imports
23
23
  * nothing at run time: the tool tables' generator reads this table at package build.
@@ -25,3 +25,14 @@ import type { DeclaredFieldRow } from './indicator-fields.js';
25
25
  /** The FRVP's drawing type (chart-schema TOOLS), the key its templates are filed under. */
26
26
  export declare const FRVP_TOOL_TYPE = "FixedRangeVolumeProfile";
27
27
  export declare const FRVP_FIELD_ROWS: readonly DeclaredFieldRow[];
28
+ /**
29
+ * The stamp of the saved FRVP defaults' profile half in the account's style memory (the `profileDefaultsVersion` row):
30
+ * the version of the writers that wrote it. From 2026-10-20 the web panel wrote the profile there with no reader (an
31
+ * edit's keys, a Reset's white level lines and its theme's colours), so an entry without the stamp holds values no one
32
+ * chose for new profiles: a new profile reads the profile half only from an entry stamped at this version or later,
33
+ * which Save as default, Reset and every profile edit write since 2026-11-02.
34
+ */
35
+ export declare const FRVP_PROFILE_DEFAULTS_STAMP: Readonly<{
36
+ key: "profileDefaultsVersion";
37
+ version: 2;
38
+ }>;
@@ -16,7 +16,7 @@
16
16
  * - `row`: the companion's workspace row (the workspace save keeps it).
17
17
  * - `mirror`: the box's copy of its companion, so a profile rebuilt from the box mounts it.
18
18
  * - `template`: a named FRVP template (a drawing template: the box's style and Show on, the profile's preferences).
19
- * - `default`: the saved FRVP defaults the next FRVP starts from (Save as default, every profile save).
19
+ * - `default`: the saved FRVP defaults the next FRVP starts from (Save as default, every edit the user makes).
20
20
  *
21
21
  * Generic drawing keys every tool has (`isLocked`, `isHidden`, ...) are not FRVP fields and are not listed. Imports
22
22
  * nothing at run time: the tool tables' generator reads this table at package build.
@@ -40,9 +40,9 @@ export const FRVP_FIELD_ROWS = [
40
40
  ['color', BOX_STYLE],
41
41
  ['lineStyle', BOX_STYLE],
42
42
  ['lineWidth', BOX_STYLE],
43
- // "Show on": the intervals the box shows on. A template keeps it like every drawing's template does, All intervals
44
- // as [] (TEMPLATES-PLAN decision 3); a default never does (it belongs to one box on one chart).
45
- ['visibleIntervalsMs', { owner: 'box', lanes: ['template'], unset: Object.freeze([]) }],
43
+ // "Show on": the intervals the box shows on, All intervals as [] (TEMPLATES-PLAN decision 3). A template keeps it as
44
+ // every drawing's template does, and so does the default: a new FRVP shows where the last one did (TradingView).
45
+ ['visibleIntervalsMs', { owner: 'box', lanes: ['template', 'default'], unset: Object.freeze([]) }],
46
46
  ['profileData', BOX_DRAWN],
47
47
  ['profileNote', BOX_DRAWN],
48
48
  ['profileStale', BOX_DRAWN],
@@ -119,4 +119,15 @@ export const FRVP_FIELD_ROWS = [
119
119
  ['levelLineStyle', PREFERENCE],
120
120
  // Stamped on every mount in the reader's language: mirrored so the box prints it, never saved.
121
121
  ['profileStatsLabels', { owner: 'profile', lanes: ['mirror'] }],
122
+ // Not a setting: the stamp the saved defaults' profile half carries in the account's style memory, written with it
123
+ // (FRVP_PROFILE_DEFAULTS_STAMP below). In the default lane so the memory keeps it; no panel, row or copy holds it.
124
+ ['profileDefaultsVersion', { owner: 'profile', lanes: ['default'] }],
122
125
  ];
126
+ /**
127
+ * The stamp of the saved FRVP defaults' profile half in the account's style memory (the `profileDefaultsVersion` row):
128
+ * the version of the writers that wrote it. From 2026-10-20 the web panel wrote the profile there with no reader (an
129
+ * edit's keys, a Reset's white level lines and its theme's colours), so an entry without the stamp holds values no one
130
+ * chose for new profiles: a new profile reads the profile half only from an entry stamped at this version or later,
131
+ * which Save as default, Reset and every profile edit write since 2026-11-02.
132
+ */
133
+ export const FRVP_PROFILE_DEFAULTS_STAMP = Object.freeze({ key: 'profileDefaultsVersion', version: 2 });