@orangecharts/wrun-chart-host 0.2.0 → 0.4.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 (342) hide show
  1. package/README.md +22 -8
  2. package/dist/constants/common.constants.d.ts +15 -0
  3. package/dist/constants/common.constants.js +23 -0
  4. package/dist/constants/data-source.constants.d.ts +1 -0
  5. package/dist/constants/data-source.constants.js +1 -0
  6. package/dist/constants/economic.constants.d.ts +39 -0
  7. package/dist/constants/economic.constants.js +77 -0
  8. package/dist/constants/etf-covered-coins.constants.d.ts +1 -0
  9. package/dist/constants/etf-covered-coins.constants.js +9 -0
  10. package/dist/constants/feature-flags.constants.d.ts +60 -0
  11. package/dist/constants/feature-flags.constants.js +308 -0
  12. package/dist/constants/feature-limits.constants.d.ts +134 -0
  13. package/dist/constants/feature-limits.constants.js +155 -0
  14. package/dist/constants/marketCapabilities.constants.d.ts +87 -0
  15. package/dist/constants/marketCapabilities.constants.js +213 -0
  16. package/dist/constants/option-venues.constants.d.ts +100 -0
  17. package/dist/constants/option-venues.constants.js +167 -0
  18. package/dist/constants/overlay-data.constants.d.ts +53 -0
  19. package/dist/constants/overlay-data.constants.js +80 -0
  20. package/dist/constants/pane-grid.constants.d.ts +15 -0
  21. package/dist/constants/pane-grid.constants.js +17 -0
  22. package/dist/constants/scriptEditor/builtin-script-snippets.d.ts +133 -0
  23. package/dist/constants/scriptEditor/builtin-script-snippets.js +451 -0
  24. package/dist/constants/venue-presets.constants.d.ts +10 -0
  25. package/dist/constants/venue-presets.constants.js +22 -0
  26. package/dist/enums/chart.enum.d.ts +68 -0
  27. package/dist/enums/chart.enum.js +70 -0
  28. package/dist/helpers/data.helpers.d.ts +2 -0
  29. package/dist/helpers/data.helpers.js +14 -0
  30. package/dist/host-env.d.ts +163 -5
  31. package/dist/host-ports.types.d.ts +431 -0
  32. package/dist/host-ports.types.js +1 -0
  33. package/dist/index.d.ts +138 -0
  34. package/dist/index.js +138 -0
  35. package/dist/indicators/controls/technical-script/technical-script-input-rendering.d.ts +86 -0
  36. package/dist/indicators/controls/technical-script/technical-script-input-rendering.js +179 -0
  37. package/dist/interfaces/asset-venue.interface.d.ts +91 -0
  38. package/dist/interfaces/asset-venue.interface.js +1 -0
  39. package/dist/interfaces/cancel-reason.interface.d.ts +24 -0
  40. package/dist/interfaces/cancel-reason.interface.js +2 -0
  41. package/dist/interfaces/catalog-display.interface.d.ts +3 -0
  42. package/dist/interfaces/catalog-display.interface.js +1 -0
  43. package/dist/interfaces/cme-realtime.interface.d.ts +251 -0
  44. package/dist/interfaces/cme-realtime.interface.js +46 -0
  45. package/dist/interfaces/feed.interface.d.ts +80 -0
  46. package/dist/interfaces/feed.interface.js +7 -0
  47. package/dist/interfaces/market-kind.interface.d.ts +8 -0
  48. package/dist/interfaces/market-kind.interface.js +1 -0
  49. package/dist/interfaces/opra-realtime.interface.d.ts +224 -0
  50. package/dist/interfaces/opra-realtime.interface.js +105 -0
  51. package/dist/interfaces/option-instrument.interface.d.ts +32 -0
  52. package/dist/interfaces/option-instrument.interface.js +1 -0
  53. package/dist/interfaces/options-chain-scope.interface.d.ts +29 -0
  54. package/dist/interfaces/options-chain-scope.interface.js +7 -0
  55. package/dist/interfaces/prediction-market.interface.d.ts +88 -0
  56. package/dist/interfaces/prediction-market.interface.js +8 -0
  57. package/dist/interfaces/wrun-runtime.interface.d.ts +5 -0
  58. package/dist/kscript-data/controls/live-trades-merge.util.d.ts +185 -0
  59. package/dist/kscript-data/controls/live-trades-merge.util.js +357 -0
  60. package/dist/settings-templates/frvp-fields.d.ts +27 -0
  61. package/dist/settings-templates/frvp-fields.js +108 -0
  62. package/dist/settings-templates/index.d.ts +119 -0
  63. package/dist/settings-templates/index.js +442 -0
  64. package/dist/settings-templates/indicator-fields.d.ts +56 -0
  65. package/dist/settings-templates/indicator-fields.js +793 -0
  66. package/dist/settings-templates/tool-rules.d.ts +59 -0
  67. package/dist/settings-templates/tool-rules.js +49 -0
  68. package/dist/settings-templates/tool-tables.generated.d.ts +2 -0
  69. package/dist/settings-templates/tool-tables.generated.js +1668 -0
  70. package/dist/utility/blk-market.util.d.ts +5 -0
  71. package/dist/utility/blk-market.util.js +12 -0
  72. package/dist/utility/chart/chart-load-phase.util.d.ts +32 -0
  73. package/dist/utility/chart/chart-load-phase.util.js +78 -0
  74. package/dist/utility/chart/cme-cache-context.util.d.ts +108 -0
  75. package/dist/utility/chart/cme-cache-context.util.js +166 -0
  76. package/dist/utility/chart/cme-session-bucket.util.d.ts +82 -0
  77. package/dist/utility/chart/cme-session-bucket.util.js +343 -0
  78. package/dist/utility/chart/cme-trade-calendar.util.d.ts +26 -0
  79. package/dist/utility/chart/cme-trade-calendar.util.js +147 -0
  80. package/dist/utility/chart/continuous-contracts.util.d.ts +138 -0
  81. package/dist/utility/chart/continuous-contracts.util.js +374 -0
  82. package/dist/utility/chart/date-labelled-interval.leaf.d.ts +15 -0
  83. package/dist/utility/chart/date-labelled-interval.leaf.js +19 -0
  84. package/dist/utility/chart/feed-interval.util.d.ts +119 -0
  85. package/dist/utility/chart/feed-interval.util.js +321 -0
  86. package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +110 -0
  87. package/dist/utility/chart/fetch-dedupe-policy.util.js +407 -0
  88. package/dist/utility/chart/footprint-band.util.d.ts +76 -0
  89. package/dist/utility/chart/footprint-band.util.js +205 -0
  90. package/dist/utility/chart/footprint-cell-identity.util.d.ts +82 -0
  91. package/dist/utility/chart/footprint-cell-identity.util.js +346 -0
  92. package/dist/utility/chart/formula-calendar.util.d.ts +27 -0
  93. package/dist/utility/chart/formula-calendar.util.js +59 -0
  94. package/dist/utility/chart/history-wall.util.d.ts +67 -0
  95. package/dist/utility/chart/history-wall.util.js +87 -0
  96. package/dist/utility/chart/index-mode.util.d.ts +66 -0
  97. package/dist/utility/chart/index-mode.util.js +360 -0
  98. package/dist/utility/chart/indicator-coverage-planner.util.d.ts +217 -0
  99. package/dist/utility/chart/indicator-coverage-planner.util.js +443 -0
  100. package/dist/utility/chart/indicator-coverage-state.util.d.ts +33 -0
  101. package/dist/utility/chart/indicator-coverage-state.util.js +110 -0
  102. package/dist/utility/chart/indicator-gap-detector.util.d.ts +127 -0
  103. package/dist/utility/chart/indicator-gap-detector.util.js +260 -0
  104. package/dist/utility/chart/indicator-gap-repair.util.d.ts +88 -0
  105. package/dist/utility/chart/indicator-gap-repair.util.js +177 -0
  106. package/dist/utility/chart/indicator-inflight-registry.util.d.ts +26 -0
  107. package/dist/utility/chart/indicator-inflight-registry.util.js +254 -0
  108. package/dist/utility/chart/indicator-run-interval.util.d.ts +130 -0
  109. package/dist/utility/chart/indicator-run-interval.util.js +268 -0
  110. package/dist/utility/chart/interval-registry.util.d.ts +23 -0
  111. package/dist/utility/chart/interval-registry.util.js +83 -0
  112. package/dist/utility/chart/kscript-main-grid-stages.util.d.ts +21 -0
  113. package/dist/utility/chart/kscript-main-grid-stages.util.js +332 -0
  114. package/dist/utility/chart/legacy-exchange.leaf.d.ts +11 -0
  115. package/dist/utility/chart/legacy-exchange.leaf.js +43 -0
  116. package/dist/utility/chart/live-bucket.util.d.ts +66 -0
  117. package/dist/utility/chart/live-bucket.util.js +165 -0
  118. package/dist/utility/chart/market-session-schedule.util.d.ts +91 -0
  119. package/dist/utility/chart/market-session-schedule.util.js +337 -0
  120. package/dist/utility/chart/marketKind.util.d.ts +181 -0
  121. package/dist/utility/chart/marketKind.util.js +371 -0
  122. package/dist/utility/chart/opra-read-access.leaf.d.ts +26 -0
  123. package/dist/utility/chart/opra-read-access.leaf.js +25 -0
  124. package/dist/utility/chart/prediction-identity.util.d.ts +159 -0
  125. package/dist/utility/chart/prediction-identity.util.js +236 -0
  126. package/dist/utility/chart/rth-session.util.d.ts +352 -0
  127. package/dist/utility/chart/rth-session.util.js +926 -0
  128. package/dist/utility/chart/titan-constants.pin.d.ts +43 -0
  129. package/dist/utility/chart/titan-constants.pin.js +50 -0
  130. package/dist/utility/chart/us-equities-session.util.d.ts +127 -0
  131. package/dist/utility/chart/us-equities-session.util.js +251 -0
  132. package/dist/utility/chart/window-geometry.leaf.d.ts +119 -0
  133. package/dist/utility/chart/window-geometry.leaf.js +391 -0
  134. package/dist/utility/chart/window-owner.leaf.d.ts +19 -0
  135. package/dist/utility/chart/window-owner.leaf.js +24 -0
  136. package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +100 -0
  137. package/dist/utility/chart/wrun-bar-session-facts.util.js +354 -0
  138. package/dist/utility/chart/wrun-wire-ref.util.d.ts +23 -0
  139. package/dist/utility/chart/wrun-wire-ref.util.js +16 -0
  140. package/dist/utility/common/safe-math-eval.d.ts +18 -0
  141. package/dist/utility/common/safe-math-eval.js +160 -0
  142. package/dist/utility/common/time.util.d.ts +134 -0
  143. package/dist/utility/common/time.util.js +428 -0
  144. package/dist/utility/common/transformations.util.d.ts +126 -0
  145. package/dist/utility/common/transformations.util.js +711 -0
  146. package/dist/utility/common/visible-timeout.util.d.ts +17 -0
  147. package/dist/utility/common/visible-timeout.util.js +75 -0
  148. package/dist/utility/exchange-normalization.util.d.ts +8 -0
  149. package/dist/utility/exchange-normalization.util.js +32 -0
  150. package/dist/utility/html-escape.leaf.d.ts +11 -0
  151. package/dist/utility/html-escape.leaf.js +20 -0
  152. package/dist/utility/intl-locale.util.d.ts +2 -0
  153. package/dist/utility/intl-locale.util.js +28 -0
  154. package/dist/utility/number-format.util.d.ts +14 -1
  155. package/dist/utility/number-format.util.js +50 -19
  156. package/dist/utility/options/option-symbol.util.d.ts +28 -0
  157. package/dist/utility/options/option-symbol.util.js +176 -0
  158. package/dist/utility/options/option-trade-units.util.d.ts +190 -0
  159. package/dist/utility/options/option-trade-units.util.js +283 -0
  160. package/dist/utility/options/option-venue.util.d.ts +75 -0
  161. package/dist/utility/options/option-venue.util.js +85 -0
  162. package/dist/utility/pool-symbol.leaf.d.ts +34 -0
  163. package/dist/utility/pool-symbol.leaf.js +95 -0
  164. package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.d.ts +109 -0
  165. package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +302 -0
  166. package/dist/utility/symbol-selection/contract-expiry.util.d.ts +39 -0
  167. package/dist/utility/symbol-selection/contract-expiry.util.js +111 -0
  168. package/dist/utility/v2/gate-plane.util.d.ts +58 -0
  169. package/dist/utility/v2/gate-plane.util.js +99 -0
  170. package/dist/utility/v2/gate-session-latch.util.d.ts +22 -0
  171. package/dist/utility/v2/gate-session-latch.util.js +34 -0
  172. package/dist/utility/watchlist/import/tradingview-symbols.leaf.d.ts +76 -0
  173. package/dist/utility/watchlist/import/tradingview-symbols.leaf.js +221 -0
  174. package/dist/utility/wrun/sources/host-grid-landing.d.ts +15 -0
  175. package/dist/utility/wrun/sources/host-grid-landing.js +26 -0
  176. package/dist/utility/wrun/sources/lanes/bitfinex_funding.d.ts +27 -0
  177. package/dist/utility/wrun/sources/lanes/bitfinex_funding.js +85 -0
  178. package/dist/utility/wrun/sources/lanes/economic.d.ts +27 -0
  179. package/dist/utility/wrun/sources/lanes/economic.js +79 -0
  180. package/dist/utility/wrun/sources/lanes/etf_holdings.d.ts +35 -0
  181. package/dist/utility/wrun/sources/lanes/etf_holdings.js +165 -0
  182. package/dist/utility/wrun/sources/lanes/etf_premium.d.ts +19 -0
  183. package/dist/utility/wrun/sources/lanes/etf_premium.js +114 -0
  184. package/dist/utility/wrun/sources/lanes/ethena_positions.d.ts +30 -0
  185. package/dist/utility/wrun/sources/lanes/ethena_positions.js +51 -0
  186. package/dist/utility/wrun/sources/lanes/index.d.ts +2 -0
  187. package/dist/utility/wrun/sources/lanes/index.js +32 -0
  188. package/dist/utility/wrun/sources/lanes/long_short_ratio.d.ts +17 -0
  189. package/dist/utility/wrun/sources/lanes/long_short_ratio.js +47 -0
  190. package/dist/utility/wrun/sources/lanes/option_daily.d.ts +58 -0
  191. package/dist/utility/wrun/sources/lanes/option_daily.js +111 -0
  192. package/dist/utility/wrun/sources/lanes/option_stats_10m.d.ts +27 -0
  193. package/dist/utility/wrun/sources/lanes/option_stats_10m.js +21 -0
  194. package/dist/utility/wrun/sources/lanes/options_flow.d.ts +50 -0
  195. package/dist/utility/wrun/sources/lanes/options_flow.js +155 -0
  196. package/dist/utility/wrun/sources/lanes/options_oi.d.ts +29 -0
  197. package/dist/utility/wrun/sources/lanes/options_oi.js +59 -0
  198. package/dist/utility/wrun/sources/lanes/options_volume.d.ts +38 -0
  199. package/dist/utility/wrun/sources/lanes/options_volume.js +63 -0
  200. package/dist/utility/wrun/sources/lanes/series.d.ts +67 -0
  201. package/dist/utility/wrun/sources/lanes/series.js +321 -0
  202. package/dist/utility/wrun/sources/lanes/token_supply.d.ts +30 -0
  203. package/dist/utility/wrun/sources/lanes/token_supply.js +145 -0
  204. package/dist/utility/wrun/sources/lanes/treasury_balance.d.ts +25 -0
  205. package/dist/utility/wrun/sources/lanes/treasury_balance.js +47 -0
  206. package/dist/utility/wrun/sources/lanes/volatility_index.d.ts +21 -0
  207. package/dist/utility/wrun/sources/lanes/volatility_index.js +11 -0
  208. package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +215 -0
  209. package/dist/utility/wrun/sources/opra-option-lanes.util.js +477 -0
  210. package/dist/utility/wrun/sources/registry.d.ts +21 -0
  211. package/dist/utility/wrun/sources/registry.js +237 -0
  212. package/dist/utility/wrun/sources/row-lane-registry.d.ts +28 -0
  213. package/dist/utility/wrun/sources/row-lane-registry.js +230 -0
  214. package/dist/utility/wrun/sources/row-lanes/index.d.ts +2 -0
  215. package/dist/utility/wrun/sources/row-lanes/index.js +12 -0
  216. package/dist/utility/wrun/sources/row-lanes/option_contract_flow.d.ts +2 -0
  217. package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +38 -0
  218. package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +55 -0
  219. package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +126 -0
  220. package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +4 -0
  221. package/dist/utility/wrun/sources/row-lanes/option_prints.js +191 -0
  222. package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +62 -0
  223. package/dist/utility/wrun/sources/row-lanes/option_strikes.js +147 -0
  224. package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +70 -0
  225. package/dist/utility/wrun/sources/row-lanes/option_surface.js +144 -0
  226. package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +309 -0
  227. package/dist/utility/wrun/sources/wrun-poll-lane.types.js +26 -0
  228. package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +350 -0
  229. package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +576 -0
  230. package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +275 -0
  231. package/dist/utility/wrun/sources/wrun-row-lane.types.js +16 -0
  232. package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +207 -0
  233. package/dist/utility/wrun/sources/wrun-row-lanes.util.js +450 -0
  234. package/dist/utility/wrun/wrun-browser-sources.leaf.d.ts +28 -0
  235. package/dist/utility/wrun/wrun-browser-sources.leaf.js +66 -0
  236. package/dist/utility/wrun/wrun-cloud-record.util.d.ts +65 -0
  237. package/dist/utility/wrun/wrun-cloud-record.util.js +121 -0
  238. package/dist/utility/wrun/wrun-daily-lane.util.d.ts +95 -0
  239. package/dist/utility/wrun/wrun-daily-lane.util.js +297 -0
  240. package/dist/utility/wrun/wrun-deadline.util.d.ts +52 -0
  241. package/dist/utility/wrun/wrun-deadline.util.js +82 -0
  242. package/dist/utility/wrun/wrun-etf-flow-lane.util.d.ts +94 -0
  243. package/dist/utility/wrun/wrun-etf-flow-lane.util.js +224 -0
  244. package/dist/utility/wrun/wrun-etf-funds.util.d.ts +82 -0
  245. package/dist/utility/wrun/wrun-etf-funds.util.js +242 -0
  246. package/dist/utility/wrun/wrun-frames.d.ts +20 -1
  247. package/dist/utility/wrun/wrun-frames.js +103 -49
  248. package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +2 -2
  249. package/dist/utility/wrun/wrun-hosted-wire-caps.js +27 -0
  250. package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +22 -0
  251. package/dist/utility/wrun/wrun-lane-refusal.leaf.js +32 -0
  252. package/dist/utility/wrun/wrun-lane-warmup.util.d.ts +18 -0
  253. package/dist/utility/wrun/wrun-lane-warmup.util.js +112 -0
  254. package/dist/utility/wrun/wrun-leg-close.util.d.ts +57 -0
  255. package/dist/utility/wrun/wrun-leg-close.util.js +187 -0
  256. package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +144 -0
  257. package/dist/utility/wrun/wrun-leg-fetch.util.js +212 -0
  258. package/dist/utility/wrun/wrun-leg-stream-classes.d.ts +73 -0
  259. package/dist/utility/wrun/wrun-leg-stream-classes.js +86 -0
  260. package/dist/utility/wrun/wrun-levels-child.util.d.ts +101 -6
  261. package/dist/utility/wrun/wrun-levels-child.util.js +335 -157
  262. package/dist/utility/wrun/wrun-memory-clamp.util.d.ts +33 -0
  263. package/dist/utility/wrun/wrun-memory-clamp.util.js +146 -0
  264. package/dist/utility/wrun/wrun-odds-template-market.util.d.ts +51 -0
  265. package/dist/utility/wrun/wrun-odds-template-market.util.js +251 -0
  266. package/dist/utility/wrun/wrun-opra-flow.leaf.d.ts +65 -0
  267. package/dist/utility/wrun/wrun-opra-flow.leaf.js +94 -0
  268. package/dist/utility/wrun/wrun-opra-lane.util.d.ts +47 -0
  269. package/dist/utility/wrun/wrun-opra-lane.util.js +58 -0
  270. package/dist/utility/wrun/wrun-opra-stats.leaf.d.ts +49 -0
  271. package/dist/utility/wrun/wrun-opra-stats.leaf.js +115 -0
  272. package/dist/utility/wrun/wrun-opra-underlying.util.d.ts +12 -0
  273. package/dist/utility/wrun/wrun-opra-underlying.util.js +1 -0
  274. package/dist/utility/wrun/wrun-option-contract-flow.util.d.ts +142 -0
  275. package/dist/utility/wrun/wrun-option-contract-flow.util.js +451 -0
  276. package/dist/utility/wrun/wrun-option-knobs.util.d.ts +43 -0
  277. package/dist/utility/wrun/wrun-option-knobs.util.js +81 -0
  278. package/dist/utility/wrun/wrun-option-prints.util.d.ts +144 -0
  279. package/dist/utility/wrun/wrun-option-prints.util.js +356 -0
  280. package/dist/utility/wrun/wrun-option-summary-lane.util.d.ts +102 -0
  281. package/dist/utility/wrun/wrun-option-summary-lane.util.js +143 -0
  282. package/dist/utility/wrun/wrun-options-chain.util.d.ts +308 -0
  283. package/dist/utility/wrun/wrun-options-chain.util.js +502 -0
  284. package/dist/utility/wrun/wrun-overlay-identity.util.d.ts +9 -4
  285. package/dist/utility/wrun/wrun-overlay-identity.util.js +16 -6
  286. package/dist/utility/wrun/wrun-panel-mount.lazy.d.ts +10 -0
  287. package/dist/utility/wrun/wrun-panel-mount.lazy.js +68 -0
  288. package/dist/utility/wrun/wrun-panel-mount.util.d.ts +377 -0
  289. package/dist/utility/wrun/wrun-panel-mount.util.js +2251 -0
  290. package/dist/utility/wrun/wrun-param-map.util.d.ts +298 -0
  291. package/dist/utility/wrun/wrun-param-map.util.js +581 -0
  292. package/dist/utility/wrun/wrun-pause-dim.util.d.ts +52 -0
  293. package/dist/utility/wrun/wrun-pause-dim.util.js +153 -0
  294. package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +149 -0
  295. package/dist/utility/wrun/wrun-pin-spelling.util.js +523 -0
  296. package/dist/utility/wrun/wrun-pin-venues.util.d.ts +116 -0
  297. package/dist/utility/wrun/wrun-pin-venues.util.js +320 -0
  298. package/dist/utility/wrun/wrun-pinned-interval.util.d.ts +20 -0
  299. package/dist/utility/wrun/wrun-pinned-interval.util.js +47 -0
  300. package/dist/utility/wrun/wrun-plot-gate.types.d.ts +23 -0
  301. package/dist/utility/wrun/wrun-plot-gate.types.js +7 -0
  302. package/dist/utility/wrun/wrun-present-bits.util.d.ts +37 -0
  303. package/dist/utility/wrun/wrun-present-bits.util.js +73 -0
  304. package/dist/utility/wrun/wrun-protocol-pending.util.d.ts +33 -0
  305. package/dist/utility/wrun/wrun-protocol-pending.util.js +57 -0
  306. package/dist/utility/wrun/wrun-refusal.util.d.ts +41 -1
  307. package/dist/utility/wrun/wrun-refusal.util.js +69 -2
  308. package/dist/utility/wrun/wrun-registry-errors.util.d.ts +1 -14
  309. package/dist/utility/wrun/wrun-registry-errors.util.js +0 -16
  310. package/dist/utility/wrun/wrun-row-source.d.ts +158 -0
  311. package/dist/utility/wrun/wrun-row-source.js +75 -0
  312. package/dist/utility/wrun/wrun-run-health.util.d.ts +155 -0
  313. package/dist/utility/wrun/wrun-run-health.util.js +273 -0
  314. package/dist/utility/wrun/wrun-run-interval-projection.types.d.ts +14 -0
  315. package/dist/utility/wrun/wrun-run-interval-projection.types.js +1 -0
  316. package/dist/utility/wrun/wrun-socket-row-source.d.ts +439 -0
  317. package/dist/utility/wrun/wrun-socket-row-source.js +1689 -0
  318. package/dist/utility/wrun/wrun-socket-session-losses.util.d.ts +18 -0
  319. package/dist/utility/wrun/wrun-socket-session-losses.util.js +25 -0
  320. package/dist/utility/wrun/wrun-source-rows.util.d.ts +911 -0
  321. package/dist/utility/wrun/wrun-source-rows.util.js +2597 -0
  322. package/dist/utility/wrun/wrun-tape-source.util.d.ts +82 -0
  323. package/dist/utility/wrun/wrun-tape-source.util.js +151 -0
  324. package/dist/utility/wrun/wrun-tier-grid.util.d.ts +137 -0
  325. package/dist/utility/wrun/wrun-tier-grid.util.js +279 -0
  326. package/dist/utility/wrun/wrun-trades-lane.util.d.ts +52 -0
  327. package/dist/utility/wrun/wrun-trades-lane.util.js +58 -0
  328. package/dist/utility/wrun/wrun-volume-profile-lane.util.d.ts +41 -0
  329. package/dist/utility/wrun/wrun-volume-profile-lane.util.js +66 -0
  330. package/dist/utility/wrun-display-name.util.d.ts +33 -0
  331. package/dist/utility/wrun-display-name.util.js +64 -0
  332. package/dist/workers/constants/kscript-transport-codes.d.ts +15 -0
  333. package/dist/workers/constants/kscript-transport-codes.js +15 -0
  334. package/dist/workers/constants/socket-slots.d.ts +574 -0
  335. package/dist/workers/constants/socket-slots.js +539 -0
  336. package/dist/workers/utils/number.worker.util.d.ts +5 -0
  337. package/dist/workers/utils/number.worker.util.js +10 -0
  338. package/dist/workers/utils/time.worker.util.d.ts +12 -0
  339. package/dist/workers/utils/time.worker.util.js +24 -0
  340. package/dist/workers/utils/volume-profile.worker.util.d.ts +200 -0
  341. package/dist/workers/utils/volume-profile.worker.util.js +631 -0
  342. package/package.json +10 -4
@@ -0,0 +1,350 @@
1
+ /**
2
+ * The generic half of every registry poll lane (`wrun-poll-lane.types.ts` is the contract a
3
+ * lane file keeps, `registry.ts` the discovery): what the run pass, the row builder and the
4
+ * live tick ask of a lane, written once over the descriptor, so no consumer names a lane.
5
+ *
6
+ * - `planWrunPollLaneInputs`: the STATIC plan, from the sheet alone. Each input of a registry
7
+ * class gets the lane serving its field and that field's column; a celled input and a field
8
+ * no lane serves refuse by name. The row builder runs it before any row, the run pass before
9
+ * any fetch.
10
+ * - `planWrunPollLanes`: the run's plan against the chart, before any fetch. Each input's
11
+ * `plan()` answers its payload extras (or refuses by name); inputs with equal extras share
12
+ * ONE lane instance (one fetch, one buffer), inputs with different extras get their own. On
13
+ * an index-mode chart (US stocks, forex, commodities, DEX) the chart's fetch never serves a
14
+ * lane that reads the chart's market: an input of one that declared a missing fill is dropped
15
+ * from planning and named in `missingFeeds` (the run draws, a note says which feed), any other
16
+ * refuses by name before its lane's `plan` runs; a `global` lane (a series naming its own
17
+ * subject) is planned there like anywhere. `planWrunPollLaneInstances` is the lanes alone.
18
+ * - `wrunPollLaneRequired`: the empty-answer rule. An instance must answer rows unless every
19
+ * input reading it declares `missing: "nan"` or `"zero"` (the funding rule, generalized:
20
+ * `wrunLaneRowsRequired`).
21
+ * - `wrunPollLaneValuelessInput`: the same rule per field. An answer with rows but no finite
22
+ * value in the column an input on the default carry policy reads has nothing to carry
23
+ * either: the run pass refuses with the lane's label and the field named.
24
+ * - the fetch shape: the lane's own interval (`wrunPollLaneFetchInterval`: a fixed one, `1d`
25
+ * for a daily join, else the chart's) and, for a `global` lane, the native-rows path
26
+ * (`wrunPollLaneFetchOptions`), the full run's window start and end
27
+ * (`wrunPollLaneFetchFrom`, `wrunPollLaneFetchTo`) and the reconcile's start
28
+ * (`wrunPollLaneReconcileFrom`).
29
+ * - a `chain` lane's plane per instance (`wrunPollLaneChainPlane`), the fields its asks name for it
30
+ * (`wrunPollLaneChainAsk`), the governed exchange its reconcile window and stop read
31
+ * (`wrunPollLaneChainGovernedExchange`), whether it reads OPRA (`wrunPollLaneInstanceReadsOpra`, the provenance
32
+ * stamp) and whether its acquisition moved (`wrunPollLaneMovedInstance`): the run's and the live tick's one rule.
33
+ * - the rules both planners keep (this one and wrun-row-lanes.util `planWrunRowLanes`), written once here: the chart's
34
+ * OPRA plane facts (`wrunChartOpraPlane`), a chain lane's OPRA wall and stop before its chain is resolved
35
+ * (`wrunChainLaneStop`), a lane's refusal that the chart has no option chain (`wrunLaneNoChainRefusal`), and what an
36
+ * input the chart does not serve does (`wrunUnservedLaneInput`: a declared fill drops it with a note, any other
37
+ * refuses by name).
38
+ */
39
+ import type { WrunIndicatorMetadata, WrunInputSource } from '../../../interfaces/wrun-runtime.interface.js';
40
+ import type { OpraReadFacts } from '../../chart/opra-read-access.leaf.js';
41
+ import type { OpraOptionPlaneStop } from '../../../host-ports.types.js';
42
+ import { type WrunPollLane, type WrunPollLaneContext, type WrunPollLaneId, type WrunPollLaneInstance } from './wrun-poll-lane.types.js';
43
+ import { type WrunLaneChainPlane } from './wrun-row-lane.types.js';
44
+ import type { WrunMissingFeed } from '../wrun-run-health.util.js';
45
+ import type { LiveBucketVenue } from '../../chart/live-bucket.util.js';
46
+ /** One input of a registry class under the static plan. */
47
+ export interface WrunPollLaneInput {
48
+ inputIndex: number;
49
+ inputName: string;
50
+ source: WrunInputSource;
51
+ /** The lane serving the input's field. */
52
+ lane: WrunPollLane;
53
+ /** The lane row column the field reads. */
54
+ column: number;
55
+ }
56
+ /**
57
+ * The static plan: every input whose class the registry serves, in declaration order, with the
58
+ * lane serving its field and the field's column. Refused by name: a celled input (poll lanes
59
+ * are scalar) and a field no lane of the class serves (the message lists the served ones).
60
+ * Empty when the sheet reads no registry class.
61
+ */
62
+ export declare function planWrunPollLaneInputs(metadata: WrunIndicatorMetadata): WrunPollLaneInput[];
63
+ /** A value's canonical text: object keys sorted at every depth, `undefined` members dropped (the instance key's
64
+ * suffix, here and for the row lanes). */
65
+ export declare function stableJson(value: unknown): string;
66
+ /** The id of the lane instance `extras` names: `poll:<laneKey>` when the ask carries no extras,
67
+ * else the extras' canonical text appended, so equal asks are ONE instance whatever order
68
+ * their fields were written in and different asks never collide. */
69
+ export declare function wrunPollLaneInstanceKey(laneKey: string, extras: Readonly<Record<string, unknown>>): WrunPollLaneId;
70
+ /** Why a lane reading the chart's market is not served on an index-mode chart, as its refusal
71
+ * says it: such a chart serves candles, time and the global series (named by class). */
72
+ export declare function wrunPollLaneIndexModeReason(): string;
73
+ /** What the run hands the poll planner beside the chart: its OPRA facts (`mayReadOpra`: who may read the plane)
74
+ * and the predicate an `opra` lane is admitted by (`isOpraPlaneExchange`: the chart's options ride the OPRA plane,
75
+ * a US stock or ETF chart under either venue spelling while the `opra` flag is lit, an OPRA contract chart; absent,
76
+ * no chart is judged off the plane). */
77
+ export interface WrunPollLaneRunFacts extends OpraReadFacts {
78
+ isOpraPlaneExchange?: (exchange: string) => boolean;
79
+ /** Why a chart off the plane is off it although its options list on OPRA (opra-options-gate.util
80
+ * `opraOptionPlaneStop`: the flag check's `flag-off`, the plane router's `chart-kind`); absent, the market's own
81
+ * words ("no such feed here"). */
82
+ opraPlaneStop?: (exchange: string) => OpraOptionPlaneStop | undefined;
83
+ }
84
+ /** The technical words of an OPRA lane a known stop keeps off the chart (Copy details), by the stop's reason. */
85
+ export declare function wrunOpraPlaneStopDetail(stop: OpraOptionPlaneStop): string;
86
+ /** The chart's OPRA plane facts as both planners read them, once per plan (`wrunChartOpraPlane`). */
87
+ export interface WrunChartOpraPlane {
88
+ /** The chart's options ride the OPRA plane (a US stock or ETF chart while the `opra` flag is lit, an OPRA contract
89
+ * chart). */
90
+ onPlane: boolean;
91
+ /** Off the plane, the known reason a chart whose options list on OPRA rides none (opra-options-gate.util
92
+ * `opraOptionPlaneStop`: the flag check's `flag-off`, the plane router's `chart-kind`); absent, none is known. */
93
+ stop?: OpraOptionPlaneStop;
94
+ }
95
+ /** The chart's OPRA plane facts, off the predicates the run injects (`isOpraPlaneExchange`: absent, no chart rides
96
+ * the plane; `opraPlaneStop`, asked only off the plane). */
97
+ export declare function wrunChartOpraPlane(exchange: string, facts: Pick<WrunPollLaneRunFacts, 'isOpraPlaneExchange' | 'opraPlaneStop'> | undefined): WrunChartOpraPlane;
98
+ /**
99
+ * Why one input of a lane the chart does not serve is not served, as `wrunUnservedLaneInput` reads it: the planner's
100
+ * own words after the input's label (`words`, with the `stop` when a known stop keeps the chart's OPRA options off the
101
+ * plane), or the lane's own refusal that the chart has no option chain (`noChain`, `wrunLaneNoChainRefusal`).
102
+ */
103
+ export type WrunUnservedLaneWhy = {
104
+ words: string;
105
+ stop?: OpraOptionPlaneStop;
106
+ } | {
107
+ noChain: Error;
108
+ };
109
+ /** One input the chart does not serve: its name and class (every note and refusal names them), the feed its note
110
+ * names (the lane key) and its declared `missing` policy. */
111
+ export interface WrunUnservedLaneInput {
112
+ inputName: string;
113
+ sourceClass: string;
114
+ feed: string;
115
+ missing: unknown;
116
+ }
117
+ /**
118
+ * The ONE rule for an input of a lane the chart does not serve, both planners' (`planWrunPollLanes` with
119
+ * `WRUN_POLL_LANE_UNSERVED_FILLS`, wrun-row-lanes.util `planWrunRowLanes` with a celled input's `empty`), whatever keeps
120
+ * it unserved (an index-mode chart, an OPRA lane off the plane, a chain lane stopped off it, a chart with no option
121
+ * chain): an input that declared one of `fills` is dropped from planning and named in `missing` under its feed, one
122
+ * entry per feed with its inputs in declaration order (the run draws, the row builder hands it an empty lane, a note
123
+ * says which feed and why); any other refuses by name (the default `carry` policy has nothing to carry). Throws, or
124
+ * records the note.
125
+ *
126
+ * The words: a known stop (`stop`) says that reason, the note and the refusal alike (`options-stopped`), never "this
127
+ * market has no such feed"; a chart with no option chain (`noChain`) puts the chain decision's own words in the note's
128
+ * details under the market's note (an options feed is missing on every market alike, a crypto one too), and an input
129
+ * with no fill refuses with that decision itself (`no-options` / `chain`); any other is the feed-missing record, saying
130
+ * "it comes from crypto markets" only on a chart provably no crypto venue (`cryptoVenue` false).
131
+ */
132
+ export declare function wrunUnservedLaneInput(missing: Map<string, WrunMissingFeed>, input: WrunUnservedLaneInput, fills: readonly string[], why: WrunUnservedLaneWhy, cryptoVenue: boolean | undefined): void;
133
+ /**
134
+ * Whether a lane's refusal says the chart has no option chain: its record's seed is `no-options` / `chain` (the chain
135
+ * decision's `no-chain`, opra-option-lanes.util `wrunLaneChainRefusalSeed`, and the OPRA-only lanes' "OPRA lists no
136
+ * options here"), read off the seed, never the words. Such a chart (a LINK perp, a forex pair, a stock listing no
137
+ * options) does not serve the feed: both planners hand the refusal to `wrunUnservedLaneInput`, so a declared fill reads.
138
+ */
139
+ export declare function wrunLaneNoChainRefusal(error: unknown): error is Error;
140
+ /**
141
+ * A chain lane's input before its chain is resolved, both planners' one rule: where the chart's options list on OPRA
142
+ * (riding the plane, or kept off it by a known stop) the OPRA wall first (`opra-official-only:<class>`), every chain it
143
+ * would read there being OPRA's; then, kept off the plane by a known stop (the `opra` flag dark, an index chart), why
144
+ * the input is unserved (the stop's words and the stop, for `wrunUnservedLaneInput`), so no chain is resolved past the
145
+ * stop. Undefined: the lane resolves its chain (its instance then meets its own plane's wall,
146
+ * `assertWrunLaneChainPlaneReadable`).
147
+ */
148
+ export declare function wrunChainLaneStop(plane: WrunChartOpraPlane, run: OpraReadFacts | undefined, ctx: Pick<WrunPollLaneContext, 'inputName' | 'sourceClass'>): WrunUnservedLaneWhy | undefined;
149
+ /** The run's plan against the chart (WRUN-REFUSALS contract): the lane instances to fetch, and
150
+ * the feeds the chart's fetch never serves to inputs that declared a missing fill (one entry per
151
+ * lane key, its inputs in declaration order). */
152
+ export interface WrunPollLanePlan {
153
+ lanes: WrunPollLaneInstance[];
154
+ missingFeeds: WrunMissingFeed[];
155
+ }
156
+ /** What `planWrunPollLanes` answers: the plan, which is ALSO its `lanes` array (`lanes` and
157
+ * `missingFeeds` are non-enumerable members of that array), so a caller written against the
158
+ * array keeps working while every new caller reads `lanes` and `missingFeeds`. Compare the
159
+ * members, never the whole value, with a deep equality. */
160
+ export type WrunPollLanePlanResult = WrunPollLanePlan & WrunPollLaneInstance[];
161
+ /**
162
+ * The run's plan against the chart, before any fetch: every registry input's `plan()` in
163
+ * declaration order (the first refusal by name wins, like every other pre-fetch refusal),
164
+ * grouped into lane instances by lane and payload extras. Empty when the sheet reads no
165
+ * registry class.
166
+ *
167
+ * On an index-mode chart (US stocks, forex, commodities, DEX: `isIndexModeExchange` answers for
168
+ * the chart's exchange) the chart's fetch answers nothing for a source other than candles asked
169
+ * on the chart's own exchange, so a lane that reads the chart's market is not served there (the
170
+ * capability evidence, never an empty window):
171
+ * - an input of such a lane that declares `missing: "nan"` or `"zero"` is dropped from planning
172
+ * (its lane's `plan` never runs, no fetch) and named in `missingFeeds` under its lane key: the
173
+ * row builder hands it an empty lane, so it reads its fill on every bar and the run draws;
174
+ * - any other input of such a lane (the default `carry` policy has nothing to carry) refuses by
175
+ * name (`wrunPollLaneIndexModeReason`), seeded `feed-missing` with its lane key.
176
+ * Both say "it comes from crypto markets" only when the chart is provably no crypto venue
177
+ * (`isCryptoVenueExchange` answers false; a DEX pool is index-mode AND a crypto venue), the
178
+ * neutral market words otherwise.
179
+ *
180
+ * A `global` lane (a series naming its own subject: a publisher's series, a token's supply, a
181
+ * venue's asset) is planned there like anywhere; its asks ride the fetch's native-rows path
182
+ * (`wrunPollLaneFetchOptions`), so the asked window stands and the control's own rows return
183
+ * instead of the chart's span re-stamped onto its sparse bars, and its daily landing finds the
184
+ * day's first bar on a session grid (wrun-daily-lane.util). The chart's index-mode verdict
185
+ * reaches each lane's `plan` as `ctx.indexMode`, the venue verdict as `ctx.cryptoVenue`.
186
+ *
187
+ * A `nativeRows` lane (a per-bar series of the chart's own market read from another plane: a stock
188
+ * chart's US options) is planned there too: its asks ride the native-rows path and land on the host
189
+ * bar grid (`barGrid`).
190
+ *
191
+ * An `opra` lane (US options data) is refused by name before its lane's `plan` runs for a run that may
192
+ * not read the OPRA plane (`mayReadOpra` over `run`: an official package always, a draft or community
193
+ * package only under the `opra-user-scripts` flag; absent reads closed): `opra-official-only:<class>`.
194
+ * It is served only where the chart's options ride the plane (`run.isOpraPlaneExchange`): on any other chart
195
+ * an input of it that declared a missing fill is dropped like an index-mode one, any other refuses by name.
196
+ * A chart whose options list on OPRA but ride no plane for a known reason (`run.opraPlaneStop`: the `opra`
197
+ * flag dark, `flag-off`; an index chart the router sends no OPRA read for, `chart-kind`) says that reason in the
198
+ * note and in the refusal (`options-stopped`), never "this market has no such feed".
199
+ * The run's facts reach an `opra` lane's `plan` as `ctx.official` and `ctx.opraUserScripts`.
200
+ *
201
+ * A `chain` lane (the chart's options chain on whichever plane it lists on) is admitted on every chart its options are
202
+ * not stopped on: its `plan` resolves the chain through the one chain resolver. It meets the OPRA wall before its
203
+ * `plan` runs where the chart's options list on OPRA (every chain it reads there is OPRA's), and each instance then
204
+ * meets its own plane's wall (`assertWrunLaneChainPlaneReadable`: OPRA's, the CME display wall, none for a crypto
205
+ * chain). On a chart whose options list on OPRA but ride no plane for a known reason (`run.opraPlaneStop`) it keeps an
206
+ * `opra` lane's rules (`wrunChainLaneStop`, the row lanes' one rule): a declared fill drops the input with the stop's
207
+ * note, any other input refuses with it, and no chain is resolved past the stop. Its context carries the run's OPRA
208
+ * facts (the chain decision's `auto` reads them), the chart's category, the plane verdict (`opraPlane`: a lane reading
209
+ * by coin there reads no chain directory) and the plan's `runScope` (its inputs share one chart resolution).
210
+ *
211
+ * A chart with no option chain (a LINK perp, a forex pair, a stock listing no options) does not serve an options feed:
212
+ * an input whose lane's `plan` refuses so (`wrunLaneNoChainRefusal`: the record's `no-options` / `chain`) meets the
213
+ * same rule as an input an index-mode chart does not serve (`wrunUnservedLaneInput`), its note naming the feed with the
214
+ * chain decision's words, its refusal the decision's own.
215
+ *
216
+ * An input the market leaves undemanded (its `needed_by` leaves the market out, wrunSheetWithLaneDemand) is planned
217
+ * nowhere, before all of the above: no wall, no admission, no `plan`, no fetch, no note; the row builder reads its
218
+ * fill on every bar.
219
+ *
220
+ * The predicates are injected (the run pass hands the chart's own `checkIsIndexMode` and its
221
+ * crypto-venue rule), so this module, which the row builder imports, stays off those modules'
222
+ * import graphs; without one no chart reads as index-mode, and without the other the venue is
223
+ * unknown (the neutral words).
224
+ */
225
+ export declare function planWrunPollLanes(metadata: WrunIndicatorMetadata, chart: Pick<WrunPollLaneContext, 'coin' | 'exchange' | 'symbol' | 'intervalMs'> & {
226
+ category?: unknown;
227
+ }, isIndexModeExchange?: (exchange: string) => boolean, isCryptoVenueExchange?: (exchange: string) => boolean, run?: WrunPollLaneRunFacts): Promise<WrunPollLanePlanResult>;
228
+ /** The lane instances of `planWrunPollLanes` alone (the array every caller that plans no notes
229
+ * reads): the same plan, the same refusals by name, an input that declared a missing fill on an
230
+ * index-mode chart dropped. */
231
+ export declare function planWrunPollLaneInstances(metadata: WrunIndicatorMetadata, chart: Pick<WrunPollLaneContext, 'coin' | 'exchange' | 'symbol' | 'intervalMs'> & {
232
+ category?: unknown;
233
+ }, isIndexModeExchange?: (exchange: string) => boolean, isCryptoVenueExchange?: (exchange: string) => boolean, run?: WrunPollLaneRunFacts): Promise<WrunPollLaneInstance[]>;
234
+ /**
235
+ * A chain instance against its own plane's wall, by the plane and the exchange its chain lists on: an OPRA chain the
236
+ * OPRA wall (`mayReadOpra`), a CME chain the CME display wall (OpenMarket's own packages only, the run door's rule on
237
+ * a CME chart, kscript-venue-policy.util; the `opra-user-scripts` flag never opens it), a crypto chain (`plain`)
238
+ * none. The row lanes keep the same rule (wrun-row-lanes.util), in the same words.
239
+ */
240
+ export declare function assertWrunLaneChainPlaneReadable(plane: WrunLaneChainPlane | undefined, exchange: string, run: OpraReadFacts | undefined, ctx: Pick<WrunPollLaneContext, 'inputName' | 'sourceClass'>): void;
241
+ /** The exchange a chain-lane instance's chain lists on (the payload field its `chain` names); '' for any other lane
242
+ * or a payload naming none. */
243
+ export declare function wrunPollLaneChainExchange(lane: Pick<WrunPollLane, 'chain'>, extras: Readonly<Record<string, unknown>>): string;
244
+ /** The plane a chain-lane instance reads, by its chain's exchange (`wrunLaneChainPlaneOf`, off the governed exchange
245
+ * sets); undefined for any other lane (its plane, if any, is its descriptor's `opra`). */
246
+ export declare function wrunPollLaneChainPlane(lane: Pick<WrunPollLane, 'chain'>, extras: Readonly<Record<string, unknown>>): WrunLaneChainPlane | undefined;
247
+ /** Whether one poll-lane instance reads the OPRA plane (the provenance stamp and the legend note follow it): every
248
+ * instance of an `opra` lane, a chain lane's whose chain lists on OPRA. */
249
+ export declare function wrunPollLaneInstanceReadsOpra(lane: Pick<WrunPollLane, 'opra' | 'chain'>, extras: Readonly<Record<string, unknown>>): boolean;
250
+ /** The governed exchange a chain-lane instance reads beside its chart's own market (the exchange its served access,
251
+ * and so its delayed window and its gate session, is read under): its chain's when a gate governs it (OPRA, a CME
252
+ * Group exchange); null for a crypto chain and for any other lane. */
253
+ export declare function wrunPollLaneChainGovernedExchange(lane: Pick<WrunPollLane, 'chain'>, extras: Readonly<Record<string, unknown>>): string | null;
254
+ /**
255
+ * A chain instance's ask (the full run's and the reconcile's, re-read on every ask): its payload with the fields its
256
+ * plane names beside it. An OPRA chain names the plane and its routed tier (`wrunOpraLanePayloadFields`: Door C judges
257
+ * it an OPRA ask, the legend names a delayed tier); a CME chain its routed tier alone (`servedTier`, so no source cache
258
+ * serves one tier's rows to the other; the chart's own badge names the delay); a crypto chain nothing. Any other
259
+ * lane's payload as it is. `tierOf` is the routing's rule (governed-route.util `governedMarketDataTier`), handed in so
260
+ * this module stays off the routing graph, and asked only for a governed exchange: it answers delayed for any
261
+ * exchange no gate governs.
262
+ */
263
+ export declare function wrunPollLaneChainAsk(lane: Pick<WrunPollLane, 'chain'>, extras: Readonly<Record<string, unknown>>, tierOf: (exchange: string) => 'realtime' | 'delayed'): Readonly<Record<string, unknown>>;
264
+ /** The first poll-lane instance of a session whose acquisition moved since the run planned it (its lane's
265
+ * `acquisitionMoved` over the run's record of it, else over the instance's payload), or undefined: the live tick
266
+ * rebuilds the session then, as for a row lane's (wrun-row-lanes.util `wrunRowLaneMovedInstance`). */
267
+ export declare function wrunPollLaneMovedInstance(instances: ReadonlyArray<Pick<WrunPollLaneInstance, 'key' | 'laneKey' | 'extras'>> | undefined, acquisition: Readonly<Partial<Record<WrunPollLaneId, Readonly<Record<string, unknown>>>>>): WrunPollLaneId | undefined;
268
+ /**
269
+ * Whether a lane must answer rows for the package: true when any input reading it (`reads`)
270
+ * rides the default carry policy (an absent series has nothing to carry, so an empty lane
271
+ * refuses loud); when every such input declares `missing: "nan"` or `"zero"` the lane stays
272
+ * quiet and the inputs read that fill. The funding lane's rule, for any lane.
273
+ */
274
+ export declare function wrunLaneRowsRequired(metadata: WrunIndicatorMetadata, reads: (input: WrunIndicatorMetadata['inputs'][number], source: WrunInputSource) => boolean): boolean;
275
+ /** `wrunLaneRowsRequired` for one registry lane instance (the inputs it serves). */
276
+ export declare function wrunPollLaneRequired(metadata: WrunIndicatorMetadata, instance: Pick<WrunPollLaneInstance, 'inputIndexes'>): boolean;
277
+ /**
278
+ * The first input of a lane instance, in declaration order, that rides the default carry policy
279
+ * and whose column holds NO finite value anywhere in the lane's answer (`rows`: the full answer,
280
+ * a daily lane's lookback included, so a series printed once before the chart window passes);
281
+ * undefined when every such input has one. A `null` cell is no value, never 0 (the controls lay
282
+ * `null` where the gateway has none), and a 0 is a value.
283
+ *
284
+ * The empty-answer rule (`wrunPollLaneRequired`) counts rows; this is the same rule per field. A
285
+ * lane can answer a row for every bar and no value for one field (Bitfinex publishes the margin
286
+ * rate for `fUSD` and `fETH`, not `fBTC`; a token's supply row leaves a field the gateway does
287
+ * not hold for it unset): under `carry` the input would read NaN on every bar with no message.
288
+ * An input declaring `missing: "nan"` or `"zero"` has said what an absent value reads as and
289
+ * stays quiet.
290
+ */
291
+ export declare function wrunPollLaneValuelessInput(metadata: WrunIndicatorMetadata, instance: Pick<WrunPollLaneInstance, 'inputIndexes'>, lane: Pick<WrunPollLane, 'fields'>, rows: ReadonlyArray<ArrayLike<unknown>>): {
292
+ inputName: string;
293
+ field: string;
294
+ } | undefined;
295
+ /** The interval a lane's asks name (the fetch's `interval` option): its fixed one, `1d` for a
296
+ * daily join that names none, undefined for the chart's own. */
297
+ export declare function wrunPollLaneFetchInterval(lane: Pick<WrunPollLane, 'interval' | 'join'>): string | undefined;
298
+ /** The fetch options a lane's asks carry (the full run's and the reconcile's alike): its
299
+ * interval (`wrunPollLaneFetchInterval`) and, for a `global` or a `nativeRows` lane, the native-rows
300
+ * path (the asked window stands and the control's own rows return on an index-mode chart too).
301
+ * Undefined when the ask carries neither (the chart's own interval, the chart's own market). */
302
+ export declare function wrunPollLaneFetchOptions(lane: Pick<WrunPollLane, 'interval' | 'join' | 'global' | 'nativeRows'>): {
303
+ interval?: string;
304
+ nativeRows?: true;
305
+ } | undefined;
306
+ /** Where the full run's ask opens for a chart window opening at `fromTs`: there for a `bar`
307
+ * join, at the first row's day (its `lookbackDays` earlier) for a daily one. */
308
+ export declare function wrunPollLaneFetchFrom(lane: Pick<WrunPollLane, 'join'>, fromTs: number): number;
309
+ /** Where the full run's ask closes for a chart whose last bar opens at `lastBarTs` on a grid of
310
+ * `intervalMs`: at that open for a `bar` join, at that bar's END for a host-grid one (`barGrid`: its
311
+ * rows are a tier's buckets, the forming bar's included); for a daily one at that open on an intraday or
312
+ * daily chart and at the bar's END on a coarser one (`wrunDailyLaneFetchTo`: the forming week
313
+ * or month holds days after its open). */
314
+ export declare function wrunPollLaneFetchTo(lane: Pick<WrunPollLane, 'join' | 'barGrid'>, lastBarTs: number, intervalMs: number, nowMs?: number): number;
315
+ /** Where a reconcile's ask closes for a chart-bar window closing at `toTs`: there for a `bar`
316
+ * join; for a daily one the day after the clock's day when the window closed before it on a
317
+ * chart coarser than a day (`wrunDailyLaneReconcileTo`, the forming bar of a session grid). */
318
+ export declare function wrunPollLaneReconcileTo(lane: Pick<WrunPollLane, 'join'>, toTs: number, intervalMs: number, nowMs: number): number;
319
+ /** Where a reconcile's ask (and its answer's authority) opens for the chart-bar window opening
320
+ * at `fromTs`, in a session whose first row is `sessionFirstRowTs`: at `fromTs` for a `bar`
321
+ * join; for a daily one where the full run's ask would open for that window (its day, the
322
+ * lane's `lookbackDays` earlier), never before the session's own full run opened
323
+ * (`wrunDailyLaneReconcileFrom`). A daily row is often published after its stamp date (a daily
324
+ * rate the next business day, a monthly series weeks later), so the lane's lookback is the
325
+ * publication-lag horizon: a reconcile that opened at the window's own day never fetched such
326
+ * a row, and the live tail kept a value a fresh full run no longer showed. */
327
+ export declare function wrunPollLaneReconcileFrom(lane: Pick<WrunPollLane, 'join'>, fromTs: number, sessionFirstRowTs: number): number;
328
+ /** The payload field a host-grid lane's ask names its backend tier in (`WrunPollLaneBarGrid.tiers`, a tier's
329
+ * `key`): the K control asks that tier. */
330
+ export declare const WRUN_POLL_LANE_TIER_FIELD = "tier";
331
+ /** The chart window a host-grid lane's asks cover: the host bars it lands on, ascending, the chart's bar
332
+ * span and grid, and the clock. */
333
+ export interface WrunHostGridWindow {
334
+ barOpens: readonly number[];
335
+ intervalMs: number;
336
+ barGrid?: LiveBucketVenue | null;
337
+ nowMs: number;
338
+ }
339
+ /**
340
+ * A lane's rows over a chart window, landed on the host bars when it is a host-grid lane (`barGrid`): its asks
341
+ * under the tier rule (`wrunHostGridAsks` over the window's host bars: one per run of bars on a tier, the
342
+ * tier's key in its extras as `tier`), each answer landed by the lane's landing (`wrunLandScalarRowsOnHostBars`:
343
+ * a flow summed per bar, a snapshot's newest sealed row, sealed by its ask's tier), ascending. A bar no tier
344
+ * retains asks nothing and reads no row. Any other lane is asked once over `[fromTs, toTs]` (`fallback`), its
345
+ * rows as they come. `ask` is the caller's fetch (the full run's, a reconcile's).
346
+ */
347
+ export declare function fetchWrunPollLaneHostGridRows(lane: Pick<WrunPollLane, 'barGrid'>, extras: Readonly<Record<string, unknown>>, window: WrunHostGridWindow, fallback: {
348
+ fromTs: number;
349
+ toTs: number;
350
+ }, ask: (extras: Readonly<Record<string, unknown>>, fromTs: number, toTs: number) => Promise<ArrayLike<number>[]>): Promise<ArrayLike<number>[]>;