@gloom-sh/terminal 0.20.20 → 0.20.21

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 (365) hide show
  1. package/package.json +3 -1
  2. package/src/api-client/data.ts +1 -1
  3. package/src/api-client/equity-screener.ts +17 -0
  4. package/src/api-client/futures-curve.ts +5 -0
  5. package/src/api-client/market-discovery.ts +8 -0
  6. package/src/api-client/members.ts +2 -0
  7. package/src/api-client/paths.ts +3 -0
  8. package/src/api-client/perps.ts +20 -0
  9. package/src/api-client/request.ts +53 -7
  10. package/src/api-client/types/filings-and-calls.ts +2 -0
  11. package/src/app/pane-runtime/plugin-bindings.ts +6 -4
  12. package/src/app/pro-welcome/model.ts +15 -11
  13. package/src/app/pro-welcome/row.tsx +3 -3
  14. package/src/app/pro-welcome/use-pro-welcome.ts +2 -2
  15. package/src/app/runtime/startup.ts +3 -2
  16. package/src/app.tsx +3 -2
  17. package/src/capabilities/asset-data-inputs.ts +5 -0
  18. package/src/capabilities/factories.ts +8 -3
  19. package/src/capabilities/registry.ts +1 -0
  20. package/src/capabilities/types.ts +1 -0
  21. package/src/cli/commands/market.ts +68 -35
  22. package/src/cli/commands/options-chain.ts +2 -2
  23. package/src/cli/commands/overview.ts +10 -9
  24. package/src/cli/commands/ticker.ts +19 -4
  25. package/src/cli/desktop-pane-shot.ts +11 -3
  26. package/src/cli/export-source.ts +35 -2
  27. package/src/cli/glossary.ts +3 -2
  28. package/src/cli/helpers.ts +2 -1
  29. package/src/cli/history-demergers.ts +41 -10
  30. package/src/cli/history-rows.ts +3 -1
  31. package/src/cli/known-gaps.ts +21 -7
  32. package/src/cli/listing-arg.ts +22 -11
  33. package/src/cli/pane-functions/capabilities.ts +4 -9
  34. package/src/cli/pane-functions/catalog-snapshot.json +29 -29
  35. package/src/cli/pane-functions/catalog.ts +1 -18
  36. package/src/cli/pane-functions/data.ts +8 -4
  37. package/src/cli/pane-functions/financial-ratio-shot.ts +20 -5
  38. package/src/cli/pane-functions/freshness.ts +57 -12
  39. package/src/cli/pane-functions/function-help.ts +2 -2
  40. package/src/cli/pane-functions/headless.ts +6 -0
  41. package/src/cli/pane-functions/index.ts +11 -4
  42. package/src/cli/pane-functions/market-session.ts +25 -0
  43. package/src/cli/pane-functions/report-notices.ts +10 -0
  44. package/src/cli/pane-functions/resolver.ts +75 -3
  45. package/src/cli/pane-functions/screenshot-bridge.ts +1 -0
  46. package/src/cli/pane-functions/screenshot-data-evidence.ts +1 -0
  47. package/src/cli/pane-functions/screenshot-payload.ts +38 -5
  48. package/src/cli/pane-functions/screenshot-render.ts +20 -7
  49. package/src/cli/perpetual-contract.ts +14 -1
  50. package/src/cli/report-tables.ts +11 -2
  51. package/src/cli/result.ts +6 -1
  52. package/src/components/chart-table/layout.ts +8 -4
  53. package/src/components/command-bar/list/model.ts +2 -0
  54. package/src/components/command-bar/pane-templates/items.ts +5 -25
  55. package/src/components/command-bar/panel/index.tsx +7 -4
  56. package/src/components/command-bar/routes/root/provider-search.ts +4 -4
  57. package/src/components/command-bar/routes/root/results.ts +6 -2
  58. package/src/components/command-bar/routes/ticker-search/results.ts +19 -0
  59. package/src/components/command-bar/routes/ticker-search/route.ts +3 -3
  60. package/src/components/command-bar/routes/ticker-search/title.ts +23 -0
  61. package/src/components/command-bar/routing/list-state.ts +17 -5
  62. package/src/components/command-bar/selection-runtime.ts +3 -2
  63. package/src/components/command-bar/surface/index.tsx +2 -0
  64. package/src/components/command-bar/workflow/alert.ts +6 -4
  65. package/src/components/command-bar/workflow/collection-actions.ts +2 -1
  66. package/src/components/layout/pane/footer/index.tsx +1 -0
  67. package/src/components/layout/pane/footer/model.ts +20 -7
  68. package/src/components/layout/pane/title.ts +11 -2
  69. package/src/components/price-selector-dialog.tsx +8 -4
  70. package/src/components/ticker/badge/list.tsx +4 -3
  71. package/src/components/ticker/list-table-view.tsx +12 -1
  72. package/src/components/ui/query-bar.tsx +20 -14
  73. package/src/data/cached-query.ts +20 -4
  74. package/src/data/news-pane-snapshots.ts +2 -1
  75. package/src/data/plugin-cache.ts +5 -1
  76. package/src/data/saved-copies.ts +68 -2
  77. package/src/docs/snapshot.json +65 -14
  78. package/src/docs/topics.ts +11 -9
  79. package/src/i18n/es.ts +1 -0
  80. package/src/i18n/ja.ts +1 -0
  81. package/src/i18n/ko.ts +1 -0
  82. package/src/i18n/zh-cn.ts +1 -0
  83. package/src/i18n/zh-tw.ts +1 -0
  84. package/src/market-data/coordinator/index.ts +25 -5
  85. package/src/market-data/depositary-pair.ts +27 -10
  86. package/src/market-data/futures-roll-returns.ts +54 -7
  87. package/src/market-data/fx-closes.ts +14 -0
  88. package/src/market-data/market/futures-product-hours.ts +113 -0
  89. package/src/market-data/market/futures-week.ts +2 -0
  90. package/src/market-data/market/globex-day.ts +9 -2
  91. package/src/market-data/market/status.ts +32 -25
  92. package/src/market-data/market/venue-session.ts +18 -0
  93. package/src/market-data/options-alternatives.ts +49 -7
  94. package/src/market-data/perpetual-open-interest.ts +41 -0
  95. package/src/market-data/quotes/contributions.ts +4 -2
  96. package/src/market-data/quotes/export-identity.ts +11 -3
  97. package/src/market-data/quotes/freshness.ts +3 -2
  98. package/src/market-data/quotes/resolution.ts +9 -2
  99. package/src/market-data/quotes/tick-range.ts +22 -1
  100. package/src/market-data/quotes/time.ts +34 -4
  101. package/src/market-data/split-terms.ts +3 -2
  102. package/src/news/aggregator.ts +1 -0
  103. package/src/news/news-model.ts +12 -2
  104. package/src/news/types.ts +15 -0
  105. package/src/plugins/builtin/alerts/alert-engine.ts +2 -0
  106. package/src/plugins/builtin/alerts/cli-forms.ts +3 -2
  107. package/src/plugins/builtin/alerts/cli-move.ts +5 -2
  108. package/src/plugins/builtin/alerts/cli.ts +50 -25
  109. package/src/plugins/builtin/alerts/command.ts +51 -3
  110. package/src/plugins/builtin/alerts/event-rows.ts +1 -1
  111. package/src/plugins/builtin/alerts/events-pane.tsx +1 -1
  112. package/src/plugins/builtin/alerts/format.ts +67 -8
  113. package/src/plugins/builtin/alerts/headless.ts +22 -6
  114. package/src/plugins/builtin/alerts/index.tsx +26 -25
  115. package/src/plugins/builtin/alerts/move-checks.ts +1 -0
  116. package/src/plugins/builtin/alerts/pane.tsx +15 -6
  117. package/src/plugins/builtin/alerts/pro-rules.ts +9 -4
  118. package/src/plugins/builtin/alerts/quotes.ts +10 -5
  119. package/src/plugins/builtin/alerts/session.ts +28 -0
  120. package/src/plugins/builtin/alerts/types.ts +1 -0
  121. package/src/plugins/builtin/analytics/pane-model.ts +2 -1
  122. package/src/plugins/builtin/analytics/risk-model.ts +2 -2
  123. package/src/plugins/builtin/attention/headless.ts +2 -2
  124. package/src/plugins/builtin/attention/model.ts +7 -2
  125. package/src/plugins/builtin/attention/pane.tsx +2 -1
  126. package/src/plugins/builtin/awards/headless.ts +1 -1
  127. package/src/plugins/builtin/broker-trading/ticket.tsx +13 -5
  128. package/src/plugins/builtin/buildout/detail/company.tsx +0 -1
  129. package/src/plugins/builtin/buildout/detail/ui.tsx +7 -5
  130. package/src/plugins/builtin/buildout/model/normalizers.ts +0 -1
  131. package/src/plugins/builtin/buildout/model/types.ts +0 -1
  132. package/src/plugins/builtin/buildout/pane/index.tsx +9 -0
  133. package/src/plugins/builtin/buildout/pane/status.tsx +11 -0
  134. package/src/plugins/builtin/catalysts/headless.ts +1 -1
  135. package/src/plugins/builtin/chart-composer/headless.ts +14 -6
  136. package/src/plugins/builtin/chart-composer/pane.tsx +2 -1
  137. package/src/plugins/builtin/chart-composer/session-history.ts +14 -2
  138. package/src/plugins/builtin/chat/controller/index.ts +5 -3
  139. package/src/plugins/builtin/chat/controller/session-runtime.ts +18 -8
  140. package/src/plugins/builtin/chat/index.tsx +1 -1
  141. package/src/plugins/builtin/cloud/auth-actions.tsx +4 -2
  142. package/src/plugins/builtin/cloud/mcp-connect/dialog.tsx +4 -1
  143. package/src/plugins/builtin/cloud/thesis/ticker-tab.tsx +2 -1
  144. package/src/plugins/builtin/company-attention/headless.ts +2 -1
  145. package/src/plugins/builtin/company-kpis/headless.ts +1 -1
  146. package/src/plugins/builtin/correlation/headless.ts +3 -3
  147. package/src/plugins/builtin/correlation/history.ts +1 -0
  148. package/src/plugins/builtin/correlation/index.tsx +7 -5
  149. package/src/plugins/builtin/correlation/matrix/selection.ts +21 -3
  150. package/src/plugins/builtin/correlation/relationship/model.ts +5 -0
  151. package/src/plugins/builtin/correlation/relationship/pane.tsx +3 -2
  152. package/src/plugins/builtin/correlation/relationship/view-model.ts +3 -2
  153. package/src/plugins/builtin/credit-documents/headless.ts +1 -1
  154. package/src/plugins/builtin/dividend-yield/client.ts +81 -10
  155. package/src/plugins/builtin/dividend-yield/headless.ts +21 -10
  156. package/src/plugins/builtin/dividend-yield/model.ts +1 -1
  157. package/src/plugins/builtin/dividend-yield/pane.tsx +9 -5
  158. package/src/plugins/builtin/dividend-yield/ranking.ts +15 -5
  159. package/src/plugins/builtin/dividend-yield/reference-price.ts +3 -0
  160. package/src/plugins/builtin/dividend-yield/types.ts +12 -0
  161. package/src/plugins/builtin/dividend-yield/view.ts +30 -7
  162. package/src/plugins/builtin/doe/headless.ts +1 -1
  163. package/src/plugins/builtin/doe/pane.tsx +16 -7
  164. package/src/plugins/builtin/earnings-calls/data.ts +8 -5
  165. package/src/plugins/builtin/earnings-ripple/headless.ts +1 -1
  166. package/src/plugins/builtin/econ/calendar-model.ts +1 -1
  167. package/src/plugins/builtin/econ/index.tsx +26 -18
  168. package/src/plugins/builtin/equity-screener/client.ts +1 -1
  169. package/src/plugins/builtin/equity-screener/headless.ts +149 -31
  170. package/src/plugins/builtin/equity-screener/live.ts +23 -5
  171. package/src/plugins/builtin/equity-screener/model.ts +27 -12
  172. package/src/plugins/builtin/equity-screener/pane.tsx +5 -5
  173. package/src/plugins/builtin/exposure/headless.ts +1 -1
  174. package/src/plugins/builtin/exposure/holdings.ts +2 -2
  175. package/src/plugins/builtin/futures/index.tsx +29 -1
  176. package/src/plugins/builtin/futures/model.ts +93 -10
  177. package/src/plugins/builtin/futures/returns.ts +54 -1
  178. package/src/plugins/builtin/futures/table.tsx +14 -2
  179. package/src/plugins/builtin/futures/use-front-returns.ts +20 -3
  180. package/src/plugins/builtin/futures-curve/client.ts +1 -1
  181. package/src/plugins/builtin/futures-curve/headless.ts +9 -3
  182. package/src/plugins/builtin/futures-curve/model.ts +19 -5
  183. package/src/plugins/builtin/futures-curve/pane.tsx +12 -6
  184. package/src/plugins/builtin/gpu/headless.ts +1 -1
  185. package/src/plugins/builtin/gpu/model.ts +1 -1
  186. package/src/plugins/builtin/help/function-index.ts +16 -8
  187. package/src/plugins/builtin/help/functions-table.tsx +6 -4
  188. package/src/plugins/builtin/help/shortcut-model.ts +7 -2
  189. package/src/plugins/builtin/holders/headless.ts +16 -5
  190. package/src/plugins/builtin/holders/pane.tsx +43 -5
  191. package/src/plugins/builtin/insider/client.ts +118 -11
  192. package/src/plugins/builtin/insider/filing-stories.ts +36 -20
  193. package/src/plugins/builtin/insider/issuer.ts +5 -2
  194. package/src/plugins/builtin/iv-history/headless.ts +2 -0
  195. package/src/plugins/builtin/macro-day/client.ts +2 -3
  196. package/src/plugins/builtin/macro-day/comparison.ts +58 -0
  197. package/src/plugins/builtin/macro-day/headless.ts +47 -3
  198. package/src/plugins/builtin/macro-day/index.tsx +32 -9
  199. package/src/plugins/builtin/macro-day/model.ts +1 -1
  200. package/src/plugins/builtin/macro-day/pane.tsx +99 -12
  201. package/src/plugins/builtin/market-heatmap/index.tsx +2 -2
  202. package/src/plugins/builtin/market-movers/footer.ts +29 -3
  203. package/src/plugins/builtin/market-movers/headless.ts +12 -5
  204. package/src/plugins/builtin/market-movers/index.tsx +3 -3
  205. package/src/plugins/builtin/market-movers/session-body.tsx +6 -3
  206. package/src/plugins/builtin/market-valuation/detail.tsx +3 -3
  207. package/src/plugins/builtin/market-valuation/headless.ts +6 -6
  208. package/src/plugins/builtin/market-valuation/pane.tsx +2 -3
  209. package/src/plugins/builtin/market-valuation/view.ts +6 -8
  210. package/src/plugins/builtin/members/client.ts +9 -2
  211. package/src/plugins/builtin/members/headless.ts +8 -10
  212. package/src/plugins/builtin/members/model.ts +29 -17
  213. package/src/plugins/builtin/members/pane.tsx +10 -12
  214. package/src/plugins/builtin/money-markets/headless.ts +1 -1
  215. package/src/plugins/builtin/news/headless.ts +4 -0
  216. package/src/plugins/builtin/news/index.tsx +3 -1
  217. package/src/plugins/builtin/news/wire/industry-pane.tsx +2 -1
  218. package/src/plugins/builtin/news/wire/news/preset-pane.tsx +1 -1
  219. package/src/plugins/builtin/news/wire/persisted-articles.ts +8 -4
  220. package/src/plugins/builtin/notes/headless.ts +7 -0
  221. package/src/plugins/builtin/notes/index.tsx +1 -1
  222. package/src/plugins/builtin/notes/quick-notes-pane.tsx +18 -2
  223. package/src/plugins/builtin/options/view.tsx +7 -6
  224. package/src/plugins/builtin/options-positioning/headless.ts +4 -4
  225. package/src/plugins/builtin/options-positioning/pane.tsx +7 -3
  226. package/src/plugins/builtin/options-scenario/client.ts +20 -4
  227. package/src/plugins/builtin/options-scenario/headless.ts +1 -1
  228. package/src/plugins/builtin/pe-band/client.ts +5 -9
  229. package/src/plugins/builtin/pe-band/headless.ts +11 -13
  230. package/src/plugins/builtin/pe-band/model.ts +39 -60
  231. package/src/plugins/builtin/pe-band/pane.tsx +14 -15
  232. package/src/plugins/builtin/perps/equity-row.tsx +3 -1
  233. package/src/plugins/builtin/perps/freshness.ts +16 -9
  234. package/src/plugins/builtin/perps/headless.ts +4 -1
  235. package/src/plugins/builtin/perps/markets-section.tsx +16 -10
  236. package/src/plugins/builtin/perps/model.ts +33 -2
  237. package/src/plugins/builtin/perps/pane.tsx +3 -2
  238. package/src/plugins/builtin/perps/status-line.ts +12 -3
  239. package/src/plugins/builtin/perps/venue-markets.ts +38 -0
  240. package/src/plugins/builtin/plugin-marketplace/pane.tsx +4 -3
  241. package/src/plugins/builtin/portfolio-list/cell-version.ts +1 -1
  242. package/src/plugins/builtin/portfolio-list/cli/render.ts +46 -7
  243. package/src/plugins/builtin/portfolio-list/headless.ts +31 -8
  244. package/src/plugins/builtin/portfolio-list/settings.ts +3 -0
  245. package/src/plugins/builtin/portfolio-list/table.tsx +7 -1
  246. package/src/plugins/builtin/power/headless.ts +1 -1
  247. package/src/plugins/builtin/realized-vol/headless.ts +1 -1
  248. package/src/plugins/builtin/research/corporate-actions-pane.tsx +27 -13
  249. package/src/plugins/builtin/scanner/feed.ts +7 -4
  250. package/src/plugins/builtin/scanner/flow-pane.tsx +8 -4
  251. package/src/plugins/builtin/scanner/headless.ts +57 -26
  252. package/src/plugins/builtin/scanner/hilo-pane.tsx +6 -3
  253. package/src/plugins/builtin/scanner/lock-note.ts +3 -2
  254. package/src/plugins/builtin/scanner/us-session.ts +9 -0
  255. package/src/plugins/builtin/seasonality/client.ts +46 -10
  256. package/src/plugins/builtin/seasonality/headless.ts +29 -11
  257. package/src/plugins/builtin/seasonality/model.ts +101 -24
  258. package/src/plugins/builtin/seasonality/pane.tsx +10 -6
  259. package/src/plugins/builtin/sec/filing-content.ts +13 -0
  260. package/src/plugins/builtin/sec/index.tsx +16 -11
  261. package/src/plugins/builtin/sectors/client.ts +27 -5
  262. package/src/plugins/builtin/sectors/headless.ts +2 -1
  263. package/src/plugins/builtin/sectors/index.tsx +22 -10
  264. package/src/plugins/builtin/shared/cloud-resource.ts +3 -3
  265. package/src/plugins/builtin/shared/extended-print.ts +38 -0
  266. package/src/plugins/builtin/shared/pro-feature-wall.tsx +1 -1
  267. package/src/plugins/builtin/shared/report-freshness.ts +7 -3
  268. package/src/plugins/builtin/shared/scanner-capture.ts +16 -3
  269. package/src/plugins/builtin/shared/ticker-company.ts +17 -8
  270. package/src/plugins/builtin/shared/use-quote-board.ts +11 -4
  271. package/src/plugins/builtin/social-mentions/client.ts +7 -3
  272. package/src/plugins/builtin/social-mentions/outliers.tsx +9 -2
  273. package/src/plugins/builtin/thirteenf/api.ts +24 -3
  274. package/src/plugins/builtin/thirteenf/data.ts +21 -8
  275. package/src/plugins/builtin/thirteenf/headless.ts +7 -3
  276. package/src/plugins/builtin/thirteenf/signals-pane.tsx +10 -3
  277. package/src/plugins/builtin/thirteenf/signals.ts +22 -1
  278. package/src/plugins/builtin/ticker-detail/adr-pair/model.ts +4 -2
  279. package/src/plugins/builtin/ticker-detail/financials/model.ts +7 -0
  280. package/src/plugins/builtin/ticker-detail/financials/ratio-table.tsx +15 -6
  281. package/src/plugins/builtin/ticker-detail/financials/ratios.ts +5 -4
  282. package/src/plugins/builtin/ticker-detail/financials/tab.tsx +14 -5
  283. package/src/plugins/builtin/ticker-detail/headless.ts +32 -26
  284. package/src/plugins/builtin/ticker-detail/index.tsx +1 -1
  285. package/src/plugins/builtin/ticker-detail/overview/components.tsx +8 -3
  286. package/src/plugins/builtin/ticker-detail/overview/model.ts +28 -5
  287. package/src/plugins/builtin/ticker-detail/overview/pane.tsx +14 -1
  288. package/src/plugins/builtin/ticker-detail/overview-tab.tsx +9 -8
  289. package/src/plugins/builtin/ticker-detail/pane.tsx +16 -9
  290. package/src/plugins/builtin/ticker-detail/quote-monitor/card.tsx +41 -23
  291. package/src/plugins/builtin/ticker-detail/quote-monitor/rows.ts +30 -13
  292. package/src/plugins/builtin/ticker-detail/settings.ts +9 -2
  293. package/src/plugins/builtin/time-sales/headless.ts +49 -13
  294. package/src/plugins/builtin/time-sales/model.ts +2 -2
  295. package/src/plugins/builtin/time-sales/window.ts +84 -10
  296. package/src/plugins/builtin/vol-surface/charts.tsx +4 -2
  297. package/src/plugins/builtin/vol-surface/events.ts +12 -5
  298. package/src/plugins/builtin/vol-surface/headless.ts +1 -1
  299. package/src/plugins/builtin/vol-surface/pane.tsx +15 -7
  300. package/src/plugins/builtin/world-indices/footer.ts +1 -1
  301. package/src/plugins/builtin/world-venue-map/chokepoint-report.ts +3 -1
  302. package/src/plugins/builtin/world-venue-map/headless.ts +27 -13
  303. package/src/plugins/builtin/yield-curve/client.ts +3 -1
  304. package/src/plugins/duplicates.ts +60 -0
  305. package/src/plugins/loader.ts +12 -3
  306. package/src/plugins/marketplace/model.ts +10 -1
  307. package/src/portfolio/column-values.ts +52 -5
  308. package/src/react/async-resource.ts +8 -7
  309. package/src/renderers/browser/bundled-plugins.ts +2 -1
  310. package/src/renderers/dom/build-assets.ts +20 -0
  311. package/src/renderers/dom/data-table/index.tsx +36 -2
  312. package/src/renderers/dom/es2023-array-methods.ts +57 -0
  313. package/src/renderers/dom/host/surface-fit.ts +64 -13
  314. package/src/renderers/dom/styles.css +6 -1
  315. package/src/renderers/electrobun/bun/external-plugins.ts +16 -6
  316. package/src/renderers/electrobun/shared/protocol.ts +2 -0
  317. package/src/renderers/electrobun/view/cli-pane-shot-entry.tsx +31 -7
  318. package/src/renderers/electrobun/view/cli-pane-shot-frame.tsx +15 -8
  319. package/src/renderers/electrobun/view/external-plugins.ts +1 -0
  320. package/src/renderers/electrobun/view/remote/asset-data-client.ts +1 -0
  321. package/src/series/types.ts +1 -0
  322. package/src/sources/gloomberb-cloud/fred-attribution.ts +6 -5
  323. package/src/sources/gloomberb-cloud/index.ts +42 -5
  324. package/src/sources/gloomberb-cloud/news.ts +15 -2
  325. package/src/sources/gloomberb-cloud/normalizers.ts +9 -0
  326. package/src/sources/history-result.ts +2 -1
  327. package/src/sources/history-retention.ts +14 -2
  328. package/src/sources/listing-symbols.ts +1 -1
  329. package/src/sources/provider-router/cache.ts +32 -3
  330. package/src/sources/provider-router/cached-routes.ts +25 -0
  331. package/src/sources/provider-router/connection-health.ts +1 -0
  332. package/src/sources/provider-router/history.ts +2 -2
  333. package/src/sources/provider-router/index.ts +14 -0
  334. package/src/sources/provider-router/sec-filings-page.ts +25 -0
  335. package/src/sources/sec-edgar/content.ts +67 -36
  336. package/src/tickers/listing-fate.ts +28 -0
  337. package/src/tickers/search/home-listing.ts +3 -0
  338. package/src/tickers/search/index-root-lead.ts +40 -0
  339. package/src/tickers/terminal-codes.ts +7 -4
  340. package/src/time-series/base-series.ts +17 -8
  341. package/src/time-series/fundamentals/historical-valuation.ts +2 -2
  342. package/src/time-series/fundamentals/series.ts +15 -12
  343. package/src/time-series/history-acquisition.ts +2 -0
  344. package/src/time-series/market.ts +3 -1
  345. package/src/time-series/price-comparison.ts +3 -1
  346. package/src/time-series/resolve-context.ts +8 -0
  347. package/src/time-series/resolve.ts +50 -10
  348. package/src/time-series/types.ts +1 -0
  349. package/src/time-series/use-chart-resolution.ts +2 -2
  350. package/src/time-series/valuation-currency.ts +40 -12
  351. package/src/types/data-provider.ts +30 -1
  352. package/src/types/financials.ts +23 -0
  353. package/src/types/headless.ts +23 -0
  354. package/src/types/instrument.ts +1 -0
  355. package/src/utils/crypto-pair.ts +16 -0
  356. package/src/utils/exchange-announcements.ts +2 -1
  357. package/src/utils/exchange-notation.generated.ts +58 -1
  358. package/src/utils/exchanges.ts +43 -1
  359. package/src/utils/format.ts +37 -2
  360. package/src/utils/function-search.ts +38 -0
  361. package/src/utils/fuzzy-search.ts +10 -6
  362. package/src/utils/option-choice.ts +15 -0
  363. package/src/utils/price-history.ts +15 -1
  364. package/src/utils/reason-codes.ts +6 -3
  365. package/src/utils/trailing-dividend.ts +241 -28
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FINANCIAL_VINTAGE_NOTICE, fillDate, filledPeriodPublications, filledPeriodsNote, hasOlderStatements, reportsHalfYearly, stalePeriodNote,
3
- statementHistoryNotes, statementPeriodMonths,
3
+ statementHistoryNotes,
4
4
  } from "../../../utils/financial-statements";
5
5
  import { canonicalExchange, isUsEquityExchange } from "../../../utils/exchanges";
6
6
  import { hasValidQuoteObservationTime } from "../../../market-data/quotes/freshness";
@@ -18,14 +18,14 @@ import {
18
18
  } from "../../../utils/price-history-integrity";
19
19
  import { indexBarVolume } from "../../../market-data/market/index-level";
20
20
  import {
21
- buildFinancialTableModel, financialColumnLabel, financialStatementCurrency, financialStatementDateNotice, financialStatementLimitations,
21
+ buildFinancialTableModel, financialColumnLabel, financialGrowthNotice, financialStatementCurrency, financialStatementDateNotice, financialStatementLimitations,
22
22
  financialReportHeader, financialStatementPeriods, financialSubTabFields, formatFinancialAmount, isPerShareFinancialRow, receiptShareCountLabel,
23
23
  } from "./financials/model";
24
24
  import { fiscalYearEndMonth } from "../../../utils/fiscal-period";
25
- import type { FinancialStatement } from "../../../types/financials";
26
25
  import { adrRatioText } from "../../../utils/depositary-receipt";
27
26
  import { paneSchemas } from "./headless-schema";
28
27
  import { loadPeriodEndHistory } from "./financials/period-end-history";
28
+ import { createValuationCurrencyContext, loadValuationFx } from "../../../time-series/valuation-currency";
29
29
  import { loadExchangeResultsNotes } from "./financials/exchange-results";
30
30
  import { boardKey, newYorkToday } from "../earnings/board-model";
31
31
  import { fetchEarningsHistory } from "../earnings/client";
@@ -111,6 +111,13 @@ async function barPriceUnit(
111
111
  return historyExportUnit(historyUnit(key, facts, await loadHeadlessContractPriceUnit(ctx, listing, facts?.instrumentType)));
112
112
  }
113
113
 
114
+ /** The currency a bar unit is in, for a price header: GBP, or JPY for a pair's `JPY per USD`; none for points or a contract's unit. */
115
+ function headerCurrency(unit: string | null): string | null {
116
+ if (!unit) return null;
117
+ if (/^[A-Z]{3}$/.test(unit)) return unit;
118
+ return /^([A-Z]{3}) per [A-Z]{3}$/.exec(unit)?.[1] ?? null;
119
+ }
120
+
114
121
  /** Bars of a window that closed before today: the history asked for, which no later bar makes stale. */
115
122
  function pastWindowFreshness(window: PriceWindow, size: HistoryBarSize, observedKey: string): HeadlessPaneFreshness {
116
123
  return { status: "not-a-feed", basis: `${historyBarSizeWord(size)} bars, ${priceWindowText(window)}`, observedKey, oldest: null };
@@ -417,8 +424,7 @@ async function loadFinancialReport(symbol: string, options: HeadlessPaneOptionVa
417
424
  period: requestedPeriod, growthBasis: requestedPeriod === "quarterly" ? "QoQ" : "YoY", columns: dates,
418
425
  shareBasis: shareBases.size === 1 ? [...shareBases][0] ?? null : null,
419
426
  ...(receiptPeriods.length > 0 ? { adrRatio: financials.fundamentals?.adrRatio ?? financials.quote?.adrRatio ?? null } : {}),
420
- // A quarter's change is against the quarter before it, which a reader of a table of quarters must be told.
421
- notices: rows.length ? [FINANCIAL_VINTAGE_NOTICE, ...requestedPeriod === "quarterly" ? [quarterlyGrowthNotice(table?.statements ?? [])] : [],
427
+ notices: rows.length ? [FINANCIAL_VINTAGE_NOTICE, financialGrowthNotice(requestedPeriod, table?.statements ?? []),
422
428
  ...(shareBasisNotice ? [shareBasisNotice] : [])] : [],
423
429
  limitations: financialStatementLimitations(financials),
424
430
  dateProvenance: financialStatementDateNotice(table?.statements ?? []),
@@ -452,16 +458,6 @@ function dateSourceNotes(columns: ReadonlyArray<{ dateSource: string }>): string
452
458
  ];
453
459
  }
454
460
 
455
- /**
456
- * What a table of quarters says its growth is measured against; a half filled
457
- * from a results announcement is measured against the same half a year earlier.
458
- */
459
- function quarterlyGrowthNotice(statements: readonly FinancialStatement[]): string {
460
- return statements.some((statement) => statement.date !== "TTM" && (statementPeriodMonths(statement) ?? 3) > 3)
461
- ? "Growth is vs prior quarter; a half's is vs the same half a year earlier."
462
- : "Growth is vs prior quarter.";
463
- }
464
-
465
461
  type HeadlessContext = Parameters<typeof financialStatementsHeadless.load>[1];
466
462
 
467
463
  async function newerQuarterRelease(ctx: HeadlessContext, symbol: string, financials: Awaited<ReturnType<typeof loadHeadlessFinancials>>, filedEnd: string | undefined): Promise<string | null> {
@@ -551,19 +547,23 @@ async function loadRatioReport(
551
547
  period: "annual" | "quarterly",
552
548
  hasRequestedStatements: boolean,
553
549
  ) {
554
- const oldest = hasRequestedStatements ? oldestRatioPeriodEnd(ratioStatements(financials, period)) : undefined;
555
- const history = oldest && tab.key === "valuation"
556
- ? await resolveHeadlessInstrument(ctx, symbol)
550
+ const statements = hasRequestedStatements && tab.key === "valuation" ? ratioStatements(financials, period) : [];
551
+ const oldest = oldestRatioPeriodEnd(statements);
552
+ const [history, fx] = oldest ? await Promise.all([
553
+ resolveHeadlessInstrument(ctx, symbol)
557
554
  .then(({ symbol: bare, exchange }) => loadPeriodEndHistory(ctx.marketData, bare, exchange ?? "", oldest))
558
- .catch(logFailure("ticker-detail.headless", "Load valuation price history failed", null))
559
- : null;
555
+ .catch(logFailure("ticker-detail.headless", "Load valuation price history failed", null)),
556
+ loadValuationFx(createValuationCurrencyContext(financials).fxCurrencies(statements), oldest, ctx.apiClient),
557
+ ]) : [null, undefined] as const;
558
+ const currencies = createValuationCurrencyContext(financials, fx);
559
+ const currencyNotes = tab.key === "valuation" ? [currencies.conversionNote(statements, ratioPeriodEnd), currencies.warning(statements, ratioPeriodEnd)] : [];
560
560
  const runway = tab.key === "liquidity" && hasRequestedStatements ? cashRunway(financials) : null;
561
561
  const periodEnd = burnsCash(runway) ? runway.periodEnd : null;
562
562
  const filings = periodEnd ? await resolveHeadlessInstrument(ctx, symbol)
563
563
  .then((listing) => loadRunwayOfferings(ctx.apiClient, listing, periodEnd, ctx.signal))
564
564
  .catch(logFailure("ticker-detail.headless", "Reading the offering filings failed", [] as OfferingFiling[])) : [];
565
565
  const table = hasRequestedStatements ? ratioTableForFinancials(financials, tab, period, history,
566
- periodEnd ? { periodEnd, filings } : undefined) : null;
566
+ periodEnd ? { periodEnd, filings } : undefined, currencies) : null;
567
567
  const statementCurrency = financialStatementCurrency(financials, [
568
568
  ...financials.annualStatements, ...financials.quarterlyStatements,
569
569
  ]);
@@ -622,6 +622,7 @@ async function loadRatioReport(
622
622
  // Each exported row names its unit, the statements' period and the newest period end it runs to.
623
623
  rowUnitKey: "unit", rowAsOfKey: "periodEnd", interval: period,
624
624
  notes: [
625
+ ...currencyNotes.filter((note): note is string => !!note),
625
626
  ...[stalePeriodNote(dates.map(({ periodEnd }) => ({ date: periodEnd, lead: true })))].filter((note): note is string => !!note),
626
627
  ...[filledPeriodsNote(table?.periods.map(({ statement }) => statement) ?? [])].filter((note): note is string => !!note),
627
628
  ...offering ? [offering] : [],
@@ -666,8 +667,9 @@ export const quoteComparisonHeadless: HeadlessPaneDefinition<"rows"> = {
666
667
  rows,
667
668
  // The report cites the sources its rows name, never Gloom Cloud for a quote that is not its own.
668
669
  ...loaded.entries.length > 0 ? { freshness: { source: quotesSourceName(loaded.entries.map(({ data }) => data), brokerName) || null } } : {},
669
- // An extended column or Chg bp only when a row has one, so a closed board stays as narrow as before.
670
- ...(columns.length > QUOTE_MONITOR_BASE_COLUMNS.length ? { columns } : {}),
670
+ // An extended column or Chg bp only when a row has one, so a closed board stays as narrow as before. The text
671
+ // report dates each print beside it, where an export has a column for the time.
672
+ ...(columns.length > QUOTE_MONITOR_BASE_COLUMNS.length ? { columns, textColumns: quoteMonitorColumns(rows, { exported: false }) } : {}),
671
673
  // Each exported row names its ticker, its unit, its source and when its own price was observed.
672
674
  ...QUOTE_MONITOR_ROW_KEYS,
673
675
  unavailableSymbols: loaded.unavailableSymbols, errors: loaded.errors,
@@ -681,8 +683,10 @@ export const quoteComparisonHeadless: HeadlessPaneDefinition<"rows"> = {
681
683
  * report declares before it has bars keep every digit the source sent. A bar without
682
684
  * volume in a history that reports it (`volumeMissing`) prints it as missing, never as 0.
683
685
  */
684
- const historyPriceColumns = (volumeMissing: boolean, decimals?: number, pence?: (close: number) => string | null): HeadlessPaneColumn[] => ["open", "high", "low", "close", "volume"].map((key) => ({
686
+ const historyPriceColumns = (volumeMissing: boolean, decimals?: number, pence?: (close: number) => string | null, currency?: string | null): HeadlessPaneColumn[] => ["open", "high", "low", "close", "volume"].map((key) => ({
685
687
  key, header: key, align: "right" as const,
688
+ // The text table names the currency over each price (Open GBP), as an export's currency_or_unit does.
689
+ ...currency && key !== "volume" ? { textHeader: `${key.charAt(0).toUpperCase()}${key.slice(1)} ${currency}` } : {},
686
690
  format: (value: unknown) => {
687
691
  if (value == null || !Number.isFinite(Number(value))) return key === "volume" && volumeMissing ? MISSING_VOLUME_TEXT : MISSING_VALUE;
688
692
  if (key === "volume") return formatNumber(Number(value), 0);
@@ -708,6 +712,8 @@ function historyColumns(
708
712
  pence?: (close: number) => string | null,
709
713
  /** A bar is flagged (`high<close`, `low<close/2`): the Flag column says how, as `history`'s does. */
710
714
  flagged = false,
715
+ /** The currency the prices are in, which the text table's price headers name. */
716
+ currency?: string | null,
711
717
  ): HeadlessPaneColumn[] {
712
718
  const daily = isDailyOrLongerBar(size);
713
719
  const date: HeadlessPaneColumn = {
@@ -721,7 +727,7 @@ function historyColumns(
721
727
  ? [{ key: "partial", header: "Partial", format: (value) => value === true ? "true" : "" }]
722
728
  : [];
723
729
  const flag: HeadlessPaneColumn[] = flagged ? [{ key: "flag", header: "Flag", format: (value) => typeof value === "string" ? value : "" }] : [];
724
- return [date, ...historyPriceColumns(volumeMissing, decimals, text ? pence : undefined), ...flag, ...marked];
730
+ return [date, ...historyPriceColumns(volumeMissing, decimals, text ? pence : undefined, text ? currency : undefined), ...flag, ...marked];
725
731
  }
726
732
 
727
733
  export const historicalPricesHeadless: HeadlessPaneDefinition<"rows"> = {
@@ -823,7 +829,7 @@ export const historicalPricesHeadless: HeadlessPaneDefinition<"rows"> = {
823
829
  ...(barInterval ? { interval: barInterval } : {}),
824
830
  columns: historyColumns(size, marked, false, false, decimals, undefined, flagged),
825
831
  textColumns: historyColumns(size, marked, true, volumeMissing > 0, decimals,
826
- (close) => penceFigure(Number(close.toFixed(Math.min(20, decimals))), quote, decimals), flagged),
832
+ (close) => penceFigure(Number(close.toFixed(Math.min(20, decimals))), quote, decimals), flagged, headerCurrency(unit)),
827
833
  freshness,
828
834
  ...(notes.length > 0 ? { notes } : {}),
829
835
  ...(notice ? { complete: false } : {}),
@@ -36,7 +36,7 @@ import {
36
36
  // `--statement` and `--period` open the financials tab on them; a value the tab has none of is refused.
37
37
  const RESEARCH_VIEW_REPORT_OPTIONS: PaneReportOptionDef[] = [
38
38
  { key: "tab", aliases: ["activeTab", "activeTabId", "paneTab"], type: "string", placeholder: "view",
39
- description: "Tab or view to open, by its id (overview, chart, financials, risk-factors); one the ticker has no tab for fails, naming the ones it has.",
39
+ description: "Tab or view to open, by label or id (Events, Corporate Actions, risk-factors); an unknown tab lists the available choices.",
40
40
  example: "--tab risk-factors" },
41
41
  { key: "statement", aliases: ["financialStatement"], type: "enum", values: FINANCIAL_STATEMENT_VALUES,
42
42
  description: "Financials statement or ratio tab to open; opens the financials tab." },
@@ -4,8 +4,9 @@ import { t, tf } from "../../../../i18n";
4
4
  import { formatMarketPrice, formatMarketPriceRange, formatMarketPriceWithCurrency, liveQuoteFormatOptions, type MarketFormatOptions } from "../../../../market-data/market/format";
5
5
  import { colors, hoverBg, priceColor } from "../../../../theme/colors";
6
6
  import type { Quote } from "../../../../types/financials";
7
+ import { formatQuoteBookTime, QUOTE_BOOK_UNDATED } from "../../../../market-data/quotes/time";
7
8
  import { Box, Text, useUiCapabilities } from "../../../../ui";
8
- import { MISSING_VALUE, displayWidth, formatNumber, truncateToDisplayWidth } from "../../../../utils/format";
9
+ import { MISSING_VALUE, displayWidth, formatTradeSize, truncateToDisplayWidth } from "../../../../utils/format";
9
10
  import type { OverviewFunctionLink, PositionTableRow, StatField } from "./types";
10
11
  import { portfolioPnlLabel } from "../../../../portfolio/position-metrics";
11
12
 
@@ -214,8 +215,9 @@ export function QuoteBook({ quote, assetCategory, width, desktopWidth }: {
214
215
  const priceOptions = liveQuoteFormatOptions(quote, quote.currency, assetCategory);
215
216
  const bidPrice = quote.bid != null ? formatMarketPriceWithCurrency(quote.bid, quote.currency, priceOptions) : MISSING_VALUE;
216
217
  const askPrice = quote.ask != null ? formatMarketPriceWithCurrency(quote.ask, quote.currency, priceOptions) : MISSING_VALUE;
217
- const bidText = quote.bidSize != null && quote.bidSize > 0 ? `${formatNumber(quote.bidSize, 0)} x ${bidPrice}` : bidPrice;
218
- const askText = quote.askSize != null && quote.askSize > 0 ? `${formatNumber(quote.askSize, 0)} x ${askPrice}` : askPrice;
218
+ // A coin's book is sized in fractions (0.0412 x $61,606.17), which whole-share rounding would show as 0.
219
+ const bidText = quote.bidSize != null && quote.bidSize > 0 ? `${formatTradeSize(quote.bidSize)} x ${bidPrice}` : bidPrice;
220
+ const askText = quote.askSize != null && quote.askSize > 0 ? `${formatTradeSize(quote.askSize)} x ${askPrice}` : askPrice;
219
221
  let spreadText = MISSING_VALUE;
220
222
  // A crossed book (a closing auction's last bid above its ask, Tencent's HK$430.80 / HK$430.40) has no spread to show.
221
223
  if (quote.bid != null && quote.ask != null && quote.ask >= quote.bid) {
@@ -225,6 +227,8 @@ export function QuoteBook({ quote, assetCategory, width, desktopWidth }: {
225
227
  spreadText = `${formatMarketPriceWithCurrency(spread, quote.currency, priceOptions)}${spreadPercent}`;
226
228
  }
227
229
 
230
+ // The book's own time, or that its source sent none: never the trade's time in the header beside it.
231
+ const bookTime = formatQuoteBookTime(quote);
228
232
  const row = (label: string, value: string, color: string): ColumnGridCell[] => [{ text: label, color: colors.textDim }, { text: value, color }];
229
233
  return (
230
234
  <Box flexDirection="column" width={nativePaneChrome ? undefined : width} flexShrink={0} style={nativePaneChrome ? { width: desktopWidth } : undefined}>
@@ -237,6 +241,7 @@ export function QuoteBook({ quote, assetCategory, width, desktopWidth }: {
237
241
  row(t("Bid"), bidText, colors.textBright),
238
242
  row(t("Ask"), askText, colors.textBright),
239
243
  row(t("Spr"), spreadText, colors.textDim),
244
+ ...bookTime ? [row(t("Time"), bookTime === QUOTE_BOOK_UNDATED ? t("not dated") : bookTime, colors.textDim)] : [],
240
245
  ]}
241
246
  />
242
247
  </Box>
@@ -9,6 +9,8 @@ import type { CedearRatio, CompanyProfile, DepositaryPair, NextEarnings, Quote,
9
9
  import { adrRatioText } from "../../../../utils/depositary-receipt";
10
10
  import { cedearRatioText, premiumText, ratioCount } from "../../../../market-data/depositary-pair";
11
11
  import { ADR_PAIR_TAB_ID, ADR_PAIR_TEMPLATE_ID } from "../adr-pair/model";
12
+ import { DEFAULT_RELATIONSHIP_RANGE, DEFAULT_RELATIONSHIP_SECOND_SYMBOL, relationshipBetaBasis, type RelationshipRegressionStats } from "../../correlation/relationship/model";
13
+ import { resolveTickerInstrumentKind } from "../../../../tickers/instrument-kind";
12
14
  import type { Portfolio, TickerPosition, TickerRecord } from "../../../../types/ticker";
13
15
  import type { BrokerInstanceConfig } from "../../../../types/config";
14
16
  import type { BrokerAccount } from "../../../../types/trading";
@@ -32,7 +34,7 @@ import { quoteVolumeCurrency, reportedQuoteVolume } from "../../../../market-dat
32
34
  import { formatChartLegendValue } from "../../../../components/chart/composite/format";
33
35
  import type { OverviewFunctionLink, PositionTableRow, StatField } from "./types";
34
36
  import type { OverviewDividendState } from "./dividend";
35
- import { lapseValue } from "../../../../utils/forward-dividend";
37
+ import { lapseValue, UNEVEN_REGULAR_PAYMENTS } from "../../../../utils/forward-dividend";
36
38
  import { getPortfolioPositionMetrics, getPortfolioQuoteDisplay, resolvePortfolioMarketValue, resolvePortfolioPositionPnl, portfolioPnlPercent, signedPositionDirection } from "../../../../portfolio/position-metrics";
37
39
  import { listingDividendYield, liveForwardPE, liveMarketCapitalization, liveTrailingPE } from "../../../../market-data/quotes/live-valuation";
38
40
  import { atRegularSessionPrice } from "../../../../market-data/quotes/regular-session-valuation";
@@ -48,6 +50,27 @@ import { burnsCash, formatRunwayMonths, type CashRunway, type RunwayEstimate } f
48
50
  type CurrencyConverter = (value: number, fromCurrency: string) => number;
49
51
 
50
52
  const RELATIONSHIP_GRAPH: OverviewFunctionLink = { name: "Relationship Graph", templateId: "relationship-graph-pane" };
53
+
54
+ // Require about 80% of a trading year for DES's 1Y label, allowing for unmatched holidays and missing sessions.
55
+ const MIN_OVERVIEW_BETA_RETURNS = 200;
56
+
57
+ export function overviewBetaRequest(ticker: TickerRecord, financials: TickerFinancials | null) {
58
+ const kind = resolveTickerInstrumentKind(ticker, financials);
59
+ const symbol = ticker.metadata.ticker;
60
+ const benchmark = DEFAULT_RELATIONSHIP_SECOND_SYMBOL;
61
+ return symbol !== benchmark && (kind === "equity" || kind === "fund")
62
+ ? { pair: [symbol, benchmark] as [string, string], range: DEFAULT_RELATIONSHIP_RANGE }
63
+ : null;
64
+ }
65
+
66
+ export function buildOverviewBeta(stats: Pick<RelationshipRegressionStats, "beta" | "sampleSize"> | null) {
67
+ if (!stats || stats.sampleSize < MIN_OVERVIEW_BETA_RETURNS || !finite(stats.beta)) return null;
68
+ return {
69
+ label: "Beta", value: formatNumber(stats.beta, 3),
70
+ detail: relationshipBetaBasis(DEFAULT_RELATIONSHIP_RANGE, DEFAULT_RELATIONSHIP_SECOND_SYMBOL),
71
+ link: RELATIONSHIP_GRAPH,
72
+ };
73
+ }
51
74
  const HOLDERS: OverviewFunctionLink = { name: "Holders", tabId: "holders", templateId: "holders-pane" };
52
75
  const SHORT_INTEREST: OverviewFunctionLink = { name: "Short Interest", tabId: "short-interest", templateId: "short-interest-pane" };
53
76
  const EARNINGS: OverviewFunctionLink = { name: "Earnings", templateId: "earnings-calendar-pane" };
@@ -332,7 +355,10 @@ export function buildOverviewStats({
332
355
  } else if (fundamentals && dividendYield != null && !dividend?.pending) {
333
356
  const basis = fundamentals.dividendYieldBasis;
334
357
  const label = basis === "forward" ? `Fwd ${kind} Yld` : basis === "trailing" ? `TTM ${kind} Yld` : `${kind} Yield`;
335
- stats.push({ label, value: formatLevelPercent(dividendYield), ...notSec });
358
+ // A forward yield over the year's uneven regular payments (HSBC's interims beside its final) says so, as DVD does.
359
+ const uneven = basis === "forward" && fundamentals.dividendRateBasis === "uneven-regular-payments"
360
+ ? { detail: [UNEVEN_REGULAR_PAYMENTS, "uneven interims"] } : {};
361
+ stats.push({ label, value: formatLevelPercent(dividendYield), ...notSec, ...uneven });
336
362
  }
337
363
  if (bond) {
338
364
  // Each dated, as the sponsor publishes it; the narrowest column drops the year.
@@ -407,9 +433,6 @@ export function buildOverviewStats({
407
433
  : check?.investmentsKept ? ["investments in", "inv. in"] : inBase(enterpriseValue, quoteCurrency),
408
434
  });
409
435
  }
410
- if (finite(fundamentals?.beta)) {
411
- stats.push({ label: "Beta", value: formatNumber(fundamentals.beta, 2), link: RELATIONSHIP_GRAPH });
412
- }
413
436
  if (finite(fundamentals?.shortPercentOfFloat)) {
414
437
  stats.push({
415
438
  label: "Short Float",
@@ -3,7 +3,7 @@ import { PerpMarketsSection } from "../../perps/markets-section";
3
3
  import { TickerNewsHeadlines } from "../../news/overview-headlines";
4
4
  import { TICKER_NEWS_TAB_ID, TICKER_NEWS_TEMPLATE_ID } from "../../news/ticker-news";
5
5
  import { perpetualListing } from "../../../../tickers/perpetual-listing";
6
- import { useCallback } from "react";
6
+ import { useCallback, useMemo } from "react";
7
7
  import type { TickerResearchTabProps } from "../../../../types/plugin";
8
8
  import {
9
9
  useAppDispatch,
@@ -26,6 +26,9 @@ import { PaneLinkMenu } from "../../../../components";
26
26
  import { FunctionLinkRow } from "./components";
27
27
  import { OVERVIEW_CHART_SCALE_SETTING, parseOverviewChartScaleChoice } from "./chart-scale";
28
28
  import { useCoinOverview } from "./coin";
29
+ import { buildOverviewBeta, overviewBetaRequest } from "./model";
30
+ import { useRelationshipHistories } from "../../correlation/relationship/history";
31
+ import { buildRelationshipAnalysis, DEFAULT_RELATIONSHIP_CORRELATION_WINDOW, DEFAULT_RELATIONSHIP_RANGE } from "../../correlation/relationship/model";
29
32
 
30
33
  /** Registered by the chart composer, in the same plugin as this tab. */
31
34
  const CHART_TAB_ID = "chart";
@@ -34,6 +37,15 @@ const NEWS: OverviewFunctionLink = { name: "News", tabId: TICKER_NEWS_TAB_ID, te
34
37
 
35
38
  export function OverviewResearchTab({ width, height, focused }: TickerResearchTabProps) {
36
39
  const { symbol, ticker, financials } = usePaneTicker();
40
+ const betaRequest = ticker ? overviewBetaRequest(ticker, financials) : null;
41
+ const { data: betaHistory, error: betaError } = useRelationshipHistories(
42
+ betaRequest?.pair ?? null, betaRequest?.range ?? DEFAULT_RELATIONSHIP_RANGE, ticker?.metadata.exchange ?? "",
43
+ );
44
+ const beta = useMemo(() => {
45
+ const [left, right] = betaHistory ?? [];
46
+ if (betaError || !left || !right) return null;
47
+ return buildOverviewBeta(buildRelationshipAnalysis(left.points, right.points, DEFAULT_RELATIONSHIP_CORRELATION_WINDOW).stats);
48
+ }, [betaError, betaHistory]);
37
49
  const coin = useCoinOverview(ticker, financials, focused);
38
50
  const snapshot = useTickerSnapshotState(symbol, ticker);
39
51
  const dispatch = useAppDispatch();
@@ -68,6 +80,7 @@ export function OverviewResearchTab({ width, height, focused }: TickerResearchTa
68
80
  focused={focused}
69
81
  ticker={ticker}
70
82
  financials={financials}
83
+ beta={beta}
71
84
  coin={coin}
72
85
  onOpenChart={paneId && !lockedToOneTab ? openChart : undefined}
73
86
  onOpenFunction={openFunction}
@@ -17,7 +17,6 @@ import { formatMarketPriceWithCurrency, formatSignedMarketPrice, liveQuoteFormat
17
17
  import { priceSeriesUnit } from "../../../market-data/market/index-level";
18
18
  import {
19
19
  exchangeShortName,
20
- extendedPrintTime,
21
20
  extendedSessionLineLabel,
22
21
  getExtendedSessionDisplay,
23
22
  getRegularSessionDisplay,
@@ -29,7 +28,7 @@ import { buildPriceReturnFields, headlinePriceReturnEnd, priceReturnDailyWindow,
29
28
  import type { ChartRequest } from "../../../market-data/request-types";
30
29
  import { buildChartKey } from "../../../market-data/selectors";
31
30
  import { changeBasisLabel, changeBasisNote, closeDayLabel, futuresQuoteFromSettle, quoteChangeBasis, quoteSettleText } from "../../../market-data/market/change-basis";
32
- import { asOfClock } from "../../../market-data/quotes/time";
31
+ import { formatExtendedPrintAsOf } from "../../../market-data/quotes/time";
33
32
  import { useRemoteUiNode } from "../../../remote/semantic-tree";
34
33
  import { quoteObservation } from "../shared/report-freshness";
35
34
  import {
@@ -43,7 +42,7 @@ import { appendLiveQuotePoint, hasUnknownBondHistoryBasis } from "../../../time-
43
42
  import type { TickerFinancials } from "../../../types/financials";
44
43
  import type { TickerRecord } from "../../../types/ticker";
45
44
  import { Box, ScrollBox, Text, useUiCapabilities } from "../../../ui";
46
- import { publicTickerKey, resolveExchangeTimeZone } from "../../../utils/exchanges";
45
+ import { displayTickerKey, publicTickerKey, resolveExchangeTimeZone } from "../../../utils/exchanges";
47
46
  import { convertCurrency, displayWidth, formatPercentRaw } from "../../../utils/format";
48
47
  import {
49
48
  appTtmRate, baseCurrencyFiguresNote, enterpriseValueGapIsLarge, enterpriseValueReconciliationNote, trailingEpsFiscalYear, ttmAtAppRate,
@@ -125,6 +124,7 @@ interface OverviewTabProps {
125
124
  focused?: boolean;
126
125
  ticker: TickerRecord | null;
127
126
  financials: TickerFinancials | null;
127
+ beta?: StatField | null;
128
128
  /** A click on the price chart opens the full chart. */
129
129
  onOpenChart?: () => void;
130
130
  /** A click on a figure opens its research function (beta to GR, holders to HDS). */
@@ -175,7 +175,7 @@ export function OverviewTab(props: OverviewTabProps) {
175
175
  const FUND_FACTS_LINK: OverviewFunctionLink = { name: "Fund Facts", templateId: "sec-etf-pane" };
176
176
 
177
177
  function ResolvedOverviewTab({
178
- width, height, focused = false, ticker, financials, onOpenChart, onOpenFunction, perpetuals, news, coin, dividend, ah = null, boardLot = null, tax = null,
178
+ width, height, focused = false, ticker, financials, beta, onOpenChart, onOpenFunction, perpetuals, news, coin, dividend, ah = null, boardLot = null, tax = null,
179
179
  chartScale: chartScaleChoice = "auto", onChartScaleChange,
180
180
  }: OverviewTabProps & { ticker: TickerRecord }) {
181
181
  const trade = useResearchTrading();
@@ -292,7 +292,7 @@ function ResolvedOverviewTab({
292
292
  );
293
293
  const priceSeries = pricePointsToResolvedSeries(chartHistory, {
294
294
  id: `${ticker.metadata.ticker}:price`,
295
- label: `${ticker.metadata.ticker} ${yieldIndex ? "Yield" : "Price"}`,
295
+ label: `${displayTickerKey(ticker.metadata.ticker)} ${yieldIndex ? "Yield" : "Price"}`,
296
296
  color: priceColor(chartDelta),
297
297
  unit: yieldIndex ? "%" : unknownHistoryBasis ? "unknown" : priceSeriesUnit(quoteCurrency, instrumentType, quote?.priceBasis),
298
298
  ...(yieldIndex ? { unitGroup: "price:%" } : {}),
@@ -433,9 +433,9 @@ function ResolvedOverviewTab({
433
433
  // The extended session's line keeps its label and price whole on a narrow pane: the move gives
434
434
  // way to its percent, then goes, rather than wrapping a figure across two lines ("(+0." / "08%)").
435
435
  // The extended print says when it was observed (After-Hours 00:10 UTC), as the close above says its day.
436
- const extendedTime = extendedQuote ? extendedPrintTime(quote) : null;
436
+ const extendedTime = extendedQuote ? formatExtendedPrintAsOf(quote) : null;
437
437
  const extendedLabelText = extendedQuote
438
- ? `${extendedSessionLineLabel(extendedQuote, t)}${extendedTime != null ? ` ${asOfClock(Math.min(extendedTime, Date.now()))}` : ""}:`
438
+ ? `${extendedSessionLineLabel(extendedQuote, t)}${extendedTime ? ` ${extendedTime}` : ""}:`
439
439
  : "";
440
440
  const extendedPriceText = extendedQuote ? formatMarketPriceWithCurrency(extendedQuote.price, quote?.currency, moneyOptions) : "";
441
441
  const extendedMoveText = extendedQuote
@@ -745,11 +745,12 @@ function ResolvedOverviewTab({
745
745
  </Box>
746
746
  )}
747
747
 
748
- {stats.length > 0 && (
748
+ {(stats.length > 0 || beta) && (
749
749
  <Box flexDirection="column">
750
750
  <SectionHeading title={t("Fundamentals")} />
751
751
  <PaneLinkMenu>
752
752
  <FundamentalsGrid fields={stats} width={contentWidth} onOpenLink={onOpenFunction} />
753
+ {beta && <FundamentalsGrid fields={[beta]} columns={1} width={contentWidth} onOpenLink={onOpenFunction} />}
753
754
  {/* The statements behind the figures, for a company that has them. */}
754
755
  {onOpenFunction && hasStatementFinancials(financials) ? <FunctionLinkRow link={FINANCIALS} onOpen={onOpenFunction} /> : null}
755
756
  </PaneLinkMenu>
@@ -1,4 +1,5 @@
1
1
  import { logFailure } from "../../../utils/log-failure";
2
+ import { matchOptionChoice, optionChoiceNames } from "../../../utils/option-choice";
2
3
  import { Box } from "../../../ui";
3
4
  import { getCurrentPluginTarget } from "../../current-target";
4
5
  import { recordResearchActivity, recordResearchTabView } from "../../../api-client/research-activity";
@@ -37,7 +38,7 @@ import { useLiveStreamingSetting } from "../../../state/hooks/live-streaming";
37
38
  import { useCloudAccessFooter } from "../shared/cloud-upgrade";
38
39
  import { CLOUD_QUOTE_DELAY_MINUTES, freeQuoteDelayMinutes, usePlanAccess } from "../../../api-client/plan-access";
39
40
  import { shownPaneChoice } from "../../../core/state/app/pane-choices";
40
- import { parsePublicTickerKey, publicTickerKey } from "../../../utils/exchanges";
41
+ import { displayTickerKey, parsePublicTickerKey, publicTickerKey } from "../../../utils/exchanges";
41
42
  import { captureAttentionAction } from "../../../telemetry/attention-counts";
42
43
  import { tickerHasListingSuffix } from "../../../sources/listing-symbols";
43
44
  import { tickerQuoteFooterInfo } from "./quote-footer";
@@ -228,7 +229,14 @@ export function TickerResearchPane({ focused, width, height }: PaneProps) {
228
229
  config,
229
230
  hasOptionsChain,
230
231
  });
231
- const savedTabId = allTabs.some((tab) => tab.id === activeTabId) ? activeTabId : (allTabs[0]?.id ?? "overview");
232
+ const tabItemsKey = allTabs.map((tab) => `${tab.id}:${tab.name}:${tab.order}`).join("\0");
233
+ const groups = useMemo(() => groupTickerResearchTabs(allTabs), [tabItemsKey]);
234
+ const tabChoices = useMemo(() => [
235
+ ...allTabs.map((tab) => ({ value: tab.id, label: t(tab.name), viewId: tab.id })),
236
+ ...groups.filter((group) => !group.id.startsWith("tab:") && !allTabs.some((tab) => tab.id === group.id))
237
+ .map((group) => ({ value: group.id, label: t(group.name), viewId: tickerResearchGroupView(group, undefined) })),
238
+ ], [groups]);
239
+ const savedTabId = matchOptionChoice(tabChoices, activeTabId)?.viewId ?? allTabs[0]?.id ?? "overview";
232
240
  const proOnlyTabIds = useMemo(
233
241
  () => new Set(tickerResearchTabs.filter((tab) => tab.proOnly).map((tab) => tab.id)),
234
242
  [tickerResearchTabs],
@@ -245,14 +253,14 @@ export function TickerResearchPane({ focused, width, height }: PaneProps) {
245
253
  });
246
254
  // `gloom fn DES ARCC --tab x` opens on a tab the ticker has, or fails naming the ones it has: an id no tab has at
247
255
  // once, a tab this ticker does not show (financials of a fund without statements) once its data is in.
248
- const missingTab = !paneSettings.hideTabs && !!ticker && !allTabs.some((tab) => tab.id === committedActiveTabId)
249
- && (financials != null || !tickerResearchTabs.some((tab) => tab.id === committedActiveTabId));
256
+ const missingTab = !paneSettings.hideTabs && !!ticker && !matchOptionChoice(tabChoices, committedActiveTabId)
257
+ && (financials != null || !matchOptionChoice(tickerResearchTabs.map((tab) => ({ value: tab.id, label: t(tab.name) })), committedActiveTabId));
250
258
  useRemoteUiNode(missingTab ? {
251
259
  role: "report-failure",
252
260
  label: "No such tab",
253
261
  getMetadata: () => ({
254
- message: `${ticker!.metadata.ticker} has no ${committedActiveTabId} tab.`,
255
- details: `Tabs: ${allTabs.map((tab) => tab.id).join(", ")}.`,
262
+ message: `${displayTickerKey(ticker!.metadata.ticker)} has no ${committedActiveTabId} tab.`,
263
+ details: `Tabs: ${optionChoiceNames(tabChoices)}.`,
256
264
  }),
257
265
  } : null);
258
266
  // The address names the tab on screen, so a copied link opens what was seen.
@@ -278,6 +286,8 @@ export function TickerResearchPane({ focused, width, height }: PaneProps) {
278
286
  // Only quote/chart views use the parent quote status. Other research tabs
279
287
  // own their data status (the options chain may have a different delay/feed).
280
288
  const quoteFooterActive = resolvedTabId === "overview" || resolvedTabId === "chart";
289
+ // A capture of another tab keeps that tab's footer, and is not dated by the quote.
290
+ useRemoteUiNode(quoteFooterActive ? null : { role: "own-status", label: "Tab status" });
281
291
  // The quote's own delay (SGX's 20m), as the delayed mark on its price and the quote's status say it.
282
292
  const quoteDelay = freeQuoteDelayMinutes(access, financials?.quote) ?? CLOUD_QUOTE_DELAY_MINUTES;
283
293
  const cloudAccess = useCloudAccessFooter({
@@ -317,9 +327,6 @@ export function TickerResearchPane({ focused, width, height }: PaneProps) {
317
327
  }, [chooseTab, consumedTabAt, requestedTabAt, requestedTabId, setActiveTabId, setConsumedTabAt, visibleTabIdKey]);
318
328
  // A quote tick re-renders this pane; the strips only have to re-render
319
329
  // when a tab appears, disappears, or is renamed.
320
- const tabItemsKey = allTabs.map((tab) => `${tab.id}:${tab.name}:${tab.order}`).join("\0");
321
- // The top strip is the groups; a view keeps its own tab id everywhere else.
322
- const groups = useMemo(() => groupTickerResearchTabs(allTabs), [tabItemsKey]);
323
330
  const groupItems = useMemo(
324
331
  () => groups.map((group) => ({ label: t(group.name), value: group.id })),
325
332
  [groups],
@@ -21,7 +21,7 @@ import {
21
21
  import { t } from "../../../../i18n";
22
22
  import { isQuoteStaleForCurrentSession } from "../../../../market-data/quotes/freshness";
23
23
  import { delistingLabel, delistingStateLabel } from "../../../../market-data/quotes/delisting";
24
- import { formatQuoteNavAsOf, formatQuoteSessionAsOf } from "../../../../market-data/quotes/time";
24
+ import { formatExtendedPrintAsOf, formatQuoteNavAsOf, formatQuoteSessionAsOf } from "../../../../market-data/quotes/time";
25
25
  import { ClippedText } from "../../../../components/ui/display";
26
26
  import { useSelectionFill } from "../../../../components/ui/selection-fill";
27
27
  import { useQuoteFlashDirection } from "../../../../components/quote-flash";
@@ -46,9 +46,11 @@ function quoteTrend(value: number | null | undefined): PriceSparklineTrend {
46
46
  const DESKTOP_DETAIL_CHAR_PX = 12 * 0.6;
47
47
 
48
48
  /**
49
- * The extended print's line, "After-Hours $336.08 -0.17%": the full label
50
- * where the room allows, else "AH", "PM" or "ON" as the heat map marks them,
51
- * and no line where even that does not fit. Its move is never set without its
49
+ * The extended print's line, "After-Hours Sat 00:34 UTC $70.60 +1.35%": the
50
+ * full label where the room allows, else "AH", "PM" or "ON" as the heat map
51
+ * marks them, each with the print's own time (the close above is dated at the
52
+ * close), then without it (`dated` false: the as-of line says it instead), and
53
+ * no line where even that does not fit. Its move is never set without its
52
54
  * price: "AH +2.77%" beside the day's +2.33% read as a second day's move
53
55
  * (^N225 on a 70-column board, 9 Nov 2026), which a wide card's
54
56
  * "After-Hours 60,404.00 +2.77%" did not.
@@ -56,15 +58,16 @@ const DESKTOP_DETAIL_CHAR_PX = 12 * 0.6;
56
58
  function extendedLineParts(
57
59
  extended: ExtendedSessionDisplay,
58
60
  priceText: string,
61
+ time: string | null,
59
62
  fits: (text: string) => boolean,
60
- ): { label: string; figures: string } | null {
61
- const mark = EXTENDED_SESSION_MARKS[extended.session];
62
- const percent = formatPercentRaw(extended.changePercent);
63
+ ): { label: string; figures: string; dated: boolean } | null {
64
+ const labels = [extendedSessionLineLabel(extended, t), EXTENDED_SESSION_MARKS[extended.session]];
65
+ const figures = `${priceText} ${formatPercentRaw(extended.changePercent)}`;
63
66
  const candidates = [
64
- { label: extendedSessionLineLabel(extended, t), figures: `${priceText} ${percent}` },
65
- { label: mark, figures: `${priceText} ${percent}` },
67
+ ...time ? labels.map((label) => ({ label: `${label} ${time}`, figures, dated: true })) : [],
68
+ ...labels.map((label) => ({ label, figures, dated: false })),
66
69
  ];
67
- return candidates.find(({ label, figures }) => fits(`${label} ${figures}`)) ?? null;
70
+ return candidates.find(({ label }) => fits(`${label} ${figures}`)) ?? null;
68
71
  }
69
72
 
70
73
  const DESKTOP_DETAIL_TEXT_STYLE = { fontSize: "var(--gloom-type-ui)", lineHeight: "14px", whiteSpace: "nowrap" };
@@ -93,7 +96,7 @@ function ExtendedSessionLine({
93
96
  dim,
94
97
  desktopStyle,
95
98
  }: {
96
- parts: { label: string; figures: string };
99
+ parts: { label: string; figures: string; dated: boolean };
97
100
  color: string;
98
101
  dim: boolean;
99
102
  /** Placement on the desktop card's grid; the terminal gives the line one row. */
@@ -200,10 +203,9 @@ export function QuoteMonitorCard({
200
203
  const quoteStatus = resolveQuoteStatus(quoteEntry, symbol, quote);
201
204
  const quoteFailed = quoteStatus.failed && !!display;
202
205
  const navAsOf = formatQuoteNavAsOf(quote);
203
- // Each card says what its own price is as of (`CLOSED · 08:09 UTC` beside `15 min delayed · 21:20 UTC`);
204
- // a fund says its NAV's date instead.
206
+ // Each card says what its own price is as of (`CLOSED · 08:09 UTC` beside `CLOSED · Fri 21:00 UTC`, a close
207
+ // dated at the close while its after-hours print says its own time); a fund says its NAV's date instead.
205
208
  const sessionAsOf = quoteStatus.ended ? null : formatQuoteSessionAsOf(quote);
206
- const desktopAsOf = nativePaneChrome ? navAsOf ?? sessionAsOf : null;
207
209
  const changeColor = quoteFailed ? colors.textDim : priceColor(display?.change ?? 0);
208
210
  const flashing = !!flashDirection && !headlineHolds;
209
211
  const currency = quote?.currency || ticker?.metadata.currency || "USD";
@@ -224,13 +226,11 @@ export function QuoteMonitorCard({
224
226
  const extendedRoom = nativePaneChrome
225
227
  ? (width * cellWidthPx - 24) / DESKTOP_DETAIL_CHAR_PX
226
228
  : stacked ? width - 3 - displayWidth(label) : width - 3 - priceColumnWidth;
227
- const extendedParts = display && extended
228
- ? extendedLineParts(extended, formatMarketPriceWithCurrency(extended.price, currency, priceOptions), (text) => displayWidth(text) <= extendedRoom)
229
+ const extendedTime = formatExtendedPrintAsOf(quote);
230
+ const extendedPriceText = extended ? formatMarketPriceWithCurrency(extended.price, currency, priceOptions) : "";
231
+ const besideParts = display && extended
232
+ ? extendedLineParts(extended, extendedPriceText, extendedTime, (text) => displayWidth(text) <= extendedRoom)
229
233
  : null;
230
- // A desktop card says a listing no longer trades on a row of its own.
231
- const endedRow = nativePaneChrome && quoteFailed && !!quoteStatus.ended && !extendedParts;
232
- const extendedColor = quoteFailed ? colors.textDim : priceColor(extended?.change ?? 0);
233
- const extendedDim = !!flashDirection && headlineHolds;
234
234
  const sparklineRange = resolvePriceSparklineRange(priceHistory, chartPeriod);
235
235
  // A price in 32nds already has a hyphen (104-16½), so its range reads "to".
236
236
  const rangeSeparator = priceOptions.priceBasis === "thirty-seconds" ? " to " : "-";
@@ -244,9 +244,26 @@ export function QuoteMonitorCard({
244
244
  const headerRows = stacked ? 3 : 2;
245
245
  const showTerminalSparkline = (!quoteFailed && !navAsOf)
246
246
  || height >= headerRows + statusRows + terminalSparklineHeight;
247
+ const terminalRowsUsed = headerRows + statusRows + (perpetuals ? 1 : 0) + (showTerminalSparkline ? terminalSparklineHeight : 0);
247
248
  // The terminal gives the as-of line a row only where the card has one to spare: the sparkline keeps its rows.
248
- const showTerminalSessionAsOf = !!sessionAsOf
249
- && height >= headerRows + statusRows + (perpetuals ? 1 : 0) + (showTerminalSparkline ? terminalSparklineHeight : 0) + 1;
249
+ const showTerminalSessionAsOf = !!sessionAsOf && height >= terminalRowsUsed + 1;
250
+ // A terminal print whose time does not fit beside the change takes a row of its own across the card, with its
251
+ // time, where the card has one more to spare: `AH Sat 00:34 UTC $70.60 +1.35%` under `CLOSED · Fri 21:00 UTC`.
252
+ const rowParts = !nativePaneChrome && display && extended && extendedTime && !besideParts?.dated
253
+ && height >= terminalRowsUsed + (showTerminalSessionAsOf ? 1 : 0) + 1
254
+ ? extendedLineParts(extended, extendedPriceText, extendedTime, (text) => displayWidth(text) <= width - 2)
255
+ : null;
256
+ const extendedRowParts = rowParts?.dated ? rowParts : null;
257
+ const extendedParts = extendedRowParts ? null : besideParts;
258
+ // Else a print whose line had no room for its time is dated on the as-of line, after the close's: `· AH Sat 00:34 UTC`.
259
+ const sessionAsOfLine = sessionAsOf && extended && extendedParts && !extendedParts.dated && extendedTime
260
+ ? `${sessionAsOf} · ${EXTENDED_SESSION_MARKS[extended.session]} ${extendedTime}`
261
+ : sessionAsOf;
262
+ const desktopAsOf = nativePaneChrome ? navAsOf ?? sessionAsOfLine : null;
263
+ // A desktop card says a listing no longer trades on a row of its own.
264
+ const endedRow = nativePaneChrome && quoteFailed && !!quoteStatus.ended && !extendedParts;
265
+ const extendedColor = quoteFailed ? colors.textDim : priceColor(extended?.change ?? 0);
266
+ const extendedDim = !!flashDirection && headlineHolds;
250
267
  // Figures sit over the sparkline, so the desktop rings them in the card colour.
251
268
  const figureHalo = { textShadow: `0 1px 2px ${colors.bg}` };
252
269
  // The card's title: a heading over the app's 12px name, under the 20px price.
@@ -509,8 +526,9 @@ export function QuoteMonitorCard({
509
526
  <Box height={1} overflow="hidden"><Text fg={colors.textDim}>{navAsOf}</Text></Box>
510
527
  )}
511
528
  {showTerminalSessionAsOf && (
512
- <Box height={1} overflow="hidden"><ClippedText text={sessionAsOf!} width={Math.max(1, width - 2)} fg={colors.textDim} /></Box>
529
+ <Box height={1} overflow="hidden"><ClippedText text={sessionAsOfLine!} width={Math.max(1, width - 2)} fg={colors.textDim} /></Box>
513
530
  )}
531
+ {extendedRowParts && <ExtendedSessionLine parts={extendedRowParts} color={extendedColor} dim={extendedDim} />}
514
532
  {perpetuals}
515
533
  {showTerminalSparkline && <Box height={terminalSparklineHeight} flexDirection="row" alignItems="center" gap={1}>
516
534
  <PriceSparkline