@gloom-sh/terminal 0.0.0-stage → 0.18.5
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.
- package/LICENSE +25 -0
- package/README.md +73 -2
- package/README.zh-CN.md +116 -0
- package/bin/gloom +13 -0
- package/package.json +144 -4
- package/patches/@opentui%2Fcore@0.3.2.patch +624 -0
- package/patches/electrobun@1.18.1.patch +371 -0
- package/patches/react-reconciler@0.33.0.patch +10 -0
- package/src/account/auth-dialog.tsx +88 -0
- package/src/account/auth-form.tsx +276 -0
- package/src/account/auth-model.ts +167 -0
- package/src/account/billing.ts +57 -0
- package/src/account/checkout-handoff.tsx +225 -0
- package/src/account/device-signin-dialog.tsx +210 -0
- package/src/account/device-signin.ts +235 -0
- package/src/account/email-auth-attempt.ts +173 -0
- package/src/account/session.ts +16 -0
- package/src/account/upgrade-dialog.tsx +286 -0
- package/src/account/upgrade-personalization.ts +57 -0
- package/src/account/upgrade-tickers.ts +124 -0
- package/src/account/verification-panel.tsx +63 -0
- package/src/api-client/app-attention.ts +147 -0
- package/src/api-client/askg.ts +710 -0
- package/src/api-client/attention.ts +26 -0
- package/src/api-client/auth.ts +361 -0
- package/src/api-client/awards.ts +215 -0
- package/src/api-client/bank-figures.ts +73 -0
- package/src/api-client/beneficial-owners.ts +96 -0
- package/src/api-client/catalysts.ts +161 -0
- package/src/api-client/central-bank-rates.ts +51 -0
- package/src/api-client/chat-pane-link.ts +47 -0
- package/src/api-client/chat.ts +370 -0
- package/src/api-client/collections.ts +45 -0
- package/src/api-client/commodity-balances.ts +83 -0
- package/src/api-client/company-kpis.ts +174 -0
- package/src/api-client/cot.ts +74 -0
- package/src/api-client/cpi.ts +52 -0
- package/src/api-client/credit-boards.ts +89 -0
- package/src/api-client/credit-documents.ts +107 -0
- package/src/api-client/crypto-etf-flows.ts +37 -0
- package/src/api-client/crypto-markets.ts +205 -0
- package/src/api-client/data.ts +1303 -0
- package/src/api-client/debt-maturities.ts +110 -0
- package/src/api-client/distress.ts +164 -0
- package/src/api-client/doe.ts +109 -0
- package/src/api-client/earnings.ts +98 -0
- package/src/api-client/equity-screener.ts +221 -0
- package/src/api-client/errors.ts +142 -0
- package/src/api-client/estimate-revisions.ts +113 -0
- package/src/api-client/europe-energy.ts +197 -0
- package/src/api-client/exchange-announcements.ts +38 -0
- package/src/api-client/exposure.ts +202 -0
- package/src/api-client/feedback.ts +34 -0
- package/src/api-client/fund-facts.ts +111 -0
- package/src/api-client/futures-curve.ts +186 -0
- package/src/api-client/geo.ts +373 -0
- package/src/api-client/gpu.ts +93 -0
- package/src/api-client/hiring.ts +411 -0
- package/src/api-client/index.ts +1079 -0
- package/src/api-client/insider-signals.ts +159 -0
- package/src/api-client/ipo.ts +99 -0
- package/src/api-client/letters.ts +41 -0
- package/src/api-client/live-scan.ts +91 -0
- package/src/api-client/market-discovery.ts +120 -0
- package/src/api-client/market-movers.ts +67 -0
- package/src/api-client/members.ts +44 -0
- package/src/api-client/mna.ts +124 -0
- package/src/api-client/money-markets.ts +57 -0
- package/src/api-client/normalizers.ts +266 -0
- package/src/api-client/notes.ts +75 -0
- package/src/api-client/organization-tickers.ts +44 -0
- package/src/api-client/paths.ts +648 -0
- package/src/api-client/perps.ts +176 -0
- package/src/api-client/plan-access.ts +27 -0
- package/src/api-client/plan-rules.ts +87 -0
- package/src/api-client/power.ts +148 -0
- package/src/api-client/rates.ts +56 -0
- package/src/api-client/request.ts +681 -0
- package/src/api-client/research-activity.ts +589 -0
- package/src/api-client/revenue-breakdown.ts +36 -0
- package/src/api-client/session-cookie.ts +6 -0
- package/src/api-client/short-side-publications.ts +37 -0
- package/src/api-client/short-volume.ts +55 -0
- package/src/api-client/social-mentions.ts +63 -0
- package/src/api-client/socket.ts +1109 -0
- package/src/api-client/supply-chain-graph.ts +40 -0
- package/src/api-client/supply-chain.ts +106 -0
- package/src/api-client/swap-curve.ts +35 -0
- package/src/api-client/tape.ts +56 -0
- package/src/api-client/teams.ts +216 -0
- package/src/api-client/telemetry.ts +226 -0
- package/src/api-client/themes.ts +55 -0
- package/src/api-client/theses.ts +150 -0
- package/src/api-client/types.ts +2341 -0
- package/src/api-client/upgrade-experiment.ts +91 -0
- package/src/api-client/views.ts +98 -0
- package/src/api-client/wall-experiments.ts +102 -0
- package/src/api-client/wall-summary.ts +51 -0
- package/src/api-client/web-experiments.ts +139 -0
- package/src/api-client/yield-curves.ts +72 -0
- package/src/app/app-bootstrap-state.ts +121 -0
- package/src/app/command-bar-intro.ts +38 -0
- package/src/app/dialog-bridge.tsx +33 -0
- package/src/app/global-shortcuts.ts +334 -0
- package/src/app/keybindings/actions.ts +298 -0
- package/src/app/keybindings/capture-request.ts +36 -0
- package/src/app/keybindings/chord.ts +304 -0
- package/src/app/keybindings/config.ts +83 -0
- package/src/app/keybindings/index.ts +51 -0
- package/src/app/keybindings/labels.ts +104 -0
- package/src/app/keybindings/react.tsx +35 -0
- package/src/app/keybindings/resolve.ts +295 -0
- package/src/app/language-observer.tsx +13 -0
- package/src/app/pane-runtime/index.tsx +320 -0
- package/src/app/pane-runtime/layout-placement.ts +56 -0
- package/src/app/pane-runtime/pane-settings-runtime.tsx +69 -0
- package/src/app/pane-runtime/pane-template-runtime.ts +123 -0
- package/src/app/pane-runtime/plugin-bindings.ts +537 -0
- package/src/app/pane-runtime/ticker-inspector-runtime.ts +190 -0
- package/src/app/pane-runtime/ticker-open-runtime.ts +238 -0
- package/src/app/pane-runtime/ticker-open-target.ts +31 -0
- package/src/app/runtime/broker-import.ts +189 -0
- package/src/app/runtime/desktop-deeplink.ts +641 -0
- package/src/app/runtime/desktop-menu.ts +95 -0
- package/src/app/runtime/layout-warmup.ts +124 -0
- package/src/app/runtime/plugin-bindings.ts +284 -0
- package/src/app/runtime/startup.ts +256 -0
- package/src/app/runtime/ticker-refresh.ts +206 -0
- package/src/app/runtime/update.ts +260 -0
- package/src/app/star-prompt/model.ts +98 -0
- package/src/app/star-prompt/runtime.ts +41 -0
- package/src/app/star-prompt/status-line.tsx +190 -0
- package/src/app.tsx +663 -0
- package/src/architecture/core-builtin-allowlist.json +39 -0
- package/src/architecture/dom-cell-metrics-allowlist.json +102 -0
- package/src/architecture/pane-tabs-allowlist.json +65 -0
- package/src/architecture/silent-catch-allowlist.json +3 -0
- package/src/architecture/ui-literals-allowlist.json +186 -0
- package/src/architecture/ui-tokens-allowlist.json +40 -0
- package/src/ask-gloom/pane-context.ts +130 -0
- package/src/ask-gloom/pane-request.ts +70 -0
- package/src/ask-gloom/pane-text.ts +201 -0
- package/src/assets/gloomberb-logo-windows.ico +0 -0
- package/src/assets/gloomberb-logo-windows.png +0 -0
- package/src/assets/gloomberb-logo.svg +1 -0
- package/src/assets/gloomberb-mark.ico +0 -0
- package/src/assets/gloomberb-mark.svg +1 -0
- package/src/brokers/account-cache.ts +218 -0
- package/src/brokers/broker-portfolio-sync.ts +357 -0
- package/src/brokers/broker-ticker-sync.ts +146 -0
- package/src/brokers/cloud-broker-link.ts +26 -0
- package/src/brokers/directory.ts +76 -0
- package/src/brokers/logos.ts +68 -0
- package/src/brokers/profile-form.ts +113 -0
- package/src/brokers/remote-broker-adapter.ts +115 -0
- package/src/brokers/remove-profile.ts +61 -0
- package/src/brokers/signed-in/adapter.ts +568 -0
- package/src/brokers/signed-in/catalog.ts +130 -0
- package/src/brokers/signed-in/client.ts +81 -0
- package/src/brokers/signed-in/connect.ts +90 -0
- package/src/brokers/signed-in/profile.ts +18 -0
- package/src/brokers/signed-in/sign-in-dialog.tsx +339 -0
- package/src/brokers/signed-in/sign-in.ts +237 -0
- package/src/brokers/sync-broker-instance.ts +479 -0
- package/src/capabilities/chart-series.ts +354 -0
- package/src/capabilities/factories.ts +168 -0
- package/src/capabilities/index.ts +42 -0
- package/src/capabilities/registry.ts +181 -0
- package/src/capabilities/service-capabilities.ts +78 -0
- package/src/capabilities/stream-client.ts +39 -0
- package/src/capabilities/types.ts +161 -0
- package/src/cli/bank-section.ts +147 -0
- package/src/cli/base-converter.ts +86 -0
- package/src/cli/board-coins.ts +70 -0
- package/src/cli/central-bank-events.ts +23 -0
- package/src/cli/command-options.ts +141 -0
- package/src/cli/commands/api.ts +142 -0
- package/src/cli/commands/broker.ts +49 -0
- package/src/cli/commands/command-utils.ts +83 -0
- package/src/cli/commands/crypto-hints.ts +103 -0
- package/src/cli/commands/fred-series.ts +319 -0
- package/src/cli/commands/keybindings.ts +125 -0
- package/src/cli/commands/market.ts +3523 -0
- package/src/cli/commands/news-hints.ts +62 -0
- package/src/cli/commands/news-search.ts +166 -0
- package/src/cli/commands/options-chain.ts +314 -0
- package/src/cli/commands/options-leaps.ts +839 -0
- package/src/cli/commands/overview.ts +916 -0
- package/src/cli/commands/plugins.ts +382 -0
- package/src/cli/commands/remote.ts +219 -0
- package/src/cli/commands/search.ts +633 -0
- package/src/cli/commands/system.ts +699 -0
- package/src/cli/commands/themes.ts +64 -0
- package/src/cli/commands/ticker.ts +1651 -0
- package/src/cli/context.ts +159 -0
- package/src/cli/currency-hints.ts +27 -0
- package/src/cli/desktop-pane-shot-routes.ts +7 -0
- package/src/cli/desktop-pane-shot-view.ts +114 -0
- package/src/cli/desktop-pane-shot.ts +1010 -0
- package/src/cli/earnings-calendar.ts +72 -0
- package/src/cli/entry.ts +97 -0
- package/src/cli/errors.ts +162 -0
- package/src/cli/exit-codes.ts +8 -0
- package/src/cli/export-source.ts +150 -0
- package/src/cli/freshness.ts +84 -0
- package/src/cli/fx-forward.ts +130 -0
- package/src/cli/fx-pair.ts +189 -0
- package/src/cli/glossary.ts +986 -0
- package/src/cli/help.ts +246 -0
- package/src/cli/helpers.ts +169 -0
- package/src/cli/history-export.ts +126 -0
- package/src/cli/history-rows.ts +799 -0
- package/src/cli/index-roots.ts +44 -0
- package/src/cli/index.ts +513 -0
- package/src/cli/issuer-membership.ts +103 -0
- package/src/cli/known-gaps.ts +402 -0
- package/src/cli/listing-arg.ts +1401 -0
- package/src/cli/listing-suggestion.ts +174 -0
- package/src/cli/name-entries.ts +127 -0
- package/src/cli/native-smoke.ts +43 -0
- package/src/cli/not-a-ticker.ts +83 -0
- package/src/cli/opentui-libc.ts +5 -0
- package/src/cli/options.ts +166 -0
- package/src/cli/pane-functions/access-gate.ts +75 -0
- package/src/cli/pane-functions/capabilities.ts +364 -0
- package/src/cli/pane-functions/catalog.ts +761 -0
- package/src/cli/pane-functions/cloud-session.ts +47 -0
- package/src/cli/pane-functions/data.ts +254 -0
- package/src/cli/pane-functions/discovery.ts +234 -0
- package/src/cli/pane-functions/dom.ts +415 -0
- package/src/cli/pane-functions/financial-ratio-shot.ts +160 -0
- package/src/cli/pane-functions/freshness.ts +1205 -0
- package/src/cli/pane-functions/function-help.ts +1447 -0
- package/src/cli/pane-functions/headless.ts +1049 -0
- package/src/cli/pane-functions/index.ts +601 -0
- package/src/cli/pane-functions/lock-note.ts +59 -0
- package/src/cli/pane-functions/market-session.ts +235 -0
- package/src/cli/pane-functions/options.ts +392 -0
- package/src/cli/pane-functions/report-notices.ts +121 -0
- package/src/cli/pane-functions/report.ts +102 -0
- package/src/cli/pane-functions/resolver.ts +417 -0
- package/src/cli/pane-functions/screenshot-assessment.ts +322 -0
- package/src/cli/pane-functions/screenshot-bridge.ts +152 -0
- package/src/cli/pane-functions/screenshot-chart-evidence.ts +396 -0
- package/src/cli/pane-functions/screenshot-data-evidence.ts +383 -0
- package/src/cli/pane-functions/screenshot-evidence.ts +131 -0
- package/src/cli/pane-functions/screenshot-payload.ts +453 -0
- package/src/cli/pane-functions/screenshot-render.ts +316 -0
- package/src/cli/pane-functions/screenshot-types.ts +162 -0
- package/src/cli/pane-functions/shot-options.ts +73 -0
- package/src/cli/perpetual-contract.ts +62 -0
- package/src/cli/peso-dollar-rates.ts +79 -0
- package/src/cli/quote-answer.ts +220 -0
- package/src/cli/registry.ts +178 -0
- package/src/cli/report-tables.ts +692 -0
- package/src/cli/restore-plugins.ts +77 -0
- package/src/cli/result.ts +670 -0
- package/src/cli/row-window.ts +76 -0
- package/src/cli/scoped-context.ts +41 -0
- package/src/cli/scroll-truncation.ts +38 -0
- package/src/cli/series-search.ts +117 -0
- package/src/cli/staged-tickers.ts +57 -0
- package/src/cli/statement-filings.ts +280 -0
- package/src/cli/suffixed-listing-rows.ts +49 -0
- package/src/cli/symbol-args.ts +158 -0
- package/src/cli/symbol-cells.ts +120 -0
- package/src/cli/symbol-list.ts +374 -0
- package/src/cli/symbol-rows.ts +517 -0
- package/src/cli/ticker-resolution.ts +565 -0
- package/src/cli/treasury-yields.ts +86 -0
- package/src/cli/types.ts +42 -0
- package/src/cli/uncovered-instrument.ts +20 -0
- package/src/cli/unknown-command.ts +88 -0
- package/src/cli/visible-key-values.ts +29 -0
- package/src/components/chart/composite/axis-overlays.tsx +452 -0
- package/src/components/chart/composite/bitmap.ts +71 -0
- package/src/components/chart/composite/chart-layout.ts +131 -0
- package/src/components/chart/composite/column-layout.ts +215 -0
- package/src/components/chart/composite/composite-chart.tsx +1244 -0
- package/src/components/chart/composite/downsample.ts +221 -0
- package/src/components/chart/composite/drawing-store.ts +79 -0
- package/src/components/chart/composite/format.ts +574 -0
- package/src/components/chart/composite/index.ts +16 -0
- package/src/components/chart/composite/interactions.ts +379 -0
- package/src/components/chart/composite/legend.tsx +585 -0
- package/src/components/chart/composite/level-labels.ts +30 -0
- package/src/components/chart/composite/levels.ts +172 -0
- package/src/components/chart/composite/panel-bitmap.ts +180 -0
- package/src/components/chart/composite/panel-gestures.ts +100 -0
- package/src/components/chart/composite/panel-labels.ts +147 -0
- package/src/components/chart/composite/panel-series.ts +106 -0
- package/src/components/chart/composite/panel-surface.tsx +1279 -0
- package/src/components/chart/composite/price-axis-labels.tsx +320 -0
- package/src/components/chart/composite/price-series.ts +83 -0
- package/src/components/chart/composite/range-statistics.ts +62 -0
- package/src/components/chart/composite/rasterizer.ts +634 -0
- package/src/components/chart/composite/scene.ts +936 -0
- package/src/components/chart/composite/series-axis-tags.tsx +74 -0
- package/src/components/chart/composite/series-cues.ts +71 -0
- package/src/components/chart/composite/session-shading.ts +100 -0
- package/src/components/chart/composite/text-renderer.ts +400 -0
- package/src/components/chart/composite/time-axis.ts +705 -0
- package/src/components/chart/composite/time-scale.ts +335 -0
- package/src/components/chart/composite/tool-catalog.ts +98 -0
- package/src/components/chart/composite/toolbar.tsx +238 -0
- package/src/components/chart/composite/tools.ts +610 -0
- package/src/components/chart/composite/types.ts +354 -0
- package/src/components/chart/composite/use-composite-chart-keyboard.ts +837 -0
- package/src/components/chart/composite/use-composite-value-scales.ts +44 -0
- package/src/components/chart/composite/use-composite-viewport.ts +180 -0
- package/src/components/chart/composite/value-scale.ts +149 -0
- package/src/components/chart/composite/volume-profile-paint.ts +80 -0
- package/src/components/chart/core/data.ts +9 -0
- package/src/components/chart/core/date-window.ts +179 -0
- package/src/components/chart/core/palette.ts +49 -0
- package/src/components/chart/core/pointer.ts +182 -0
- package/src/components/chart/core/types.ts +22 -0
- package/src/components/chart/core/view-reset.ts +46 -0
- package/src/components/chart/curve/curve-surface.tsx +280 -0
- package/src/components/chart/curve/index.ts +4 -0
- package/src/components/chart/curve/model.ts +354 -0
- package/src/components/chart/native/bitmap-support.ts +55 -0
- package/src/components/chart/native/chart-rasterizer.ts +16 -0
- package/src/components/chart/native/kitty/adapter.ts +9 -0
- package/src/components/chart/native/kitty/manager.ts +145 -0
- package/src/components/chart/native/kitty/protocol.ts +112 -0
- package/src/components/chart/native/kitty/support.ts +104 -0
- package/src/components/chart/native/raster/crosshair.ts +89 -0
- package/src/components/chart/native/raster/placement.ts +138 -0
- package/src/components/chart/native/raster/primitives.ts +209 -0
- package/src/components/chart/native/raster/types.ts +25 -0
- package/src/components/chart/native/renderer-selection.ts +154 -0
- package/src/components/chart/native/surface/manager.ts +290 -0
- package/src/components/chart/native/surface/visibility.ts +85 -0
- package/src/components/chart/native/use-chart-text-fallback.ts +19 -0
- package/src/components/chart/static/chart-surface.tsx +162 -0
- package/src/components/chart/static/index.ts +5 -0
- package/src/components/chart/static/scatter-chart-surface.tsx +184 -0
- package/src/components/chart/static/series.ts +91 -0
- package/src/components/chart/static/trail-chart-model.ts +105 -0
- package/src/components/chart/static/trail-chart-surface.tsx +422 -0
- package/src/components/chart/surface3d/chart.tsx +104 -0
- package/src/components/chart/surface3d/model.ts +426 -0
- package/src/components/chart/surface3d/software.ts +360 -0
- package/src/components/chart-table/axis.ts +49 -0
- package/src/components/chart-table/header.tsx +264 -0
- package/src/components/chart-table/index.ts +13 -0
- package/src/components/chart-table/layout.ts +154 -0
- package/src/components/chart-table/read.tsx +74 -0
- package/src/components/chart-table/selection.ts +145 -0
- package/src/components/command-bar/action-runtime.ts +268 -0
- package/src/components/command-bar/assist/inventory.ts +145 -0
- package/src/components/command-bar/assist/model.ts +279 -0
- package/src/components/command-bar/assist/runtime.ts +246 -0
- package/src/components/command-bar/commands/collection-list.ts +262 -0
- package/src/components/command-bar/commands/collection.ts +285 -0
- package/src/components/command-bar/commands/direct/index.ts +445 -0
- package/src/components/command-bar/commands/direct/runtime.ts +181 -0
- package/src/components/command-bar/commands/plugin/actions.ts +143 -0
- package/src/components/command-bar/commands/plugin/items.ts +178 -0
- package/src/components/command-bar/commands/registry.ts +362 -0
- package/src/components/command-bar/helpers.ts +86 -0
- package/src/components/command-bar/keyboard-handlers.ts +129 -0
- package/src/components/command-bar/keyboard-shortcuts.ts +165 -0
- package/src/components/command-bar/layout-items/current-layout.ts +210 -0
- package/src/components/command-bar/layout-items/focused-pane.ts +193 -0
- package/src/components/command-bar/layout-items/types.ts +26 -0
- package/src/components/command-bar/layout-items/window-mode.ts +72 -0
- package/src/components/command-bar/layout-items.ts +93 -0
- package/src/components/command-bar/list/badge.ts +63 -0
- package/src/components/command-bar/list/model.ts +213 -0
- package/src/components/command-bar/list/navigation.ts +121 -0
- package/src/components/command-bar/list/view.tsx +362 -0
- package/src/components/command-bar/pane-actions.ts +128 -0
- package/src/components/command-bar/pane-settings.ts +44 -0
- package/src/components/command-bar/pane-templates/items.ts +288 -0
- package/src/components/command-bar/pane-templates/workflow-route.ts +91 -0
- package/src/components/command-bar/pane-templates/workflow.ts +344 -0
- package/src/components/command-bar/panel/index.tsx +260 -0
- package/src/components/command-bar/panel/layout.ts +150 -0
- package/src/components/command-bar/panel/native-surface.ts +26 -0
- package/src/components/command-bar/panel/palette.ts +28 -0
- package/src/components/command-bar/panel/prompt-binding.ts +54 -0
- package/src/components/command-bar/panel/prompt-example.ts +22 -0
- package/src/components/command-bar/panel/runtime.ts +230 -0
- package/src/components/command-bar/panel/state.ts +161 -0
- package/src/components/command-bar/panel/types.ts +50 -0
- package/src/components/command-bar/picker-activation.ts +87 -0
- package/src/components/command-bar/routes/root/command-items.ts +253 -0
- package/src/components/command-bar/routes/root/help-items.ts +66 -0
- package/src/components/command-bar/routes/root/pick-prefetch.ts +38 -0
- package/src/components/command-bar/routes/root/plugin-install.ts +304 -0
- package/src/components/command-bar/routes/root/plugin-turn-on.ts +92 -0
- package/src/components/command-bar/routes/root/provider-search.ts +271 -0
- package/src/components/command-bar/routes/root/results.ts +439 -0
- package/src/components/command-bar/routes/root/runtime.ts +396 -0
- package/src/components/command-bar/routes/root/search-providers.ts +311 -0
- package/src/components/command-bar/routes/root/search-report.ts +247 -0
- package/src/components/command-bar/routes/root/selection.ts +250 -0
- package/src/components/command-bar/routes/root/shortcut-feedback.ts +116 -0
- package/src/components/command-bar/routes/root/shortcut-items.ts +161 -0
- package/src/components/command-bar/routes/root/shortcuts.ts +221 -0
- package/src/components/command-bar/routes/root/start-here.ts +90 -0
- package/src/components/command-bar/routes/ticker-search/actions.ts +248 -0
- package/src/components/command-bar/routes/ticker-search/results.ts +328 -0
- package/src/components/command-bar/routes/ticker-search/route.ts +151 -0
- package/src/components/command-bar/routing/actions.ts +194 -0
- package/src/components/command-bar/routing/confirm.ts +23 -0
- package/src/components/command-bar/routing/effects.ts +63 -0
- package/src/components/command-bar/routing/launch-request.ts +41 -0
- package/src/components/command-bar/routing/list-state.ts +196 -0
- package/src/components/command-bar/routing/navigation-state.ts +197 -0
- package/src/components/command-bar/selection-runtime.ts +411 -0
- package/src/components/command-bar/surface/environment.ts +136 -0
- package/src/components/command-bar/surface/index.tsx +633 -0
- package/src/components/command-bar/theme-picker.tsx +336 -0
- package/src/components/command-bar/theme-preview.ts +84 -0
- package/src/components/command-bar/view-model.ts +237 -0
- package/src/components/command-bar/workflow/alert.ts +170 -0
- package/src/components/command-bar/workflow/broker.ts +186 -0
- package/src/components/command-bar/workflow/builtin.ts +174 -0
- package/src/components/command-bar/workflow/collection-actions.ts +398 -0
- package/src/components/command-bar/workflow/collection-ticker.ts +93 -0
- package/src/components/command-bar/workflow/coordinator.ts +72 -0
- package/src/components/command-bar/workflow/fields.ts +252 -0
- package/src/components/command-bar/workflow/ops.ts +459 -0
- package/src/components/command-bar/workflow/pane-reuse.ts +178 -0
- package/src/components/command-bar/workflow/portfolio-position.ts +211 -0
- package/src/components/command-bar/workflow/route-builder.ts +56 -0
- package/src/components/command-bar/workflow/submit.ts +220 -0
- package/src/components/command-bar/workflow/ticker-listing-picker.ts +38 -0
- package/src/components/command-bar/workflow/tickers.ts +288 -0
- package/src/components/command-bar/workflow/types.ts +106 -0
- package/src/components/company-logo.tsx +112 -0
- package/src/components/data-table/export.ts +76 -0
- package/src/components/data-table/sections.ts +57 -0
- package/src/components/data-table/sort-menu.tsx +75 -0
- package/src/components/data-table/stack-view.tsx +114 -0
- package/src/components/data-table/table-pane.ts +46 -0
- package/src/components/data-table/view.tsx +767 -0
- package/src/components/feed-data-table/stack-view.tsx +304 -0
- package/src/components/feed-stack-controller.ts +39 -0
- package/src/components/feedback-dialog.tsx +341 -0
- package/src/components/form-modal/broker-step.tsx +63 -0
- package/src/components/form-modal/confirm.tsx +147 -0
- package/src/components/form-modal/content.tsx +703 -0
- package/src/components/form-modal/deps.ts +77 -0
- package/src/components/form-modal/field-row.tsx +316 -0
- package/src/components/form-modal/host.tsx +169 -0
- package/src/components/form-modal/index.ts +2 -0
- package/src/components/form-modal/model.ts +134 -0
- package/src/components/form-modal/request.ts +74 -0
- package/src/components/form-modal/routes.ts +157 -0
- package/src/components/index.ts +162 -0
- package/src/components/input-search-bar.tsx +171 -0
- package/src/components/layout/detached-pane-shell.tsx +487 -0
- package/src/components/layout/floating-pane.tsx +196 -0
- package/src/components/layout/header.tsx +967 -0
- package/src/components/layout/market-summary.ts +154 -0
- package/src/components/layout/missing-pane.tsx +172 -0
- package/src/components/layout/pane/capture-stamp.ts +41 -0
- package/src/components/layout/pane/capture-status.ts +12 -0
- package/src/components/layout/pane/content.tsx +113 -0
- package/src/components/layout/pane/cycle-order.ts +23 -0
- package/src/components/layout/pane/error-boundary.tsx +103 -0
- package/src/components/layout/pane/footer/index.tsx +406 -0
- package/src/components/layout/pane/footer/keyboard.ts +99 -0
- package/src/components/layout/pane/footer/model.ts +456 -0
- package/src/components/layout/pane/footer/registration.tsx +278 -0
- package/src/components/layout/pane/frame.tsx +56 -0
- package/src/components/layout/pane/header-tabs.tsx +135 -0
- package/src/components/layout/pane/header.tsx +471 -0
- package/src/components/layout/pane/index.tsx +148 -0
- package/src/components/layout/pane/instrument-coverage-gate.tsx +57 -0
- package/src/components/layout/pane/pane-tabs.tsx +50 -0
- package/src/components/layout/pane/sidebar-metrics.ts +65 -0
- package/src/components/layout/pane/sidebar.tsx +448 -0
- package/src/components/layout/pane/sizing.ts +100 -0
- package/src/components/layout/pane/status-footer.ts +92 -0
- package/src/components/layout/pane/surface.ts +26 -0
- package/src/components/layout/pane/ticker-fate-gate.tsx +62 -0
- package/src/components/layout/pane/title.ts +111 -0
- package/src/components/layout/presentation.ts +22 -0
- package/src/components/layout/shell/action-menu-overlay.tsx +149 -0
- package/src/components/layout/shell/active-drag.ts +266 -0
- package/src/components/layout/shell/chrome.ts +127 -0
- package/src/components/layout/shell/cursor-occlusion.ts +206 -0
- package/src/components/layout/shell/drag/index.ts +456 -0
- package/src/components/layout/shell/drag/live.ts +203 -0
- package/src/components/layout/shell/drag/overlays.tsx +222 -0
- package/src/components/layout/shell/drag/runtime.ts +347 -0
- package/src/components/layout/shell/drag/slide.ts +10 -0
- package/src/components/layout/shell/fullscreen.ts +10 -0
- package/src/components/layout/shell/index.tsx +970 -0
- package/src/components/layout/shell/layout-state.ts +86 -0
- package/src/components/layout/shell/menu.ts +303 -0
- package/src/components/layout/shell/native/pointer-runtime.ts +209 -0
- package/src/components/layout/shell/native/surfaces.ts +143 -0
- package/src/components/layout/shell/native/window-state.ts +208 -0
- package/src/components/layout/shell/pane/actions.ts +223 -0
- package/src/components/layout/shell/pane/ask.ts +136 -0
- package/src/components/layout/shell/pane/capture.ts +177 -0
- package/src/components/layout/shell/pane/layers.tsx +777 -0
- package/src/components/layout/shell/pane/management-shortcuts.ts +239 -0
- package/src/components/layout/shell/pane/new-layout.ts +116 -0
- package/src/components/layout/shell/pane-occlusion.ts +63 -0
- package/src/components/layout/shell/shortcuts.ts +124 -0
- package/src/components/layout/shell/terminal-pointer-runtime.ts +380 -0
- package/src/components/layout/shell/ticker-link-menu.ts +115 -0
- package/src/components/layout/shell/visible-layout.ts +60 -0
- package/src/components/layout/shell/window-mode/index.ts +271 -0
- package/src/components/layout/shell/window-mode/overlays.tsx +225 -0
- package/src/components/layout/status-bar-groups.ts +85 -0
- package/src/components/layout/status-bar.tsx +755 -0
- package/src/components/layout/status-widget-space.ts +72 -0
- package/src/components/layout/titlebar-overlay.ts +17 -0
- package/src/components/layout/transient-layout.tsx +60 -0
- package/src/components/layout/window-controls.tsx +104 -0
- package/src/components/layout/window-edit/mode.ts +509 -0
- package/src/components/layout/window-edit/presentation.ts +138 -0
- package/src/components/layout/window-edit/status.tsx +121 -0
- package/src/components/layout/window-fullscreen.ts +32 -0
- package/src/components/markdown-editor.tsx +150 -0
- package/src/components/markdown-text.tsx +645 -0
- package/src/components/market-board/index.tsx +224 -0
- package/src/components/metric-treemap/heat-surface.tsx +828 -0
- package/src/components/metric-treemap/heat-tiles.ts +261 -0
- package/src/components/metric-treemap/index.tsx +352 -0
- package/src/components/metric-treemap/layout.ts +484 -0
- package/src/components/metric-treemap/scene.ts +432 -0
- package/src/components/onboarding/account-step/form-panel.tsx +196 -0
- package/src/components/onboarding/account-step/index.tsx +51 -0
- package/src/components/onboarding/account-step/qr-panel.tsx +47 -0
- package/src/components/onboarding/account-step/signed-in-panel.tsx +28 -0
- package/src/components/onboarding/desks-step.tsx +43 -0
- package/src/components/onboarding/first-run-workspace.ts +223 -0
- package/src/components/onboarding/onboarding-frame.tsx +597 -0
- package/src/components/onboarding/onboarding-keyboard.ts +311 -0
- package/src/components/onboarding/onboarding-steps.tsx +2 -0
- package/src/components/onboarding/onboarding-wizard.tsx +742 -0
- package/src/components/onboarding/portfolio-step/broker-fields-panel.tsx +177 -0
- package/src/components/onboarding/portfolio-step/broker-setup-panel.tsx +121 -0
- package/src/components/onboarding/portfolio-step/broker-sync-panel.tsx +40 -0
- package/src/components/onboarding/portfolio-step/choose-panel.tsx +39 -0
- package/src/components/onboarding/portfolio-step/index.tsx +74 -0
- package/src/components/onboarding/portfolio-step/positions-panel.tsx +374 -0
- package/src/components/onboarding/portfolio-step/types.ts +34 -0
- package/src/components/onboarding/portfolio-step/utils.ts +15 -0
- package/src/components/onboarding/pro-step-layout.ts +86 -0
- package/src/components/onboarding/use-onboarding-broker-form.ts +266 -0
- package/src/components/onboarding/use-onboarding-progress.ts +298 -0
- package/src/components/onboarding/use-onboarding-upgrade.ts +87 -0
- package/src/components/onboarding/wizard-account.ts +182 -0
- package/src/components/onboarding/wizard-broker-sync.ts +282 -0
- package/src/components/onboarding/wizard-model.ts +161 -0
- package/src/components/onboarding/wizard-positions.ts +434 -0
- package/src/components/paged-rows.ts +217 -0
- package/src/components/pane-settings-dialog/desktop.tsx +261 -0
- package/src/components/pane-settings-dialog/field-dialogs.tsx +214 -0
- package/src/components/pane-settings-dialog/tui.tsx +121 -0
- package/src/components/pane-settings-dialog/value.ts +68 -0
- package/src/components/pane-settings-dialog.tsx +248 -0
- package/src/components/pane-template-wizard.tsx +60 -0
- package/src/components/price-performance.tsx +85 -0
- package/src/components/price-selector-dialog.tsx +215 -0
- package/src/components/price-sparkline/bitmap.ts +150 -0
- package/src/components/price-sparkline/index.ts +73 -0
- package/src/components/price-sparkline/model.ts +150 -0
- package/src/components/price-sparkline/view.tsx +226 -0
- package/src/components/quote-flash.ts +168 -0
- package/src/components/reader/article-reader.tsx +468 -0
- package/src/components/reader/article-text.ts +527 -0
- package/src/components/reader/detail-reader.tsx +239 -0
- package/src/components/reader/reader-text.tsx +281 -0
- package/src/components/sign-in-code-panel.tsx +203 -0
- package/src/components/sign-in-gate.tsx +169 -0
- package/src/components/speedometer-gauge/desktop.tsx +142 -0
- package/src/components/speedometer-gauge/index.tsx +42 -0
- package/src/components/speedometer-gauge/model.ts +57 -0
- package/src/components/speedometer-gauge/terminal.tsx +283 -0
- package/src/components/table-view-shared.tsx +243 -0
- package/src/components/textarea-keys.ts +13 -0
- package/src/components/ticker/badge/format.ts +121 -0
- package/src/components/ticker/badge/index.tsx +144 -0
- package/src/components/ticker/badge/list.tsx +146 -0
- package/src/components/ticker/badge/text.tsx +157 -0
- package/src/components/ticker/list-table-view.tsx +418 -0
- package/src/components/toggle-list.tsx +194 -0
- package/src/components/ui/action-row.tsx +36 -0
- package/src/components/ui/action-scope.tsx +96 -0
- package/src/components/ui/audio-player.tsx +70 -0
- package/src/components/ui/button.tsx +189 -0
- package/src/components/ui/card.tsx +75 -0
- package/src/components/ui/checkbox.tsx +80 -0
- package/src/components/ui/choice-dialog.tsx +120 -0
- package/src/components/ui/column-grid.tsx +250 -0
- package/src/components/ui/confirm-dialog.tsx +175 -0
- package/src/components/ui/country-flag-art.tsx +629 -0
- package/src/components/ui/country-flag.tsx +147 -0
- package/src/components/ui/data-table/hooks.ts +46 -0
- package/src/components/ui/data-table/index.tsx +179 -0
- package/src/components/ui/data-table/opentui/index.tsx +794 -0
- package/src/components/ui/data-table/opentui/model.ts +256 -0
- package/src/components/ui/data-table/stable-columns.ts +34 -0
- package/src/components/ui/data-table/types.ts +189 -0
- package/src/components/ui/data-table/visible-range.ts +47 -0
- package/src/components/ui/detail-scroll-body.tsx +75 -0
- package/src/components/ui/dialog-actions.tsx +44 -0
- package/src/components/ui/disclosure-marker.tsx +38 -0
- package/src/components/ui/display.tsx +260 -0
- package/src/components/ui/external-link.tsx +181 -0
- package/src/components/ui/field-grid.tsx +473 -0
- package/src/components/ui/field-ring.ts +125 -0
- package/src/components/ui/fields.tsx +425 -0
- package/src/components/ui/figure.tsx +96 -0
- package/src/components/ui/fill.ts +8 -0
- package/src/components/ui/frame.tsx +149 -0
- package/src/components/ui/header-case.ts +30 -0
- package/src/components/ui/icon.tsx +199 -0
- package/src/components/ui/index.ts +84 -0
- package/src/components/ui/inline-quick-add.tsx +144 -0
- package/src/components/ui/list-row-lines.tsx +87 -0
- package/src/components/ui/list-view.tsx +399 -0
- package/src/components/ui/loading.tsx +17 -0
- package/src/components/ui/logo-mark.tsx +73 -0
- package/src/components/ui/menu.tsx +152 -0
- package/src/components/ui/message-composer.tsx +172 -0
- package/src/components/ui/multi-select/dialog.tsx +643 -0
- package/src/components/ui/multi-select/index.ts +190 -0
- package/src/components/ui/number-prompt-dialog.tsx +71 -0
- package/src/components/ui/number-step.ts +54 -0
- package/src/components/ui/page-stack-view.tsx +137 -0
- package/src/components/ui/popover.tsx +10 -0
- package/src/components/ui/prose.tsx +280 -0
- package/src/components/ui/query-bar-keys.tsx +194 -0
- package/src/components/ui/query-bar.tsx +553 -0
- package/src/components/ui/quote.ts +42 -0
- package/src/components/ui/range-track.tsx +66 -0
- package/src/components/ui/ratio-bar.tsx +84 -0
- package/src/components/ui/remote-image.tsx +37 -0
- package/src/components/ui/reveal-in-scroll-box.ts +52 -0
- package/src/components/ui/row-notes.ts +79 -0
- package/src/components/ui/row-value-cache.ts +41 -0
- package/src/components/ui/select-button.tsx +215 -0
- package/src/components/ui/select-field.tsx +54 -0
- package/src/components/ui/shortcut-hint.tsx +69 -0
- package/src/components/ui/split-bar.tsx +69 -0
- package/src/components/ui/stat-grid.tsx +198 -0
- package/src/components/ui/status.tsx +347 -0
- package/src/components/ui/table-layout.ts +256 -0
- package/src/components/ui/tabs.tsx +587 -0
- package/src/components/ui/text-prompt-dialog.tsx +135 -0
- package/src/components/ui/toggle.tsx +136 -0
- package/src/components/ui/windowed-list.tsx +27 -0
- package/src/components/use-double-click-activation.ts +40 -0
- package/src/components/use-external-link-footer.ts +82 -0
- package/src/components/use-pane-notice-footer.tsx +128 -0
- package/src/components/use-pinned-moment.ts +19 -0
- package/src/components/use-scrollbox-layout.ts +17 -0
- package/src/core/app-runtime.ts +134 -0
- package/src/core/app-service-ports.ts +54 -0
- package/src/core/app-services.ts +48 -0
- package/src/core/connection-health.ts +293 -0
- package/src/core/state/app/instrument.ts +99 -0
- package/src/core/state/app/layout-reducer.ts +405 -0
- package/src/core/state/app/layout.ts +613 -0
- package/src/core/state/app/state.ts +401 -0
- package/src/core/state/app/types.ts +201 -0
- package/src/core/state/session-persistence.ts +150 -0
- package/src/data/app-persistence.ts +25 -0
- package/src/data/cached-query.ts +120 -0
- package/src/data/config/chart-settings.ts +709 -0
- package/src/data/config/home.ts +123 -0
- package/src/data/config/layout.ts +317 -0
- package/src/data/config/store/fold-panes.ts +340 -0
- package/src/data/config/store/index.ts +63 -0
- package/src/data/config/store/migrations.ts +294 -0
- package/src/data/config/store/node.ts +178 -0
- package/src/data/config/store/normalize.ts +517 -0
- package/src/data/config/store/pane-state.ts +47 -0
- package/src/data/config/store/portfolio-as-of-column.ts +57 -0
- package/src/data/json-persistence.ts +85 -0
- package/src/data/json-storage.ts +57 -0
- package/src/data/json-ticker-repository.ts +58 -0
- package/src/data/memory-resource-store.ts +152 -0
- package/src/data/plugin-cache.ts +119 -0
- package/src/data/plugin-state-store.ts +150 -0
- package/src/data/resource-store.ts +434 -0
- package/src/data/response-sequence.ts +6 -0
- package/src/data/saved-copies.ts +123 -0
- package/src/data/session-store.ts +59 -0
- package/src/data/sqlite/database.ts +80 -0
- package/src/data/sqlite/json.ts +18 -0
- package/src/data/sqlite/retry.ts +90 -0
- package/src/data/ticker-repository.ts +53 -0
- package/src/data/ticker-store.ts +65 -0
- package/src/docs/content.ts +215 -0
- package/src/docs/load.ts +139 -0
- package/src/docs/requests.ts +39 -0
- package/src/docs/snapshot.chunk.ts +8 -0
- package/src/docs/snapshot.json +8172 -0
- package/src/docs/topics.ts +216 -0
- package/src/feedback/diagnostics.ts +152 -0
- package/src/feedback/redact.ts +54 -0
- package/src/feedback/screenshot.ts +45 -0
- package/src/feedback/types.ts +60 -0
- package/src/i18n/es.ts +1674 -0
- package/src/i18n/index.ts +159 -0
- package/src/i18n/ja.ts +1670 -0
- package/src/i18n/ko.ts +1668 -0
- package/src/i18n/languages.ts +101 -0
- package/src/i18n/react.ts +6 -0
- package/src/i18n/zh-cn.ts +1670 -0
- package/src/i18n/zh-tw.ts +1670 -0
- package/src/layout/desk-keys.ts +7 -0
- package/src/layout/desks.ts +334 -0
- package/src/layout/launch-layout.ts +147 -0
- package/src/layout/pane-follow.ts +47 -0
- package/src/layout/pane-layout-move.ts +264 -0
- package/src/layout/pane-manager/dock-tree.ts +302 -0
- package/src/layout/pane-manager/docking.ts +209 -0
- package/src/layout/pane-manager/floating-actions.ts +160 -0
- package/src/layout/pane-manager/floating.ts +124 -0
- package/src/layout/pane-manager/gridlock-inference.ts +126 -0
- package/src/layout/pane-manager/gridlock.ts +143 -0
- package/src/layout/pane-manager/hidden-panes.ts +160 -0
- package/src/layout/pane-manager/index.ts +71 -0
- package/src/layout/pane-manager/layout-state.ts +203 -0
- package/src/layout/pane-manager/queries.ts +82 -0
- package/src/layout/pane-manager/types.ts +24 -0
- package/src/layout/pane-state.ts +48 -0
- package/src/layout/selected-ticker.ts +74 -0
- package/src/layout/ticker-navigation.ts +128 -0
- package/src/layout-marketplace/api.ts +65 -0
- package/src/layout-marketplace/cloud.ts +183 -0
- package/src/layout-marketplace/gallery-desktop.tsx +476 -0
- package/src/layout-marketplace/gallery-terminal.tsx +371 -0
- package/src/layout-marketplace/gallery.tsx +776 -0
- package/src/layout-marketplace/geometry.ts +80 -0
- package/src/layout-marketplace/linked-sync.ts +109 -0
- package/src/layout-marketplace/linked.ts +140 -0
- package/src/layout-marketplace/mini-workspace.tsx +428 -0
- package/src/layout-marketplace/model.ts +270 -0
- package/src/layout-marketplace/pane-imagery.ts +87 -0
- package/src/layout-marketplace/pane.tsx +20 -0
- package/src/layout-marketplace/use-marketplace.ts +130 -0
- package/src/market-data/bars-per-year.ts +43 -0
- package/src/market-data/bond-funds.ts +85 -0
- package/src/market-data/commodity-names.ts +80 -0
- package/src/market-data/coordinator/auxiliary.ts +275 -0
- package/src/market-data/coordinator/chart.ts +164 -0
- package/src/market-data/coordinator/entries.ts +180 -0
- package/src/market-data/coordinator/events.ts +103 -0
- package/src/market-data/coordinator/financials.ts +260 -0
- package/src/market-data/coordinator/fx-legs.ts +71 -0
- package/src/market-data/coordinator/index.ts +854 -0
- package/src/market-data/coordinator/quotes.ts +485 -0
- package/src/market-data/depositary-pair.ts +251 -0
- package/src/market-data/frame-scheduler.ts +335 -0
- package/src/market-data/futures-board.ts +255 -0
- package/src/market-data/futures-contract.ts +486 -0
- package/src/market-data/fx-closes.ts +164 -0
- package/src/market-data/history-session.ts +97 -0
- package/src/market-data/hooks.tsx +630 -0
- package/src/market-data/market/bar-period.ts +107 -0
- package/src/market-data/market/change-basis.ts +289 -0
- package/src/market-data/market/dated-previous-close.ts +203 -0
- package/src/market-data/market/format.ts +688 -0
- package/src/market-data/market/freshness.ts +793 -0
- package/src/market-data/market/futures-week.ts +68 -0
- package/src/market-data/market/index-level.ts +51 -0
- package/src/market-data/market/period-return.ts +163 -0
- package/src/market-data/market/price-basis.ts +9 -0
- package/src/market-data/market/session-close-note.ts +58 -0
- package/src/market-data/market/status.ts +588 -0
- package/src/market-data/market/trading-sessions.ts +149 -0
- package/src/market-data/market/year-to-date.ts +41 -0
- package/src/market-data/model-dividend-yield.ts +117 -0
- package/src/market-data/options-alternatives.ts +129 -0
- package/src/market-data/performance.ts +125 -0
- package/src/market-data/perpetual-premium.ts +32 -0
- package/src/market-data/portfolio-financials.ts +37 -0
- package/src/market-data/published-apac-sessions.ts +99 -0
- package/src/market-data/published-cn-sessions.ts +25 -0
- package/src/market-data/published-futures-sessions.ts +69 -0
- package/src/market-data/published-jpx-sessions.ts +22 -0
- package/src/market-data/published-nse-sessions.ts +20 -0
- package/src/market-data/published-us-sessions.ts +87 -0
- package/src/market-data/query-store.ts +95 -0
- package/src/market-data/quote-subscription-target.ts +79 -0
- package/src/market-data/quotes/clock.ts +56 -0
- package/src/market-data/quotes/contributions.ts +336 -0
- package/src/market-data/quotes/day-range.ts +106 -0
- package/src/market-data/quotes/delisting.ts +34 -0
- package/src/market-data/quotes/freshness.ts +174 -0
- package/src/market-data/quotes/intraday-bar.ts +37 -0
- package/src/market-data/quotes/live-valuation.ts +235 -0
- package/src/market-data/quotes/metadata.ts +66 -0
- package/src/market-data/quotes/regular-session-valuation.ts +198 -0
- package/src/market-data/quotes/resolution.ts +653 -0
- package/src/market-data/quotes/screener-live-quotes.ts +283 -0
- package/src/market-data/quotes/time.ts +83 -0
- package/src/market-data/realized-volatility.ts +301 -0
- package/src/market-data/request-types.ts +127 -0
- package/src/market-data/result-types.ts +53 -0
- package/src/market-data/selectors.ts +131 -0
- package/src/market-data/snapshot-provider.ts +299 -0
- package/src/market-data/tax-equivalent.ts +352 -0
- package/src/market-data/ticker-price-returns.ts +20 -0
- package/src/market-data/trace.ts +7 -0
- package/src/news/aggregator.ts +585 -0
- package/src/news/hooks.ts +66 -0
- package/src/news/news-model.ts +246 -0
- package/src/news/source-label.ts +22 -0
- package/src/news/ticker-symbols.ts +21 -0
- package/src/news/types.ts +99 -0
- package/src/notifications/app-badge.ts +30 -0
- package/src/notifications/app-notifier.ts +287 -0
- package/src/notifications/notification-log.ts +186 -0
- package/src/pane-settings.ts +89 -0
- package/src/plugins/absorbed.ts +33 -0
- package/src/plugins/auto-update-node.ts +115 -0
- package/src/plugins/auto-update.ts +281 -0
- package/src/plugins/builtin/account-management/calendar-tab.tsx +196 -0
- package/src/plugins/builtin/account-management/footer.ts +37 -0
- package/src/plugins/builtin/account-management/form-components.tsx +199 -0
- package/src/plugins/builtin/account-management/index.tsx +28 -0
- package/src/plugins/builtin/account-management/keyboard.ts +102 -0
- package/src/plugins/builtin/account-management/model.ts +358 -0
- package/src/plugins/builtin/account-management/navigation.ts +9 -0
- package/src/plugins/builtin/account-management/pane.tsx +1100 -0
- package/src/plugins/builtin/account-management/password-dialog.tsx +127 -0
- package/src/plugins/builtin/account-management/trial-cancel.ts +40 -0
- package/src/plugins/builtin/alerts/alert-engine.ts +119 -0
- package/src/plugins/builtin/alerts/calendar-events.ts +429 -0
- package/src/plugins/builtin/alerts/catalysts.ts +77 -0
- package/src/plugins/builtin/alerts/cli.ts +875 -0
- package/src/plugins/builtin/alerts/command.ts +88 -0
- package/src/plugins/builtin/alerts/constants.ts +12 -0
- package/src/plugins/builtin/alerts/event-rows.ts +20 -0
- package/src/plugins/builtin/alerts/events-pane.tsx +240 -0
- package/src/plugins/builtin/alerts/events.ts +260 -0
- package/src/plugins/builtin/alerts/fired-log.ts +119 -0
- package/src/plugins/builtin/alerts/focus.ts +27 -0
- package/src/plugins/builtin/alerts/format.ts +76 -0
- package/src/plugins/builtin/alerts/headless.ts +248 -0
- package/src/plugins/builtin/alerts/history-pane.tsx +161 -0
- package/src/plugins/builtin/alerts/history-rows.ts +92 -0
- package/src/plugins/builtin/alerts/history.ts +91 -0
- package/src/plugins/builtin/alerts/index.tsx +457 -0
- package/src/plugins/builtin/alerts/iv-level.ts +365 -0
- package/src/plugins/builtin/alerts/levels.ts +60 -0
- package/src/plugins/builtin/alerts/live.ts +136 -0
- package/src/plugins/builtin/alerts/metric-command.ts +61 -0
- package/src/plugins/builtin/alerts/metric-data.ts +70 -0
- package/src/plugins/builtin/alerts/metric-model.ts +175 -0
- package/src/plugins/builtin/alerts/metric-parity-fixture.json +725 -0
- package/src/plugins/builtin/alerts/pane.tsx +446 -0
- package/src/plugins/builtin/alerts/price.ts +35 -0
- package/src/plugins/builtin/alerts/quotes.ts +92 -0
- package/src/plugins/builtin/alerts/research-builder.ts +160 -0
- package/src/plugins/builtin/alerts/research-rules.ts +316 -0
- package/src/plugins/builtin/alerts/scheduled-check.ts +296 -0
- package/src/plugins/builtin/alerts/scheduled-sources.ts +48 -0
- package/src/plugins/builtin/alerts/scheduled.ts +413 -0
- package/src/plugins/builtin/alerts/storage.ts +62 -0
- package/src/plugins/builtin/alerts/targets.ts +101 -0
- package/src/plugins/builtin/alerts/types.ts +27 -0
- package/src/plugins/builtin/analytics/account-returns.ts +109 -0
- package/src/plugins/builtin/analytics/broker-performance.ts +131 -0
- package/src/plugins/builtin/analytics/display.ts +15 -0
- package/src/plugins/builtin/analytics/index.tsx +501 -0
- package/src/plugins/builtin/analytics/metrics.ts +218 -0
- package/src/plugins/builtin/analytics/pane-model.ts +487 -0
- package/src/plugins/builtin/analytics/portfolio-selection.ts +29 -0
- package/src/plugins/builtin/analytics/risk-book.ts +215 -0
- package/src/plugins/builtin/analytics/risk-client.ts +700 -0
- package/src/plugins/builtin/analytics/risk-evidence.ts +485 -0
- package/src/plugins/builtin/analytics/risk-fx.ts +163 -0
- package/src/plugins/builtin/analytics/risk-headless.ts +386 -0
- package/src/plugins/builtin/analytics/risk-math.ts +489 -0
- package/src/plugins/builtin/analytics/risk-model.ts +1242 -0
- package/src/plugins/builtin/analytics/risk-options.ts +265 -0
- package/src/plugins/builtin/analytics/risk-pane.tsx +833 -0
- package/src/plugins/builtin/analytics/risk-test-data.ts +262 -0
- package/src/plugins/builtin/analytics/sector-model.ts +187 -0
- package/src/plugins/builtin/analytics/sharpe-cadence.ts +136 -0
- package/src/plugins/builtin/analytics/view.tsx +186 -0
- package/src/plugins/builtin/attention/client.ts +80 -0
- package/src/plugins/builtin/attention/evidence.ts +30 -0
- package/src/plugins/builtin/attention/headless.ts +44 -0
- package/src/plugins/builtin/attention/index.tsx +20 -0
- package/src/plugins/builtin/attention/model.ts +81 -0
- package/src/plugins/builtin/attention/pane.tsx +219 -0
- package/src/plugins/builtin/attention/series.ts +26 -0
- package/src/plugins/builtin/attention/trending.tsx +61 -0
- package/src/plugins/builtin/awards/alerts.ts +32 -0
- package/src/plugins/builtin/awards/client.ts +82 -0
- package/src/plugins/builtin/awards/detail.tsx +107 -0
- package/src/plugins/builtin/awards/evidence.ts +36 -0
- package/src/plugins/builtin/awards/headless.ts +135 -0
- package/src/plugins/builtin/awards/index.tsx +22 -0
- package/src/plugins/builtin/awards/model.ts +100 -0
- package/src/plugins/builtin/awards/pane.tsx +286 -0
- package/src/plugins/builtin/awards/series.ts +29 -0
- package/src/plugins/builtin/backtest/client.ts +92 -0
- package/src/plugins/builtin/backtest/engine.ts +185 -0
- package/src/plugins/builtin/backtest/export.ts +27 -0
- package/src/plugins/builtin/backtest/format.ts +52 -0
- package/src/plugins/builtin/backtest/headless.ts +81 -0
- package/src/plugins/builtin/backtest/index.tsx +33 -0
- package/src/plugins/builtin/backtest/pane.tsx +301 -0
- package/src/plugins/builtin/backtest/presets.ts +60 -0
- package/src/plugins/builtin/backtest/report.ts +160 -0
- package/src/plugins/builtin/backtest/rules.ts +209 -0
- package/src/plugins/builtin/backtest/window.ts +125 -0
- package/src/plugins/builtin/bond-calculator/client.ts +28 -0
- package/src/plugins/builtin/bond-calculator/headless.ts +56 -0
- package/src/plugins/builtin/bond-calculator/index.tsx +10 -0
- package/src/plugins/builtin/bond-calculator/math.ts +164 -0
- package/src/plugins/builtin/bond-calculator/model.ts +64 -0
- package/src/plugins/builtin/bond-calculator/pane.tsx +160 -0
- package/src/plugins/builtin/broker-manager/add-flow.tsx +662 -0
- package/src/plugins/builtin/broker-manager/add-request.ts +34 -0
- package/src/plugins/builtin/broker-manager/detail.tsx +380 -0
- package/src/plugins/builtin/broker-manager/footer.ts +89 -0
- package/src/plugins/builtin/broker-manager/index.tsx +407 -0
- package/src/plugins/builtin/broker-manager/keyboard.ts +59 -0
- package/src/plugins/builtin/broker-manager/model.ts +181 -0
- package/src/plugins/builtin/broker-manager/pane-actions.tsx +364 -0
- package/src/plugins/builtin/broker-manager/sign-in-end.ts +82 -0
- package/src/plugins/builtin/broker-manager/table.ts +86 -0
- package/src/plugins/builtin/broker-trading/account-picker.tsx +92 -0
- package/src/plugins/builtin/broker-trading/chart-levels.ts +123 -0
- package/src/plugins/builtin/broker-trading/command.ts +103 -0
- package/src/plugins/builtin/broker-trading/controller.ts +730 -0
- package/src/plugins/builtin/broker-trading/dock.tsx +202 -0
- package/src/plugins/builtin/broker-trading/headless.ts +77 -0
- package/src/plugins/builtin/broker-trading/index.tsx +95 -0
- package/src/plugins/builtin/broker-trading/linked-orders.ts +148 -0
- package/src/plugins/builtin/broker-trading/order-feed.ts +456 -0
- package/src/plugins/builtin/broker-trading/orders-data.ts +133 -0
- package/src/plugins/builtin/broker-trading/orders.tsx +515 -0
- package/src/plugins/builtin/broker-trading/overview-orders.tsx +127 -0
- package/src/plugins/builtin/broker-trading/pane-model.ts +235 -0
- package/src/plugins/builtin/broker-trading/pane.tsx +594 -0
- package/src/plugins/builtin/broker-trading/strategy.ts +153 -0
- package/src/plugins/builtin/broker-trading/ticket-parts.tsx +146 -0
- package/src/plugins/builtin/broker-trading/ticket.tsx +659 -0
- package/src/plugins/builtin/buildout/cells.tsx +198 -0
- package/src/plugins/builtin/buildout/data-runtime.ts +243 -0
- package/src/plugins/builtin/buildout/detail/company.tsx +279 -0
- package/src/plugins/builtin/buildout/detail/index.tsx +82 -0
- package/src/plugins/builtin/buildout/detail/intel.tsx +56 -0
- package/src/plugins/builtin/buildout/detail/satellite-images.tsx +80 -0
- package/src/plugins/builtin/buildout/detail/site.tsx +115 -0
- package/src/plugins/builtin/buildout/detail/ui.tsx +235 -0
- package/src/plugins/builtin/buildout/detail/values.ts +67 -0
- package/src/plugins/builtin/buildout/format.ts +186 -0
- package/src/plugins/builtin/buildout/index.tsx +24 -0
- package/src/plugins/builtin/buildout/model/index.ts +144 -0
- package/src/plugins/builtin/buildout/model/normalizers.ts +396 -0
- package/src/plugins/builtin/buildout/model/types.ts +321 -0
- package/src/plugins/builtin/buildout/pane/index.tsx +467 -0
- package/src/plugins/builtin/buildout/pane/status.tsx +87 -0
- package/src/plugins/builtin/buildout/table-model.ts +431 -0
- package/src/plugins/builtin/builtin-plugin-meta.ts +161 -0
- package/src/plugins/builtin/catalysts/client.ts +28 -0
- package/src/plugins/builtin/catalysts/detail.tsx +89 -0
- package/src/plugins/builtin/catalysts/evidence.ts +47 -0
- package/src/plugins/builtin/catalysts/headless.ts +59 -0
- package/src/plugins/builtin/catalysts/history.ts +26 -0
- package/src/plugins/builtin/catalysts/index.tsx +31 -0
- package/src/plugins/builtin/catalysts/model.ts +280 -0
- package/src/plugins/builtin/catalysts/pane.tsx +163 -0
- package/src/plugins/builtin/cds/client.ts +169 -0
- package/src/plugins/builtin/cds/headless.ts +367 -0
- package/src/plugins/builtin/cds/index.tsx +39 -0
- package/src/plugins/builtin/cds/model.ts +815 -0
- package/src/plugins/builtin/cds/pane.tsx +547 -0
- package/src/plugins/builtin/cds/series.ts +19 -0
- package/src/plugins/builtin/central-bank-rates/client.ts +66 -0
- package/src/plugins/builtin/central-bank-rates/headless.ts +81 -0
- package/src/plugins/builtin/central-bank-rates/index.tsx +20 -0
- package/src/plugins/builtin/central-bank-rates/model.ts +151 -0
- package/src/plugins/builtin/central-bank-rates/pane.tsx +73 -0
- package/src/plugins/builtin/central-bank-rates/series.ts +36 -0
- package/src/plugins/builtin/changelog/index.tsx +310 -0
- package/src/plugins/builtin/changelog/model.ts +88 -0
- package/src/plugins/builtin/chart-composer/catalog-inventory.ts +365 -0
- package/src/plugins/builtin/chart-composer/chart-spec-edit.ts +580 -0
- package/src/plugins/builtin/chart-composer/chart-spec.ts +159 -0
- package/src/plugins/builtin/chart-composer/cli-options.ts +127 -0
- package/src/plugins/builtin/chart-composer/data-catalog-pane.tsx +316 -0
- package/src/plugins/builtin/chart-composer/editor/controller.ts +657 -0
- package/src/plugins/builtin/chart-composer/editor/desktop-view.tsx +138 -0
- package/src/plugins/builtin/chart-composer/editor/model.ts +297 -0
- package/src/plugins/builtin/chart-composer/editor/opentui-view.tsx +111 -0
- package/src/plugins/builtin/chart-composer/editor.tsx +252 -0
- package/src/plugins/builtin/chart-composer/field-series.ts +40 -0
- package/src/plugins/builtin/chart-composer/follow-binding.ts +78 -0
- package/src/plugins/builtin/chart-composer/formula.ts +286 -0
- package/src/plugins/builtin/chart-composer/headless-schema.ts +250 -0
- package/src/plugins/builtin/chart-composer/headless.ts +802 -0
- package/src/plugins/builtin/chart-composer/index.tsx +544 -0
- package/src/plugins/builtin/chart-composer/leverage-overlay.ts +142 -0
- package/src/plugins/builtin/chart-composer/option-range.ts +39 -0
- package/src/plugins/builtin/chart-composer/pane.tsx +1448 -0
- package/src/plugins/builtin/chart-composer/presets.ts +320 -0
- package/src/plugins/builtin/chart-composer/price-levels.ts +80 -0
- package/src/plugins/builtin/chart-composer/quick-add.tsx +488 -0
- package/src/plugins/builtin/chart-composer/semantic.ts +113 -0
- package/src/plugins/builtin/chart-composer/series-catalog.ts +473 -0
- package/src/plugins/builtin/chart-composer/series-expression.ts +274 -0
- package/src/plugins/builtin/chart-composer/series-listings.ts +178 -0
- package/src/plugins/builtin/chart-composer/session-history.ts +382 -0
- package/src/plugins/builtin/chart-composer/session-range.ts +89 -0
- package/src/plugins/builtin/chart-composer/settings.ts +500 -0
- package/src/plugins/builtin/chart-composer/shortcuts.ts +27 -0
- package/src/plugins/builtin/chart-composer/studies.ts +242 -0
- package/src/plugins/builtin/chart-composer/use-series-catalog.ts +384 -0
- package/src/plugins/builtin/chart-composer/user-series.ts +84 -0
- package/src/plugins/builtin/chart-composer/viewport-labels.ts +93 -0
- package/src/plugins/builtin/chat/attachments/desktop.tsx +614 -0
- package/src/plugins/builtin/chat/attachments/files.ts +45 -0
- package/src/plugins/builtin/chat/attachments/model.ts +168 -0
- package/src/plugins/builtin/chat/attachments/terminal.tsx +72 -0
- package/src/plugins/builtin/chat/attachments/transfer.ts +165 -0
- package/src/plugins/builtin/chat/channel-labels.ts +67 -0
- package/src/plugins/builtin/chat/channels.ts +170 -0
- package/src/plugins/builtin/chat/command-bar.ts +136 -0
- package/src/plugins/builtin/chat/composer-commands.ts +54 -0
- package/src/plugins/builtin/chat/content/channel-navigation.ts +285 -0
- package/src/plugins/builtin/chat/content/command-suggestions.ts +92 -0
- package/src/plugins/builtin/chat/content/composer-cursor.ts +29 -0
- package/src/plugins/builtin/chat/content/composer-runtime.ts +471 -0
- package/src/plugins/builtin/chat/content/composer.tsx +310 -0
- package/src/plugins/builtin/chat/content/footer.tsx +321 -0
- package/src/plugins/builtin/chat/content/handle-prompt.tsx +326 -0
- package/src/plugins/builtin/chat/content/index.tsx +1289 -0
- package/src/plugins/builtin/chat/content/layout-metrics.ts +98 -0
- package/src/plugins/builtin/chat/content/mentions.ts +118 -0
- package/src/plugins/builtin/chat/content/new-dm-dialog.tsx +431 -0
- package/src/plugins/builtin/chat/content/new-messages.tsx +89 -0
- package/src/plugins/builtin/chat/content/open-targets.ts +80 -0
- package/src/plugins/builtin/chat/content/row-activity.ts +132 -0
- package/src/plugins/builtin/chat/content/scroll.ts +396 -0
- package/src/plugins/builtin/chat/content/selection-runtime.ts +66 -0
- package/src/plugins/builtin/chat/content/shortcuts.ts +344 -0
- package/src/plugins/builtin/chat/content/snapshot.ts +202 -0
- package/src/plugins/builtin/chat/content/transcript.tsx +296 -0
- package/src/plugins/builtin/chat/content/types.ts +35 -0
- package/src/plugins/builtin/chat/content/user-map.ts +23 -0
- package/src/plugins/builtin/chat/content/whole-message-copy.ts +112 -0
- package/src/plugins/builtin/chat/controller/attachments.ts +213 -0
- package/src/plugins/builtin/chat/controller/channel-actions.ts +97 -0
- package/src/plugins/builtin/chat/controller/channels.ts +180 -0
- package/src/plugins/builtin/chat/controller/connections.ts +110 -0
- package/src/plugins/builtin/chat/controller/draft-sync.ts +41 -0
- package/src/plugins/builtin/chat/controller/fetch.ts +85 -0
- package/src/plugins/builtin/chat/controller/index.ts +980 -0
- package/src/plugins/builtin/chat/controller/lifecycle.ts +153 -0
- package/src/plugins/builtin/chat/controller/mention-candidates.ts +104 -0
- package/src/plugins/builtin/chat/controller/message-loading.ts +104 -0
- package/src/plugins/builtin/chat/controller/messages.ts +243 -0
- package/src/plugins/builtin/chat/controller/notifications.ts +153 -0
- package/src/plugins/builtin/chat/controller/persistence.ts +170 -0
- package/src/plugins/builtin/chat/controller/realtime.ts +169 -0
- package/src/plugins/builtin/chat/controller/send.ts +250 -0
- package/src/plugins/builtin/chat/controller/session-runtime.ts +245 -0
- package/src/plugins/builtin/chat/controller/session.ts +41 -0
- package/src/plugins/builtin/chat/controller/state.ts +221 -0
- package/src/plugins/builtin/chat/controller/storage.ts +134 -0
- package/src/plugins/builtin/chat/controller/unread-people.ts +240 -0
- package/src/plugins/builtin/chat/controller/utils.ts +65 -0
- package/src/plugins/builtin/chat/controller/view.ts +103 -0
- package/src/plugins/builtin/chat/conversation-recency.ts +73 -0
- package/src/plugins/builtin/chat/conversations.ts +263 -0
- package/src/plugins/builtin/chat/direct-messages.ts +200 -0
- package/src/plugins/builtin/chat/discord-command.ts +91 -0
- package/src/plugins/builtin/chat/edit-window.ts +30 -0
- package/src/plugins/builtin/chat/ghost-user.ts +42 -0
- package/src/plugins/builtin/chat/handle-prompt.ts +128 -0
- package/src/plugins/builtin/chat/index.tsx +229 -0
- package/src/plugins/builtin/chat/layout.ts +570 -0
- package/src/plugins/builtin/chat/markdown.ts +94 -0
- package/src/plugins/builtin/chat/message/desktop.tsx +276 -0
- package/src/plugins/builtin/chat/message/header.tsx +209 -0
- package/src/plugins/builtin/chat/message/inline-tokens.tsx +315 -0
- package/src/plugins/builtin/chat/message/pane-chip.tsx +349 -0
- package/src/plugins/builtin/chat/message/pending-send.ts +35 -0
- package/src/plugins/builtin/chat/message/person-icons.tsx +53 -0
- package/src/plugins/builtin/chat/message/profile-popover.tsx +379 -0
- package/src/plugins/builtin/chat/message/reactions.tsx +210 -0
- package/src/plugins/builtin/chat/message/render-state.ts +151 -0
- package/src/plugins/builtin/chat/message/terminal.tsx +234 -0
- package/src/plugins/builtin/chat/message/types.ts +52 -0
- package/src/plugins/builtin/chat/pane-links/commands.ts +265 -0
- package/src/plugins/builtin/chat/pane-links/composer.ts +87 -0
- package/src/plugins/builtin/chat/pane-links/model.ts +158 -0
- package/src/plugins/builtin/chat/pane-links/open.ts +36 -0
- package/src/plugins/builtin/chat/pane-links/previews.ts +119 -0
- package/src/plugins/builtin/chat/pane-requests.ts +60 -0
- package/src/plugins/builtin/chat/pane-state.ts +115 -0
- package/src/plugins/builtin/chat/pane.tsx +145 -0
- package/src/plugins/builtin/chat/people.ts +202 -0
- package/src/plugins/builtin/chat/profile-popover.ts +207 -0
- package/src/plugins/builtin/chat/reactions.ts +197 -0
- package/src/plugins/builtin/chat/share/flow.tsx +32 -0
- package/src/plugins/builtin/chat/sidebar-rows.ts +109 -0
- package/src/plugins/builtin/chat/sidebar-store.ts +100 -0
- package/src/plugins/builtin/chat/sidebar.tsx +345 -0
- package/src/plugins/builtin/chat/status-widget.tsx +114 -0
- package/src/plugins/builtin/chat/unread-badge.ts +96 -0
- package/src/plugins/builtin/chat/unread-inbox-pane.tsx +281 -0
- package/src/plugins/builtin/chat/unread-inbox.ts +113 -0
- package/src/plugins/builtin/clinical-trials/client.ts +265 -0
- package/src/plugins/builtin/clinical-trials/index.tsx +83 -0
- package/src/plugins/builtin/clinical-trials/model.ts +278 -0
- package/src/plugins/builtin/clinical-trials/pane.tsx +430 -0
- package/src/plugins/builtin/clinical-trials/sponsor-tickers.ts +156 -0
- package/src/plugins/builtin/clinical-trials/ticker-sponsor.ts +17 -0
- package/src/plugins/builtin/clinical-trials/types.ts +2 -0
- package/src/plugins/builtin/cloud/askg/attached-pane.tsx +69 -0
- package/src/plugins/builtin/cloud/askg/controller.ts +714 -0
- package/src/plugins/builtin/cloud/askg/conversation-store.ts +243 -0
- package/src/plugins/builtin/cloud/askg/executor.ts +476 -0
- package/src/plugins/builtin/cloud/askg/host.ts +94 -0
- package/src/plugins/builtin/cloud/askg/json.ts +31 -0
- package/src/plugins/builtin/cloud/askg/lock-note.ts +16 -0
- package/src/plugins/builtin/cloud/askg/manifest.ts +368 -0
- package/src/plugins/builtin/cloud/askg/model.ts +854 -0
- package/src/plugins/builtin/cloud/askg/notes.ts +100 -0
- package/src/plugins/builtin/cloud/askg/pane-attachment.ts +93 -0
- package/src/plugins/builtin/cloud/askg/pane.tsx +1749 -0
- package/src/plugins/builtin/cloud/askg/pending-question.ts +27 -0
- package/src/plugins/builtin/cloud/askg/protocol.ts +377 -0
- package/src/plugins/builtin/cloud/askg/result-budget.ts +156 -0
- package/src/plugins/builtin/cloud/askg/sidebar.tsx +184 -0
- package/src/plugins/builtin/cloud/askg/tool-display.ts +440 -0
- package/src/plugins/builtin/cloud/askg/tool-timeline.tsx +404 -0
- package/src/plugins/builtin/cloud/askg/undo.ts +254 -0
- package/src/plugins/builtin/cloud/askg/user-data.ts +89 -0
- package/src/plugins/builtin/cloud/auth-actions.tsx +158 -0
- package/src/plugins/builtin/cloud/auth-commands.ts +103 -0
- package/src/plugins/builtin/cloud/browser.tsx +3 -0
- package/src/plugins/builtin/cloud/company-picker.tsx +645 -0
- package/src/plugins/builtin/cloud/index.tsx +4 -0
- package/src/plugins/builtin/cloud/mcp-connect/command.ts +24 -0
- package/src/plugins/builtin/cloud/mcp-connect/dialog.tsx +366 -0
- package/src/plugins/builtin/cloud/mcp-connect/model.ts +135 -0
- package/src/plugins/builtin/cloud/mcp-connect/sections.ts +62 -0
- package/src/plugins/builtin/cloud/plugin.tsx +203 -0
- package/src/plugins/builtin/cloud/team/acm-tab.tsx +127 -0
- package/src/plugins/builtin/cloud/team/capability.ts +71 -0
- package/src/plugins/builtin/cloud/team/command.ts +313 -0
- package/src/plugins/builtin/cloud/team/module.tsx +81 -0
- package/src/plugins/builtin/cloud/team/pane-model.ts +185 -0
- package/src/plugins/builtin/cloud/team/pane-sections.tsx +576 -0
- package/src/plugins/builtin/cloud/team/pane-ui.tsx +362 -0
- package/src/plugins/builtin/cloud/team/pane.tsx +940 -0
- package/src/plugins/builtin/cloud/team/status-widget.tsx +78 -0
- package/src/plugins/builtin/cloud/team/team-state-host.ts +70 -0
- package/src/plugins/builtin/cloud/team/views.ts +192 -0
- package/src/plugins/builtin/cloud/terminal-relay/acm-tab.tsx +89 -0
- package/src/plugins/builtin/cloud/terminal-relay/client.ts +97 -0
- package/src/plugins/builtin/cloud/terminal-relay/connect-section.tsx +57 -0
- package/src/plugins/builtin/cloud/terminal-relay/engine.ts +739 -0
- package/src/plugins/builtin/cloud/terminal-relay/grants.ts +137 -0
- package/src/plugins/builtin/cloud/terminal-relay/host.tsx +81 -0
- package/src/plugins/builtin/cloud/terminal-relay/indicator.tsx +82 -0
- package/src/plugins/builtin/cloud/terminal-relay/manifest.ts +250 -0
- package/src/plugins/builtin/cloud/terminal-relay/policy.ts +162 -0
- package/src/plugins/builtin/cloud/terminal-relay/prompts.tsx +193 -0
- package/src/plugins/builtin/cloud/terminal-relay/redact.ts +73 -0
- package/src/plugins/builtin/cloud/terminal-relay/summary.ts +62 -0
- package/src/plugins/builtin/cloud/thesis/board-pane.tsx +484 -0
- package/src/plugins/builtin/cloud/thesis/detail.tsx +539 -0
- package/src/plugins/builtin/cloud/thesis/exposure.ts +145 -0
- package/src/plugins/builtin/cloud/thesis/flows.ts +553 -0
- package/src/plugins/builtin/cloud/thesis/model.ts +399 -0
- package/src/plugins/builtin/cloud/thesis/module.tsx +65 -0
- package/src/plugins/builtin/cloud/thesis/pane-request.ts +30 -0
- package/src/plugins/builtin/cloud/thesis/prompts.tsx +104 -0
- package/src/plugins/builtin/cloud/thesis/store.ts +302 -0
- package/src/plugins/builtin/cloud/thesis/ticker-tab.tsx +140 -0
- package/src/plugins/builtin/cloud/trial-offer-status-widget.tsx +203 -0
- package/src/plugins/builtin/cloud/upgrade-command.ts +35 -0
- package/src/plugins/builtin/cloud/upgrade-status-widget.tsx +45 -0
- package/src/plugins/builtin/cloud/verification-status-widget.tsx +75 -0
- package/src/plugins/builtin/cloud-tweets/footer.ts +40 -0
- package/src/plugins/builtin/cloud-tweets/index.ts +6 -0
- package/src/plugins/builtin/cloud-tweets/keyboard.ts +34 -0
- package/src/plugins/builtin/cloud-tweets/model.ts +280 -0
- package/src/plugins/builtin/cloud-tweets/pane.tsx +327 -0
- package/src/plugins/builtin/cloud-tweets/registration.ts +130 -0
- package/src/plugins/builtin/cloud-tweets/search-bar.tsx +38 -0
- package/src/plugins/builtin/cloud-tweets/table.tsx +551 -0
- package/src/plugins/builtin/cloud-tweets/tweet-text.ts +18 -0
- package/src/plugins/builtin/comment-letters/client.ts +340 -0
- package/src/plugins/builtin/comment-letters/index.tsx +75 -0
- package/src/plugins/builtin/comment-letters/pane.tsx +314 -0
- package/src/plugins/builtin/comment-letters/types.ts +43 -0
- package/src/plugins/builtin/commodities-energy/index.tsx +228 -0
- package/src/plugins/builtin/commodities-energy/view-state.ts +13 -0
- package/src/plugins/builtin/commodity-balances/client.ts +68 -0
- package/src/plugins/builtin/commodity-balances/headless.ts +107 -0
- package/src/plugins/builtin/commodity-balances/index.tsx +47 -0
- package/src/plugins/builtin/commodity-balances/model.ts +108 -0
- package/src/plugins/builtin/commodity-balances/pane.tsx +267 -0
- package/src/plugins/builtin/company-attention/app-rank.tsx +80 -0
- package/src/plugins/builtin/company-attention/building-model.ts +222 -0
- package/src/plugins/builtin/company-attention/building.tsx +172 -0
- package/src/plugins/builtin/company-attention/client.ts +185 -0
- package/src/plugins/builtin/company-attention/evidence.ts +58 -0
- package/src/plugins/builtin/company-attention/headless.ts +172 -0
- package/src/plugins/builtin/company-attention/index.tsx +35 -0
- package/src/plugins/builtin/company-attention/model.ts +270 -0
- package/src/plugins/builtin/company-attention/moves-model.ts +253 -0
- package/src/plugins/builtin/company-attention/moves.tsx +159 -0
- package/src/plugins/builtin/company-attention/pane.tsx +246 -0
- package/src/plugins/builtin/company-attention/series.ts +52 -0
- package/src/plugins/builtin/company-attention/signals-model.ts +229 -0
- package/src/plugins/builtin/company-attention/signals.tsx +160 -0
- package/src/plugins/builtin/company-kpis/client.ts +108 -0
- package/src/plugins/builtin/company-kpis/headless.ts +122 -0
- package/src/plugins/builtin/company-kpis/index.tsx +26 -0
- package/src/plugins/builtin/company-kpis/model.ts +229 -0
- package/src/plugins/builtin/company-kpis/pane.tsx +256 -0
- package/src/plugins/builtin/company-kpis/related.ts +11 -0
- package/src/plugins/builtin/company-kpis/screenshot-evidence.ts +51 -0
- package/src/plugins/builtin/composite-plugins.ts +284 -0
- package/src/plugins/builtin/congress-trades/aggregates.ts +69 -0
- package/src/plugins/builtin/congress-trades/client.ts +13 -0
- package/src/plugins/builtin/congress-trades/detail.tsx +340 -0
- package/src/plugins/builtin/congress-trades/filters.tsx +36 -0
- package/src/plugins/builtin/congress-trades/footer.ts +86 -0
- package/src/plugins/builtin/congress-trades/headless.ts +212 -0
- package/src/plugins/builtin/congress-trades/index.tsx +26 -0
- package/src/plugins/builtin/congress-trades/keyboard.ts +45 -0
- package/src/plugins/builtin/congress-trades/model.ts +399 -0
- package/src/plugins/builtin/congress-trades/pane.tsx +519 -0
- package/src/plugins/builtin/congress-trades/table.tsx +102 -0
- package/src/plugins/builtin/connections/index.ts +58 -0
- package/src/plugins/builtin/connections/pane.tsx +243 -0
- package/src/plugins/builtin/correlation/compute.ts +139 -0
- package/src/plugins/builtin/correlation/geo.ts +34 -0
- package/src/plugins/builtin/correlation/headless-schema.ts +73 -0
- package/src/plugins/builtin/correlation/headless.ts +150 -0
- package/src/plugins/builtin/correlation/history.ts +21 -0
- package/src/plugins/builtin/correlation/index.tsx +490 -0
- package/src/plugins/builtin/correlation/matrix/model.ts +199 -0
- package/src/plugins/builtin/correlation/matrix/pair-chart.tsx +48 -0
- package/src/plugins/builtin/correlation/matrix/selection.ts +79 -0
- package/src/plugins/builtin/correlation/matrix/symbol-cell.tsx +57 -0
- package/src/plugins/builtin/correlation/relationship/history.ts +46 -0
- package/src/plugins/builtin/correlation/relationship/model.ts +267 -0
- package/src/plugins/builtin/correlation/relationship/pane.tsx +354 -0
- package/src/plugins/builtin/correlation/relationship/view-model.ts +123 -0
- package/src/plugins/builtin/correlation/settings.ts +95 -0
- package/src/plugins/builtin/cot/client.ts +107 -0
- package/src/plugins/builtin/cot/headless.ts +91 -0
- package/src/plugins/builtin/cot/index.tsx +28 -0
- package/src/plugins/builtin/cot/model.ts +264 -0
- package/src/plugins/builtin/cot/pane.tsx +192 -0
- package/src/plugins/builtin/cot/series.ts +27 -0
- package/src/plugins/builtin/cpi/client.ts +66 -0
- package/src/plugins/builtin/cpi/headless.ts +86 -0
- package/src/plugins/builtin/cpi/index.tsx +31 -0
- package/src/plugins/builtin/cpi/model.ts +198 -0
- package/src/plugins/builtin/cpi/pane.tsx +160 -0
- package/src/plugins/builtin/credit-boards/cdx-pane.tsx +178 -0
- package/src/plugins/builtin/credit-boards/client.ts +119 -0
- package/src/plugins/builtin/credit-boards/headless.ts +218 -0
- package/src/plugins/builtin/credit-boards/index.tsx +54 -0
- package/src/plugins/builtin/credit-boards/model.ts +323 -0
- package/src/plugins/builtin/credit-boards/series.ts +66 -0
- package/src/plugins/builtin/credit-boards/sovr-pane.tsx +156 -0
- package/src/plugins/builtin/credit-conditions/client.ts +121 -0
- package/src/plugins/builtin/credit-conditions/headless.ts +68 -0
- package/src/plugins/builtin/credit-conditions/index.tsx +159 -0
- package/src/plugins/builtin/credit-conditions/model.ts +94 -0
- package/src/plugins/builtin/credit-conditions/series.ts +16 -0
- package/src/plugins/builtin/credit-documents/client.ts +99 -0
- package/src/plugins/builtin/credit-documents/detail.tsx +110 -0
- package/src/plugins/builtin/credit-documents/evidence.ts +64 -0
- package/src/plugins/builtin/credit-documents/gauge.tsx +52 -0
- package/src/plugins/builtin/credit-documents/headless.ts +72 -0
- package/src/plugins/builtin/credit-documents/index.tsx +39 -0
- package/src/plugins/builtin/credit-documents/model.ts +329 -0
- package/src/plugins/builtin/credit-documents/pane.tsx +188 -0
- package/src/plugins/builtin/crypto-board/client.ts +369 -0
- package/src/plugins/builtin/crypto-board/defi-view.tsx +218 -0
- package/src/plugins/builtin/crypto-board/defi.ts +239 -0
- package/src/plugins/builtin/crypto-board/headless.ts +304 -0
- package/src/plugins/builtin/crypto-board/index.tsx +49 -0
- package/src/plugins/builtin/crypto-board/model.ts +521 -0
- package/src/plugins/builtin/crypto-board/pane.tsx +419 -0
- package/src/plugins/builtin/crypto-board/series.ts +117 -0
- package/src/plugins/builtin/crypto-board/supply.ts +123 -0
- package/src/plugins/builtin/crypto-etf-flows/client.ts +60 -0
- package/src/plugins/builtin/crypto-etf-flows/headless.ts +132 -0
- package/src/plugins/builtin/crypto-etf-flows/index.tsx +44 -0
- package/src/plugins/builtin/crypto-etf-flows/model.ts +121 -0
- package/src/plugins/builtin/crypto-etf-flows/pane.tsx +193 -0
- package/src/plugins/builtin/custom-view/index.tsx +69 -0
- package/src/plugins/builtin/custom-view/live-quotes.ts +143 -0
- package/src/plugins/builtin/custom-view/loader.ts +158 -0
- package/src/plugins/builtin/custom-view/pane.tsx +415 -0
- package/src/plugins/builtin/custom-view/sources.ts +146 -0
- package/src/plugins/builtin/custom-view/view-spec.ts +462 -0
- package/src/plugins/builtin/debt-maturities/client.ts +438 -0
- package/src/plugins/builtin/debt-maturities/headless.ts +125 -0
- package/src/plugins/builtin/debt-maturities/index.tsx +33 -0
- package/src/plugins/builtin/debt-maturities/model.ts +231 -0
- package/src/plugins/builtin/debt-maturities/pane.tsx +692 -0
- package/src/plugins/builtin/debt-maturities/series.ts +45 -0
- package/src/plugins/builtin/debt-maturities/wall-bar.tsx +36 -0
- package/src/plugins/builtin/debug/index.tsx +336 -0
- package/src/plugins/builtin/debug/template.ts +8 -0
- package/src/plugins/builtin/dividend-yield/browser.tsx +3 -0
- package/src/plugins/builtin/dividend-yield/client.ts +223 -0
- package/src/plugins/builtin/dividend-yield/headless.ts +312 -0
- package/src/plugins/builtin/dividend-yield/index.tsx +85 -0
- package/src/plugins/builtin/dividend-yield/model.ts +50 -0
- package/src/plugins/builtin/dividend-yield/pane.tsx +307 -0
- package/src/plugins/builtin/dividend-yield/provider-client.ts +52 -0
- package/src/plugins/builtin/dividend-yield/ranking.ts +187 -0
- package/src/plugins/builtin/dividend-yield/reference-price.ts +50 -0
- package/src/plugins/builtin/dividend-yield/series.ts +20 -0
- package/src/plugins/builtin/dividend-yield/types.ts +31 -0
- package/src/plugins/builtin/dividend-yield/view.ts +64 -0
- package/src/plugins/builtin/docs/blocks.tsx +239 -0
- package/src/plugins/builtin/docs/index.tsx +70 -0
- package/src/plugins/builtin/docs/pane.tsx +447 -0
- package/src/plugins/builtin/docs/targets.ts +74 -0
- package/src/plugins/builtin/docs/use-docs.ts +60 -0
- package/src/plugins/builtin/doe/client.ts +77 -0
- package/src/plugins/builtin/doe/headless.ts +110 -0
- package/src/plugins/builtin/doe/index.tsx +50 -0
- package/src/plugins/builtin/doe/model.ts +252 -0
- package/src/plugins/builtin/doe/pane.tsx +156 -0
- package/src/plugins/builtin/doe/prices.ts +84 -0
- package/src/plugins/builtin/doe/range-bar.tsx +15 -0
- package/src/plugins/builtin/doe/series.ts +65 -0
- package/src/plugins/builtin/earnings/board-model.ts +251 -0
- package/src/plugins/builtin/earnings/board-table.ts +147 -0
- package/src/plugins/builtin/earnings/board.tsx +475 -0
- package/src/plugins/builtin/earnings/calendar-model.ts +188 -0
- package/src/plugins/builtin/earnings/calendar.tsx +338 -0
- package/src/plugins/builtin/earnings/client.ts +99 -0
- package/src/plugins/builtin/earnings/data/cache.ts +84 -0
- package/src/plugins/builtin/earnings/format.ts +58 -0
- package/src/plugins/builtin/earnings/headless.ts +303 -0
- package/src/plugins/builtin/earnings/history-model.ts +213 -0
- package/src/plugins/builtin/earnings/history-table.ts +106 -0
- package/src/plugins/builtin/earnings/history.tsx +141 -0
- package/src/plugins/builtin/earnings/index.tsx +158 -0
- package/src/plugins/builtin/earnings/model.ts +22 -0
- package/src/plugins/builtin/earnings/no-earnings.ts +52 -0
- package/src/plugins/builtin/earnings/scope.ts +89 -0
- package/src/plugins/builtin/earnings-calls/calendar.tsx +310 -0
- package/src/plugins/builtin/earnings-calls/data.ts +515 -0
- package/src/plugins/builtin/earnings-calls/format.ts +43 -0
- package/src/plugins/builtin/earnings-calls/headless.ts +456 -0
- package/src/plugins/builtin/earnings-calls/index.tsx +82 -0
- package/src/plugins/builtin/earnings-calls/lock-note.ts +26 -0
- package/src/plugins/builtin/earnings-calls/model.ts +336 -0
- package/src/plugins/builtin/earnings-calls/pane.tsx +1124 -0
- package/src/plugins/builtin/earnings-calls/prose.ts +62 -0
- package/src/plugins/builtin/earnings-calls/transcript-view.tsx +457 -0
- package/src/plugins/builtin/earnings-calls/upcoming.ts +195 -0
- package/src/plugins/builtin/earnings-calls/use-call-playback.ts +194 -0
- package/src/plugins/builtin/earnings-ripple/client.ts +133 -0
- package/src/plugins/builtin/earnings-ripple/headless.ts +55 -0
- package/src/plugins/builtin/earnings-ripple/index.tsx +37 -0
- package/src/plugins/builtin/earnings-ripple/model.ts +188 -0
- package/src/plugins/builtin/earnings-ripple/pane.tsx +233 -0
- package/src/plugins/builtin/econ/calendar-model.ts +409 -0
- package/src/plugins/builtin/econ/calendar-source.ts +49 -0
- package/src/plugins/builtin/econ/detail-view.tsx +324 -0
- package/src/plugins/builtin/econ/figures.ts +72 -0
- package/src/plugins/builtin/econ/fred-catalog.ts +219 -0
- package/src/plugins/builtin/econ/fred-series-map.ts +103 -0
- package/src/plugins/builtin/econ/index.tsx +612 -0
- package/src/plugins/builtin/econ/print-watch.ts +280 -0
- package/src/plugins/builtin/econ/types.ts +47 -0
- package/src/plugins/builtin/econ-statistics/cache.ts +8 -0
- package/src/plugins/builtin/econ-statistics/client.ts +153 -0
- package/src/plugins/builtin/econ-statistics/defs.ts +94 -0
- package/src/plugins/builtin/econ-statistics/detail.tsx +85 -0
- package/src/plugins/builtin/econ-statistics/headless.ts +266 -0
- package/src/plugins/builtin/econ-statistics/index.tsx +54 -0
- package/src/plugins/builtin/econ-statistics/pane.tsx +219 -0
- package/src/plugins/builtin/econ-statistics/stats.ts +651 -0
- package/src/plugins/builtin/econ-statistics/view.ts +182 -0
- package/src/plugins/builtin/equity-screener/client.ts +101 -0
- package/src/plugins/builtin/equity-screener/criterion-editor.tsx +174 -0
- package/src/plugins/builtin/equity-screener/headless.ts +284 -0
- package/src/plugins/builtin/equity-screener/index.tsx +38 -0
- package/src/plugins/builtin/equity-screener/live.ts +149 -0
- package/src/plugins/builtin/equity-screener/model.ts +639 -0
- package/src/plugins/builtin/equity-screener/pane.tsx +1072 -0
- package/src/plugins/builtin/equity-screener/results.ts +135 -0
- package/src/plugins/builtin/equity-screener/screen-check.ts +90 -0
- package/src/plugins/builtin/equity-screener/ticker-check.tsx +148 -0
- package/src/plugins/builtin/estimate-revisions/client.ts +283 -0
- package/src/plugins/builtin/estimate-revisions/headless.ts +108 -0
- package/src/plugins/builtin/estimate-revisions/index.tsx +92 -0
- package/src/plugins/builtin/estimate-revisions/lock-note.ts +45 -0
- package/src/plugins/builtin/estimate-revisions/model.ts +108 -0
- package/src/plugins/builtin/estimate-revisions/pane.tsx +601 -0
- package/src/plugins/builtin/estimate-revisions/sorting.ts +111 -0
- package/src/plugins/builtin/executives/data.ts +148 -0
- package/src/plugins/builtin/executives/format.ts +44 -0
- package/src/plugins/builtin/executives/index.tsx +68 -0
- package/src/plugins/builtin/executives/pane.tsx +448 -0
- package/src/plugins/builtin/exposure/charts.tsx +67 -0
- package/src/plugins/builtin/exposure/client.ts +56 -0
- package/src/plugins/builtin/exposure/drivers.ts +42 -0
- package/src/plugins/builtin/exposure/editor.tsx +61 -0
- package/src/plugins/builtin/exposure/evidence.ts +42 -0
- package/src/plugins/builtin/exposure/headless.ts +290 -0
- package/src/plugins/builtin/exposure/holdings.ts +58 -0
- package/src/plugins/builtin/exposure/index.tsx +40 -0
- package/src/plugins/builtin/exposure/model.ts +143 -0
- package/src/plugins/builtin/exposure/pane.tsx +276 -0
- package/src/plugins/builtin/fear-greed/cache.ts +100 -0
- package/src/plugins/builtin/fear-greed/charts.tsx +262 -0
- package/src/plugins/builtin/fear-greed/data.ts +376 -0
- package/src/plugins/builtin/fear-greed/format.ts +87 -0
- package/src/plugins/builtin/fear-greed/headless.ts +87 -0
- package/src/plugins/builtin/fear-greed/index.tsx +104 -0
- package/src/plugins/builtin/fear-greed/pane.tsx +105 -0
- package/src/plugins/builtin/fear-greed/series.ts +52 -0
- package/src/plugins/builtin/filing-events/feed.ts +169 -0
- package/src/plugins/builtin/filing-events/index.tsx +79 -0
- package/src/plugins/builtin/filing-events/pane.tsx +312 -0
- package/src/plugins/builtin/fixed-income/index.tsx +46 -0
- package/src/plugins/builtin/fixed-income/model.ts +27 -0
- package/src/plugins/builtin/fixed-income/pane.tsx +163 -0
- package/src/plugins/builtin/fixed-income/shortcut.ts +52 -0
- package/src/plugins/builtin/futures/index.tsx +436 -0
- package/src/plugins/builtin/futures/model.ts +257 -0
- package/src/plugins/builtin/futures/returns.ts +104 -0
- package/src/plugins/builtin/futures/series.ts +71 -0
- package/src/plugins/builtin/futures/table.tsx +274 -0
- package/src/plugins/builtin/futures/use-board-terms.ts +89 -0
- package/src/plugins/builtin/futures/use-front-returns.ts +120 -0
- package/src/plugins/builtin/futures-curve/client.ts +136 -0
- package/src/plugins/builtin/futures-curve/headless.ts +174 -0
- package/src/plugins/builtin/futures-curve/index.tsx +33 -0
- package/src/plugins/builtin/futures-curve/model.ts +769 -0
- package/src/plugins/builtin/futures-curve/pane.tsx +332 -0
- package/src/plugins/builtin/fx-matrix/client.ts +75 -0
- package/src/plugins/builtin/fx-matrix/direction.ts +81 -0
- package/src/plugins/builtin/fx-matrix/export.ts +33 -0
- package/src/plugins/builtin/fx-matrix/headless.ts +175 -0
- package/src/plugins/builtin/fx-matrix/index.tsx +302 -0
- package/src/plugins/builtin/fx-matrix/live-legs.ts +128 -0
- package/src/plugins/builtin/fx-matrix/pairs.ts +81 -0
- package/src/plugins/builtin/fx-matrix/settings.ts +103 -0
- package/src/plugins/builtin/gpu/board.tsx +169 -0
- package/src/plugins/builtin/gpu/changes.tsx +94 -0
- package/src/plugins/builtin/gpu/client.ts +148 -0
- package/src/plugins/builtin/gpu/equities.tsx +122 -0
- package/src/plugins/builtin/gpu/headless.ts +113 -0
- package/src/plugins/builtin/gpu/history.tsx +142 -0
- package/src/plugins/builtin/gpu/index.tsx +20 -0
- package/src/plugins/builtin/gpu/ladder.tsx +123 -0
- package/src/plugins/builtin/gpu/model.ts +437 -0
- package/src/plugins/builtin/gpu/pane.tsx +81 -0
- package/src/plugins/builtin/gpu/series.ts +38 -0
- package/src/plugins/builtin/help/feedback-tab.tsx +98 -0
- package/src/plugins/builtin/help/function-card.tsx +221 -0
- package/src/plugins/builtin/help/function-index.ts +195 -0
- package/src/plugins/builtin/help/functions-table.tsx +188 -0
- package/src/plugins/builtin/help/index.tsx +431 -0
- package/src/plugins/builtin/help/keybindings-editor.tsx +437 -0
- package/src/plugins/builtin/help/shortcut-model.ts +116 -0
- package/src/plugins/builtin/help/shortcut-table.tsx +130 -0
- package/src/plugins/builtin/help/table-cells.tsx +66 -0
- package/src/plugins/builtin/holders/beneficial-client.ts +231 -0
- package/src/plugins/builtin/holders/beneficial-model.ts +363 -0
- package/src/plugins/builtin/holders/beneficial-report.ts +179 -0
- package/src/plugins/builtin/holders/beneficial-view.tsx +293 -0
- package/src/plugins/builtin/holders/client.ts +58 -0
- package/src/plugins/builtin/holders/format.ts +100 -0
- package/src/plugins/builtin/holders/headless.ts +285 -0
- package/src/plugins/builtin/holders/index-holders.ts +264 -0
- package/src/plugins/builtin/holders/index.tsx +52 -0
- package/src/plugins/builtin/holders/pane.tsx +439 -0
- package/src/plugins/builtin/holders/report-header.ts +171 -0
- package/src/plugins/builtin/holders/report-rows.ts +268 -0
- package/src/plugins/builtin/holders/table-model.ts +86 -0
- package/src/plugins/builtin/holders/thirteenf-match.ts +117 -0
- package/src/plugins/builtin/holders/treemap.tsx +51 -0
- package/src/plugins/builtin/holders/types.ts +17 -0
- package/src/plugins/builtin/insider/amendments.ts +65 -0
- package/src/plugins/builtin/insider/base-values.ts +76 -0
- package/src/plugins/builtin/insider/client.ts +64 -0
- package/src/plugins/builtin/insider/detail.tsx +127 -0
- package/src/plugins/builtin/insider/display.ts +221 -0
- package/src/plugins/builtin/insider/headless.ts +574 -0
- package/src/plugins/builtin/insider/index.tsx +771 -0
- package/src/plugins/builtin/insider/insider-data.ts +176 -0
- package/src/plugins/builtin/insider/insiders.tsx +224 -0
- package/src/plugins/builtin/insider/issuer.ts +79 -0
- package/src/plugins/builtin/insider/model.ts +207 -0
- package/src/plugins/builtin/insider/signals-cells.tsx +52 -0
- package/src/plugins/builtin/insider/signals-client.ts +193 -0
- package/src/plugins/builtin/insider/signals-model.ts +718 -0
- package/src/plugins/builtin/insider/signals.tsx +376 -0
- package/src/plugins/builtin/insider/table-model.ts +248 -0
- package/src/plugins/builtin/insider/table.tsx +82 -0
- package/src/plugins/builtin/ipo-calendar/client.ts +93 -0
- package/src/plugins/builtin/ipo-calendar/headless.ts +170 -0
- package/src/plugins/builtin/ipo-calendar/index.tsx +67 -0
- package/src/plugins/builtin/ipo-calendar/model.ts +389 -0
- package/src/plugins/builtin/ipo-calendar/pane.tsx +248 -0
- package/src/plugins/builtin/iv-history/charts.tsx +64 -0
- package/src/plugins/builtin/iv-history/client.ts +213 -0
- package/src/plugins/builtin/iv-history/events.ts +145 -0
- package/src/plugins/builtin/iv-history/format.ts +64 -0
- package/src/plugins/builtin/iv-history/headless.ts +242 -0
- package/src/plugins/builtin/iv-history/index.tsx +50 -0
- package/src/plugins/builtin/iv-history/model.ts +396 -0
- package/src/plugins/builtin/iv-history/pane.tsx +137 -0
- package/src/plugins/builtin/iv-history/rank.ts +10 -0
- package/src/plugins/builtin/iv-history/screen-pane.tsx +186 -0
- package/src/plugins/builtin/iv-history/series.ts +31 -0
- package/src/plugins/builtin/iv-history/universe.ts +40 -0
- package/src/plugins/builtin/jobs/client.ts +85 -0
- package/src/plugins/builtin/jobs/headless.ts +221 -0
- package/src/plugins/builtin/jobs/index.tsx +88 -0
- package/src/plugins/builtin/jobs/lock-note.ts +27 -0
- package/src/plugins/builtin/jobs/model.ts +332 -0
- package/src/plugins/builtin/jobs/pages.ts +48 -0
- package/src/plugins/builtin/jobs/pane.tsx +781 -0
- package/src/plugins/builtin/jobs/series.ts +19 -0
- package/src/plugins/builtin/jobs/share-bars.tsx +76 -0
- package/src/plugins/builtin/jodi/client.ts +57 -0
- package/src/plugins/builtin/jodi/headless.ts +74 -0
- package/src/plugins/builtin/jodi/index.tsx +32 -0
- package/src/plugins/builtin/jodi/model.ts +50 -0
- package/src/plugins/builtin/jodi/pane.tsx +152 -0
- package/src/plugins/builtin/kelly-sizer/constants.ts +3 -0
- package/src/plugins/builtin/kelly-sizer/fields.ts +195 -0
- package/src/plugins/builtin/kelly-sizer/headless.ts +149 -0
- package/src/plugins/builtin/kelly-sizer/history.ts +82 -0
- package/src/plugins/builtin/kelly-sizer/index.tsx +49 -0
- package/src/plugins/builtin/kelly-sizer/model.ts +562 -0
- package/src/plugins/builtin/kelly-sizer/pane.tsx +650 -0
- package/src/plugins/builtin/kelly-sizer/portfolio.ts +55 -0
- package/src/plugins/builtin/kelly-sizer/sections.tsx +206 -0
- package/src/plugins/builtin/kelly-sizer/state.ts +67 -0
- package/src/plugins/builtin/kelly-sizer/test-support.tsx +165 -0
- package/src/plugins/builtin/kelly-sizer/types.ts +164 -0
- package/src/plugins/builtin/kelly-sizer/view.tsx +22 -0
- package/src/plugins/builtin/layout-manager/index.tsx +306 -0
- package/src/plugins/builtin/macro-day/client.ts +115 -0
- package/src/plugins/builtin/macro-day/headless.ts +72 -0
- package/src/plugins/builtin/macro-day/index.tsx +25 -0
- package/src/plugins/builtin/macro-day/model.ts +209 -0
- package/src/plugins/builtin/macro-day/pane.tsx +170 -0
- package/src/plugins/builtin/macro-day/release-table.ts +40 -0
- package/src/plugins/builtin/macro-day/releases.ts +118 -0
- package/src/plugins/builtin/macro-resources.ts +15 -0
- package/src/plugins/builtin/market-halts/client.ts +114 -0
- package/src/plugins/builtin/market-halts/index.tsx +42 -0
- package/src/plugins/builtin/market-halts/model.ts +361 -0
- package/src/plugins/builtin/market-halts/pane.tsx +240 -0
- package/src/plugins/builtin/market-heatmap/data.ts +117 -0
- package/src/plugins/builtin/market-heatmap/evidence.ts +99 -0
- package/src/plugins/builtin/market-heatmap/headless.ts +154 -0
- package/src/plugins/builtin/market-heatmap/index.tsx +845 -0
- package/src/plugins/builtin/market-heatmap/live.ts +89 -0
- package/src/plugins/builtin/market-heatmap/model.ts +248 -0
- package/src/plugins/builtin/market-heatmap/portfolio.ts +317 -0
- package/src/plugins/builtin/market-movers/client.ts +147 -0
- package/src/plugins/builtin/market-movers/footer.ts +19 -0
- package/src/plugins/builtin/market-movers/headless.ts +188 -0
- package/src/plugins/builtin/market-movers/index.tsx +380 -0
- package/src/plugins/builtin/market-movers/model.ts +370 -0
- package/src/plugins/builtin/market-movers/screener.ts +449 -0
- package/src/plugins/builtin/market-movers/session-body.tsx +258 -0
- package/src/plugins/builtin/market-movers/session-table.ts +98 -0
- package/src/plugins/builtin/market-movers/session.ts +248 -0
- package/src/plugins/builtin/market-movers/table.ts +125 -0
- package/src/plugins/builtin/market-valuation/align.ts +146 -0
- package/src/plugins/builtin/market-valuation/cache.ts +3 -0
- package/src/plugins/builtin/market-valuation/chart-projection.ts +196 -0
- package/src/plugins/builtin/market-valuation/chart-series.ts +59 -0
- package/src/plugins/builtin/market-valuation/client.ts +158 -0
- package/src/plugins/builtin/market-valuation/defs.ts +253 -0
- package/src/plugins/builtin/market-valuation/detail.tsx +93 -0
- package/src/plugins/builtin/market-valuation/headless.ts +172 -0
- package/src/plugins/builtin/market-valuation/index.tsx +83 -0
- package/src/plugins/builtin/market-valuation/indicators.ts +386 -0
- package/src/plugins/builtin/market-valuation/pane.tsx +197 -0
- package/src/plugins/builtin/market-valuation/series.ts +29 -0
- package/src/plugins/builtin/market-valuation/settings.ts +38 -0
- package/src/plugins/builtin/market-valuation/sources.ts +192 -0
- package/src/plugins/builtin/market-valuation/view.ts +154 -0
- package/src/plugins/builtin/market-valuation/zone-scale/desktop.tsx +97 -0
- package/src/plugins/builtin/market-valuation/zone-scale/index.tsx +12 -0
- package/src/plugins/builtin/market-valuation/zone-scale/model.ts +67 -0
- package/src/plugins/builtin/market-valuation/zone-scale/terminal.tsx +94 -0
- package/src/plugins/builtin/members/breadth-pane.tsx +81 -0
- package/src/plugins/builtin/members/client.ts +68 -0
- package/src/plugins/builtin/members/headless.ts +54 -0
- package/src/plugins/builtin/members/index.tsx +20 -0
- package/src/plugins/builtin/members/model.ts +115 -0
- package/src/plugins/builtin/members/pane.tsx +205 -0
- package/src/plugins/builtin/mna/client.ts +154 -0
- package/src/plugins/builtin/mna/detail.tsx +285 -0
- package/src/plugins/builtin/mna/distress/client.ts +326 -0
- package/src/plugins/builtin/mna/distress/detail.tsx +259 -0
- package/src/plugins/builtin/mna/distress/headless.ts +259 -0
- package/src/plugins/builtin/mna/distress/model.ts +479 -0
- package/src/plugins/builtin/mna/distress/pane.tsx +614 -0
- package/src/plugins/builtin/mna/headless.ts +100 -0
- package/src/plugins/builtin/mna/index.tsx +74 -0
- package/src/plugins/builtin/mna/model.ts +282 -0
- package/src/plugins/builtin/mna/pane.tsx +477 -0
- package/src/plugins/builtin/money-markets/client.ts +54 -0
- package/src/plugins/builtin/money-markets/headless.ts +29 -0
- package/src/plugins/builtin/money-markets/index.tsx +20 -0
- package/src/plugins/builtin/money-markets/model.ts +55 -0
- package/src/plugins/builtin/money-markets/pane.tsx +142 -0
- package/src/plugins/builtin/money-markets/series.ts +41 -0
- package/src/plugins/builtin/news/headless.ts +233 -0
- package/src/plugins/builtin/news/index.tsx +233 -0
- package/src/plugins/builtin/news/wire/breaking/filters.ts +110 -0
- package/src/plugins/builtin/news/wire/breaking/notifications.ts +202 -0
- package/src/plugins/builtin/news/wire/categories.ts +172 -0
- package/src/plugins/builtin/news/wire/default-feeds.ts +43 -0
- package/src/plugins/builtin/news/wire/feed-config.ts +251 -0
- package/src/plugins/builtin/news/wire/filter-articles.ts +54 -0
- package/src/plugins/builtin/news/wire/hash.ts +9 -0
- package/src/plugins/builtin/news/wire/index.tsx +252 -0
- package/src/plugins/builtin/news/wire/industry-pane.tsx +183 -0
- package/src/plugins/builtin/news/wire/letters/client.ts +109 -0
- package/src/plugins/builtin/news/wire/letters/model.ts +69 -0
- package/src/plugins/builtin/news/wire/letters/pane.tsx +155 -0
- package/src/plugins/builtin/news/wire/mutes.ts +254 -0
- package/src/plugins/builtin/news/wire/news/command-bar-search.ts +136 -0
- package/src/plugins/builtin/news/wire/news/detail-view.tsx +329 -0
- package/src/plugins/builtin/news/wire/news/footer.ts +78 -0
- package/src/plugins/builtin/news/wire/news/list-search.ts +34 -0
- package/src/plugins/builtin/news/wire/news/pop-out.tsx +158 -0
- package/src/plugins/builtin/news/wire/news/preset-pane.tsx +215 -0
- package/src/plugins/builtin/news/wire/news/query-presets.ts +126 -0
- package/src/plugins/builtin/news/wire/news/table.tsx +422 -0
- package/src/plugins/builtin/news/wire/persisted-articles.ts +123 -0
- package/src/plugins/builtin/news/wire/read-state.ts +29 -0
- package/src/plugins/builtin/news/wire/rss/cli.ts +48 -0
- package/src/plugins/builtin/news/wire/rss/feed-xml.ts +109 -0
- package/src/plugins/builtin/news/wire/rss/managed-feed.ts +20 -0
- package/src/plugins/builtin/news/wire/rss/parser.ts +182 -0
- package/src/plugins/builtin/news/wire/rss/source.ts +191 -0
- package/src/plugins/builtin/notes/cli.ts +172 -0
- package/src/plugins/builtin/notes/export.ts +114 -0
- package/src/plugins/builtin/notes/files.ts +315 -0
- package/src/plugins/builtin/notes/index.tsx +134 -0
- package/src/plugins/builtin/notes/markdown-note-preview.tsx +39 -0
- package/src/plugins/builtin/notes/migration.ts +94 -0
- package/src/plugins/builtin/notes/model.ts +36 -0
- package/src/plugins/builtin/notes/owner.tsx +131 -0
- package/src/plugins/builtin/notes/quick-notes-pane.tsx +503 -0
- package/src/plugins/builtin/notes/store.ts +314 -0
- package/src/plugins/builtin/notes/text-state.ts +11 -0
- package/src/plugins/builtin/notes/ticker-notes-tab.tsx +222 -0
- package/src/plugins/builtin/openfda/client.ts +408 -0
- package/src/plugins/builtin/openfda/index.tsx +72 -0
- package/src/plugins/builtin/openfda/model.ts +163 -0
- package/src/plugins/builtin/openfda/pane.tsx +426 -0
- package/src/plugins/builtin/openfda/types.ts +101 -0
- package/src/plugins/builtin/options/analytics-as-of.tsx +41 -0
- package/src/plugins/builtin/options/analytics.ts +234 -0
- package/src/plugins/builtin/options/calc-seed.ts +65 -0
- package/src/plugins/builtin/options/carry.ts +131 -0
- package/src/plugins/builtin/options/enrichment-client.ts +70 -0
- package/src/plugins/builtin/options/enrichment-model.ts +168 -0
- package/src/plugins/builtin/options/enrichment.ts +127 -0
- package/src/plugins/builtin/options/expiry-catalogue.ts +43 -0
- package/src/plugins/builtin/options/footer.ts +143 -0
- package/src/plugins/builtin/options/index.tsx +159 -0
- package/src/plugins/builtin/options/live-quotes.ts +295 -0
- package/src/plugins/builtin/options/market-reference.ts +92 -0
- package/src/plugins/builtin/options/model-spot.ts +163 -0
- package/src/plugins/builtin/options/open-interest-as-of.ts +74 -0
- package/src/plugins/builtin/options/quote-context.tsx +29 -0
- package/src/plugins/builtin/options/strike-window.ts +184 -0
- package/src/plugins/builtin/options/table.ts +362 -0
- package/src/plugins/builtin/options/types.ts +57 -0
- package/src/plugins/builtin/options/view.tsx +1042 -0
- package/src/plugins/builtin/options-calculator/binomial.ts +332 -0
- package/src/plugins/builtin/options-calculator/evidence.ts +228 -0
- package/src/plugins/builtin/options-calculator/headless.ts +137 -0
- package/src/plugins/builtin/options-calculator/index.tsx +37 -0
- package/src/plugins/builtin/options-calculator/inputs.ts +79 -0
- package/src/plugins/builtin/options-calculator/model.ts +119 -0
- package/src/plugins/builtin/options-calculator/pane.tsx +429 -0
- package/src/plugins/builtin/options-calculator/premium-history.ts +34 -0
- package/src/plugins/builtin/options-calculator/surface.ts +194 -0
- package/src/plugins/builtin/options-positioning/client.ts +138 -0
- package/src/plugins/builtin/options-positioning/headless.ts +242 -0
- package/src/plugins/builtin/options-positioning/index.tsx +72 -0
- package/src/plugins/builtin/options-positioning/model.ts +268 -0
- package/src/plugins/builtin/options-positioning/pane.tsx +654 -0
- package/src/plugins/builtin/options-scenario/charts.tsx +47 -0
- package/src/plugins/builtin/options-scenario/client.ts +576 -0
- package/src/plugins/builtin/options-scenario/collar.ts +143 -0
- package/src/plugins/builtin/options-scenario/csp-screen-headless.ts +127 -0
- package/src/plugins/builtin/options-scenario/csp-screen-pane.tsx +165 -0
- package/src/plugins/builtin/options-scenario/csp-screen.ts +258 -0
- package/src/plugins/builtin/options-scenario/csp.ts +248 -0
- package/src/plugins/builtin/options-scenario/editor.tsx +139 -0
- package/src/plugins/builtin/options-scenario/evidence.ts +127 -0
- package/src/plugins/builtin/options-scenario/freshness.ts +27 -0
- package/src/plugins/builtin/options-scenario/headless.ts +208 -0
- package/src/plugins/builtin/options-scenario/hedge.ts +291 -0
- package/src/plugins/builtin/options-scenario/index.tsx +62 -0
- package/src/plugins/builtin/options-scenario/live.ts +50 -0
- package/src/plugins/builtin/options-scenario/model.ts +407 -0
- package/src/plugins/builtin/options-scenario/pane.tsx +475 -0
- package/src/plugins/builtin/options-scenario/state.ts +71 -0
- package/src/plugins/builtin/pe-band/client.ts +133 -0
- package/src/plugins/builtin/pe-band/headless.ts +69 -0
- package/src/plugins/builtin/pe-band/index.tsx +20 -0
- package/src/plugins/builtin/pe-band/model.ts +334 -0
- package/src/plugins/builtin/pe-band/pane.tsx +177 -0
- package/src/plugins/builtin/pe-band/report-dates.ts +82 -0
- package/src/plugins/builtin/perps/client.ts +272 -0
- package/src/plugins/builtin/perps/equity-identity.ts +16 -0
- package/src/plugins/builtin/perps/equity-row.tsx +76 -0
- package/src/plugins/builtin/perps/freshness.ts +71 -0
- package/src/plugins/builtin/perps/headless.ts +207 -0
- package/src/plugins/builtin/perps/index.tsx +33 -0
- package/src/plugins/builtin/perps/list-perpetuals.ts +139 -0
- package/src/plugins/builtin/perps/live-rows.ts +168 -0
- package/src/plugins/builtin/perps/markets-section.tsx +154 -0
- package/src/plugins/builtin/perps/model.ts +335 -0
- package/src/plugins/builtin/perps/open-market.ts +15 -0
- package/src/plugins/builtin/perps/pane.tsx +466 -0
- package/src/plugins/builtin/perps/series.ts +76 -0
- package/src/plugins/builtin/perps/venue-markets.ts +96 -0
- package/src/plugins/builtin/plugin-marketplace/index.tsx +44 -0
- package/src/plugins/builtin/plugin-marketplace/pane.tsx +1059 -0
- package/src/plugins/builtin/plugin-module.ts +205 -0
- package/src/plugins/builtin/portfolio-list/account-metrics.ts +206 -0
- package/src/plugins/builtin/portfolio-list/cached-account.ts +42 -0
- package/src/plugins/builtin/portfolio-list/cell-version.ts +79 -0
- package/src/plugins/builtin/portfolio-list/cli/bulk-symbols.ts +330 -0
- package/src/plugins/builtin/portfolio-list/cli/import-13f.ts +109 -0
- package/src/plugins/builtin/portfolio-list/cli/portfolio-command.ts +1151 -0
- package/src/plugins/builtin/portfolio-list/cli/render.ts +1402 -0
- package/src/plugins/builtin/portfolio-list/cli/shared.ts +151 -0
- package/src/plugins/builtin/portfolio-list/cli/watchlist-command.ts +297 -0
- package/src/plugins/builtin/portfolio-list/grid.tsx +288 -0
- package/src/plugins/builtin/portfolio-list/header.tsx +65 -0
- package/src/plugins/builtin/portfolio-list/headless.ts +552 -0
- package/src/plugins/builtin/portfolio-list/imported-from.ts +8 -0
- package/src/plugins/builtin/portfolio-list/income.ts +307 -0
- package/src/plugins/builtin/portfolio-list/index.tsx +125 -0
- package/src/plugins/builtin/portfolio-list/metrics.ts +25 -0
- package/src/plugins/builtin/portfolio-list/pane/data.ts +277 -0
- package/src/plugins/builtin/portfolio-list/pane/futures-terms.ts +58 -0
- package/src/plugins/builtin/portfolio-list/pane/index.tsx +843 -0
- package/src/plugins/builtin/portfolio-list/pane/purchase-date-fx.ts +46 -0
- package/src/plugins/builtin/portfolio-list/pane/remove-ticker.ts +85 -0
- package/src/plugins/builtin/portfolio-list/pane/streaming.ts +328 -0
- package/src/plugins/builtin/portfolio-list/pane/supplemental.ts +300 -0
- package/src/plugins/builtin/portfolio-list/quick-add/index.tsx +435 -0
- package/src/plugins/builtin/portfolio-list/quick-add/resolution.ts +208 -0
- package/src/plugins/builtin/portfolio-list/row-actions.ts +8 -0
- package/src/plugins/builtin/portfolio-list/settings.ts +409 -0
- package/src/plugins/builtin/portfolio-list/since-last-seen.ts +197 -0
- package/src/plugins/builtin/portfolio-list/summary/index.tsx +530 -0
- package/src/plugins/builtin/portfolio-list/summary/live-accounts.ts +167 -0
- package/src/plugins/builtin/portfolio-list/summary/totals.ts +280 -0
- package/src/plugins/builtin/portfolio-list/table.tsx +243 -0
- package/src/plugins/builtin/portfolio-list/use-column-clock.ts +41 -0
- package/src/plugins/builtin/portfolio-list/use-cursor-neighbor-prefetch.ts +87 -0
- package/src/plugins/builtin/portfolio-list/use-throttled-cursor-symbol.ts +26 -0
- package/src/plugins/builtin/portfolio-list/use-throttled-memo.ts +59 -0
- package/src/plugins/builtin/portfolio-list/use-throttled-ticker-order.ts +78 -0
- package/src/plugins/builtin/power/client.ts +119 -0
- package/src/plugins/builtin/power/detail.tsx +82 -0
- package/src/plugins/builtin/power/evidence.ts +153 -0
- package/src/plugins/builtin/power/gas-client.ts +110 -0
- package/src/plugins/builtin/power/gas-model.ts +194 -0
- package/src/plugins/builtin/power/gas.tsx +149 -0
- package/src/plugins/builtin/power/generation.tsx +37 -0
- package/src/plugins/builtin/power/headless.ts +116 -0
- package/src/plugins/builtin/power/index.tsx +51 -0
- package/src/plugins/builtin/power/model.ts +160 -0
- package/src/plugins/builtin/power/pane.tsx +248 -0
- package/src/plugins/builtin/power/prices-client.ts +139 -0
- package/src/plugins/builtin/power/prices-headless.ts +206 -0
- package/src/plugins/builtin/power/prices-model.ts +103 -0
- package/src/plugins/builtin/power/prices.tsx +209 -0
- package/src/plugins/builtin/power/query.ts +25 -0
- package/src/plugins/builtin/primary-dealers/client.ts +183 -0
- package/src/plugins/builtin/primary-dealers/headless.ts +78 -0
- package/src/plugins/builtin/primary-dealers/index.tsx +18 -0
- package/src/plugins/builtin/primary-dealers/model.ts +256 -0
- package/src/plugins/builtin/primary-dealers/pane.tsx +269 -0
- package/src/plugins/builtin/rate-path/client.ts +52 -0
- package/src/plugins/builtin/rate-path/headless.ts +93 -0
- package/src/plugins/builtin/rate-path/index.tsx +18 -0
- package/src/plugins/builtin/rate-path/model.ts +127 -0
- package/src/plugins/builtin/rate-path/pane.tsx +214 -0
- package/src/plugins/builtin/realized-vol/chart-model.ts +70 -0
- package/src/plugins/builtin/realized-vol/charts.tsx +44 -0
- package/src/plugins/builtin/realized-vol/client.ts +108 -0
- package/src/plugins/builtin/realized-vol/evidence.ts +103 -0
- package/src/plugins/builtin/realized-vol/headless.ts +86 -0
- package/src/plugins/builtin/realized-vol/index.tsx +34 -0
- package/src/plugins/builtin/realized-vol/model.ts +149 -0
- package/src/plugins/builtin/realized-vol/pane.tsx +211 -0
- package/src/plugins/builtin/realized-vol/settings.ts +16 -0
- package/src/plugins/builtin/relative-rotation/client.ts +190 -0
- package/src/plugins/builtin/relative-rotation/headless.ts +95 -0
- package/src/plugins/builtin/relative-rotation/index.tsx +91 -0
- package/src/plugins/builtin/relative-rotation/model.ts +325 -0
- package/src/plugins/builtin/relative-rotation/pane.tsx +385 -0
- package/src/plugins/builtin/research/analyst-headless.ts +200 -0
- package/src/plugins/builtin/research/analyst-model.ts +557 -0
- package/src/plugins/builtin/research/analyst-pane.tsx +319 -0
- package/src/plugins/builtin/research/client.ts +12 -0
- package/src/plugins/builtin/research/corporate-actions-pane.tsx +715 -0
- package/src/plugins/builtin/research/equity-diagnostic-pane.tsx +597 -0
- package/src/plugins/builtin/research/event-model.ts +523 -0
- package/src/plugins/builtin/research/event-sources.ts +72 -0
- package/src/plugins/builtin/research/events-headless.ts +82 -0
- package/src/plugins/builtin/research/headless-schema.ts +48 -0
- package/src/plugins/builtin/research/headless.ts +138 -0
- package/src/plugins/builtin/research/index.tsx +183 -0
- package/src/plugins/builtin/research/relative-valuation-basis.ts +58 -0
- package/src/plugins/builtin/research/relative-valuation-columns.ts +340 -0
- package/src/plugins/builtin/research/relative-valuation-currency.ts +171 -0
- package/src/plugins/builtin/research/relative-valuation-headless.ts +235 -0
- package/src/plugins/builtin/research/relative-valuation-model.ts +212 -0
- package/src/plugins/builtin/research/relative-valuation-pane.tsx +367 -0
- package/src/plugins/builtin/research/relative-valuation-peers.ts +302 -0
- package/src/plugins/builtin/research-search/article.ts +65 -0
- package/src/plugins/builtin/research-search/command-bar-search.ts +175 -0
- package/src/plugins/builtin/research-search/data.ts +116 -0
- package/src/plugins/builtin/research-search/document-view.tsx +74 -0
- package/src/plugins/builtin/research-search/focus-handoff.ts +47 -0
- package/src/plugins/builtin/research-search/index.tsx +87 -0
- package/src/plugins/builtin/research-search/model.ts +266 -0
- package/src/plugins/builtin/research-search/pane.tsx +690 -0
- package/src/plugins/builtin/research-search/saved-view.tsx +172 -0
- package/src/plugins/builtin/research-search/snippet-text.tsx +35 -0
- package/src/plugins/builtin/research-search/snippet.ts +105 -0
- package/src/plugins/builtin/revenue-breakdown/bars.tsx +113 -0
- package/src/plugins/builtin/revenue-breakdown/client.ts +121 -0
- package/src/plugins/builtin/revenue-breakdown/headless.ts +89 -0
- package/src/plugins/builtin/revenue-breakdown/index.tsx +60 -0
- package/src/plugins/builtin/revenue-breakdown/model.ts +157 -0
- package/src/plugins/builtin/revenue-breakdown/pane.tsx +293 -0
- package/src/plugins/builtin/reverse-dcf/client.ts +36 -0
- package/src/plugins/builtin/reverse-dcf/headless.ts +69 -0
- package/src/plugins/builtin/reverse-dcf/index.tsx +23 -0
- package/src/plugins/builtin/reverse-dcf/model.ts +174 -0
- package/src/plugins/builtin/reverse-dcf/pane.tsx +130 -0
- package/src/plugins/builtin/risk-factors/data.ts +135 -0
- package/src/plugins/builtin/risk-factors/headless.ts +82 -0
- package/src/plugins/builtin/risk-factors/index.tsx +93 -0
- package/src/plugins/builtin/risk-factors/pane.tsx +308 -0
- package/src/plugins/builtin/scanner/denied.tsx +20 -0
- package/src/plugins/builtin/scanner/feed.ts +118 -0
- package/src/plugins/builtin/scanner/flow-history.ts +98 -0
- package/src/plugins/builtin/scanner/flow-model.ts +272 -0
- package/src/plugins/builtin/scanner/flow-pane.tsx +260 -0
- package/src/plugins/builtin/scanner/headless.ts +249 -0
- package/src/plugins/builtin/scanner/hilo-bars.tsx +65 -0
- package/src/plugins/builtin/scanner/hilo-model.ts +96 -0
- package/src/plugins/builtin/scanner/hilo-pane.tsx +208 -0
- package/src/plugins/builtin/scanner/index.ts +142 -0
- package/src/plugins/builtin/scanner/live-condition-editor.tsx +222 -0
- package/src/plugins/builtin/scanner/live-feed.ts +168 -0
- package/src/plugins/builtin/scanner/live-headless.ts +114 -0
- package/src/plugins/builtin/scanner/live-model.ts +351 -0
- package/src/plugins/builtin/scanner/live-pane.tsx +677 -0
- package/src/plugins/builtin/scanner/live-track.ts +186 -0
- package/src/plugins/builtin/scanner/lock-note.ts +18 -0
- package/src/plugins/builtin/seasonality/client.ts +76 -0
- package/src/plugins/builtin/seasonality/headless.ts +64 -0
- package/src/plugins/builtin/seasonality/index.tsx +20 -0
- package/src/plugins/builtin/seasonality/model.ts +243 -0
- package/src/plugins/builtin/seasonality/pane.tsx +229 -0
- package/src/plugins/builtin/sec/client.ts +16 -0
- package/src/plugins/builtin/sec/command-bar-search.ts +227 -0
- package/src/plugins/builtin/sec/filing-content.ts +160 -0
- package/src/plugins/builtin/sec/filing-display.tsx +53 -0
- package/src/plugins/builtin/sec/filing-documents.ts +65 -0
- package/src/plugins/builtin/sec/forms.ts +75 -0
- package/src/plugins/builtin/sec/fund-abroad.ts +32 -0
- package/src/plugins/builtin/sec/fund-facts-view.tsx +53 -0
- package/src/plugins/builtin/sec/fund-facts.ts +388 -0
- package/src/plugins/builtin/sec/headless.ts +294 -0
- package/src/plugins/builtin/sec/index.tsx +690 -0
- package/src/plugins/builtin/sec/model.ts +266 -0
- package/src/plugins/builtin/sec/row-summaries.ts +105 -0
- package/src/plugins/builtin/sectors/client.ts +182 -0
- package/src/plugins/builtin/sectors/headless.ts +137 -0
- package/src/plugins/builtin/sectors/index.tsx +454 -0
- package/src/plugins/builtin/sectors/move-bar.tsx +21 -0
- package/src/plugins/builtin/sectors/sector-data.ts +75 -0
- package/src/plugins/builtin/sectors/sector-model.ts +536 -0
- package/src/plugins/builtin/series-inventory.ts +99 -0
- package/src/plugins/builtin/shared/broker-reconnect.ts +190 -0
- package/src/plugins/builtin/shared/cloud-denied.ts +47 -0
- package/src/plugins/builtin/shared/cloud-resource.ts +69 -0
- package/src/plugins/builtin/shared/cloud-upgrade.ts +366 -0
- package/src/plugins/builtin/shared/command-tab.ts +69 -0
- package/src/plugins/builtin/shared/crypto-pair.ts +14 -0
- package/src/plugins/builtin/shared/earnings-calendar.ts +375 -0
- package/src/plugins/builtin/shared/earnings-estimate-basis.ts +71 -0
- package/src/plugins/builtin/shared/earnings-report.ts +108 -0
- package/src/plugins/builtin/shared/filing-year-reader.tsx +123 -0
- package/src/plugins/builtin/shared/fred-points.ts +20 -0
- package/src/plugins/builtin/shared/free-preview.ts +47 -0
- package/src/plugins/builtin/shared/free-routes.ts +24 -0
- package/src/plugins/builtin/shared/futures-session.ts +34 -0
- package/src/plugins/builtin/shared/fx-rate-freshness.ts +123 -0
- package/src/plugins/builtin/shared/headless-market-data.ts +72 -0
- package/src/plugins/builtin/shared/headless-options.ts +54 -0
- package/src/plugins/builtin/shared/history-span.ts +55 -0
- package/src/plugins/builtin/shared/job-posting.ts +129 -0
- package/src/plugins/builtin/shared/locked-rows.tsx +58 -0
- package/src/plugins/builtin/shared/macro-releases.ts +65 -0
- package/src/plugins/builtin/shared/members-menu.tsx +260 -0
- package/src/plugins/builtin/shared/mine-tickers.ts +19 -0
- package/src/plugins/builtin/shared/move-rank.ts +108 -0
- package/src/plugins/builtin/shared/open-description.ts +29 -0
- package/src/plugins/builtin/shared/pane-request.ts +35 -0
- package/src/plugins/builtin/shared/pro-feature-wall.tsx +56 -0
- package/src/plugins/builtin/shared/pro-lock-note.ts +140 -0
- package/src/plugins/builtin/shared/public-pane.ts +9 -0
- package/src/plugins/builtin/shared/report-freshness.ts +148 -0
- package/src/plugins/builtin/shared/research-cells.tsx +102 -0
- package/src/plugins/builtin/shared/research-cloud-session.ts +18 -0
- package/src/plugins/builtin/shared/research-trading.tsx +85 -0
- package/src/plugins/builtin/shared/scanner-capture.ts +98 -0
- package/src/plugins/builtin/shared/series-cache.ts +140 -0
- package/src/plugins/builtin/shared/series-detail-chart.tsx +171 -0
- package/src/plugins/builtin/shared/series-list-detail.tsx +223 -0
- package/src/plugins/builtin/shared/series-warning.ts +5 -0
- package/src/plugins/builtin/shared/stat-transform.ts +94 -0
- package/src/plugins/builtin/shared/ticker-choice.tsx +34 -0
- package/src/plugins/builtin/shared/ticker-request.ts +71 -0
- package/src/plugins/builtin/shared/ticker-surface.ts +149 -0
- package/src/plugins/builtin/shared/treasury-cutoffs.ts +15 -0
- package/src/plugins/builtin/shared/trend.ts +81 -0
- package/src/plugins/builtin/shared/use-quote-board.ts +694 -0
- package/src/plugins/builtin/shared/volatility/index.ts +4 -0
- package/src/plugins/builtin/shared/volatility/live-session.ts +185 -0
- package/src/plugins/builtin/shared/volatility/options.ts +212 -0
- package/src/plugins/builtin/shared/volatility/pricing.ts +217 -0
- package/src/plugins/builtin/shared/volatility/smile.ts +413 -0
- package/src/plugins/builtin/shared/volatility-indices.ts +32 -0
- package/src/plugins/builtin/shared/wall-teaser-catalog.ts +80 -0
- package/src/plugins/builtin/shared/wall-teaser.tsx +192 -0
- package/src/plugins/builtin/shared/wall-view-lifecycle.ts +43 -0
- package/src/plugins/builtin/short-interest/client.ts +48 -0
- package/src/plugins/builtin/short-interest/headless.ts +166 -0
- package/src/plugins/builtin/short-interest/index.tsx +143 -0
- package/src/plugins/builtin/short-interest/model.ts +265 -0
- package/src/plugins/builtin/short-interest/pane.tsx +178 -0
- package/src/plugins/builtin/short-interest/publications-client.ts +82 -0
- package/src/plugins/builtin/short-interest/publications-headless.ts +29 -0
- package/src/plugins/builtin/short-interest/publications-model.ts +50 -0
- package/src/plugins/builtin/short-interest/publications-pane.tsx +66 -0
- package/src/plugins/builtin/short-interest/schedule.ts +140 -0
- package/src/plugins/builtin/short-interest/series.ts +36 -0
- package/src/plugins/builtin/short-interest/surface.tsx +49 -0
- package/src/plugins/builtin/short-interest/types.ts +16 -0
- package/src/plugins/builtin/short-interest/watch-client.ts +122 -0
- package/src/plugins/builtin/short-interest/watch-headless.ts +56 -0
- package/src/plugins/builtin/short-interest/watch-model.ts +214 -0
- package/src/plugins/builtin/short-interest/watch-pane.tsx +173 -0
- package/src/plugins/builtin/short-volume/client.ts +86 -0
- package/src/plugins/builtin/short-volume/headless.ts +31 -0
- package/src/plugins/builtin/short-volume/index.tsx +20 -0
- package/src/plugins/builtin/short-volume/model.ts +53 -0
- package/src/plugins/builtin/short-volume/pane.tsx +108 -0
- package/src/plugins/builtin/short-volume/series.ts +23 -0
- package/src/plugins/builtin/social-mentions/client.ts +93 -0
- package/src/plugins/builtin/social-mentions/headless.ts +33 -0
- package/src/plugins/builtin/social-mentions/index.tsx +24 -0
- package/src/plugins/builtin/social-mentions/lock-note.ts +15 -0
- package/src/plugins/builtin/social-mentions/model.ts +92 -0
- package/src/plugins/builtin/social-mentions/pane.tsx +158 -0
- package/src/plugins/builtin/social-mentions/series.ts +23 -0
- package/src/plugins/builtin/supply-chain/client.ts +113 -0
- package/src/plugins/builtin/supply-chain/disclosure-quote.tsx +21 -0
- package/src/plugins/builtin/supply-chain/evidence.ts +90 -0
- package/src/plugins/builtin/supply-chain/flow-layout.ts +134 -0
- package/src/plugins/builtin/supply-chain/flow.tsx +366 -0
- package/src/plugins/builtin/supply-chain/graph-client.ts +86 -0
- package/src/plugins/builtin/supply-chain/graph-evidence.ts +25 -0
- package/src/plugins/builtin/supply-chain/graph-model.ts +53 -0
- package/src/plugins/builtin/supply-chain/graph-pane.tsx +221 -0
- package/src/plugins/builtin/supply-chain/graph.tsx +167 -0
- package/src/plugins/builtin/supply-chain/headless.ts +185 -0
- package/src/plugins/builtin/supply-chain/index.tsx +26 -0
- package/src/plugins/builtin/supply-chain/model.ts +292 -0
- package/src/plugins/builtin/supply-chain/pane.tsx +373 -0
- package/src/plugins/builtin/supply-chain/row-evidence.tsx +97 -0
- package/src/plugins/builtin/supply-chain/trust.ts +34 -0
- package/src/plugins/builtin/themes/client.ts +39 -0
- package/src/plugins/builtin/themes/headless.ts +129 -0
- package/src/plugins/builtin/themes/model.ts +199 -0
- package/src/plugins/builtin/themes/pane.tsx +166 -0
- package/src/plugins/builtin/thirteenf/api.ts +434 -0
- package/src/plugins/builtin/thirteenf/data.ts +593 -0
- package/src/plugins/builtin/thirteenf/format.ts +56 -0
- package/src/plugins/builtin/thirteenf/headless.ts +927 -0
- package/src/plugins/builtin/thirteenf/index.tsx +94 -0
- package/src/plugins/builtin/thirteenf/model.ts +933 -0
- package/src/plugins/builtin/thirteenf/overlap-pane.tsx +207 -0
- package/src/plugins/builtin/thirteenf/overlap.ts +123 -0
- package/src/plugins/builtin/thirteenf/pane.tsx +781 -0
- package/src/plugins/builtin/thirteenf/report-notes.ts +329 -0
- package/src/plugins/builtin/thirteenf/signals-pane.tsx +153 -0
- package/src/plugins/builtin/thirteenf/signals.ts +74 -0
- package/src/plugins/builtin/thirteenf/table.ts +196 -0
- package/src/plugins/builtin/thirteenf/types.ts +254 -0
- package/src/plugins/builtin/ticker-detail/adr-pair/headless.ts +123 -0
- package/src/plugins/builtin/ticker-detail/adr-pair/model.ts +132 -0
- package/src/plugins/builtin/ticker-detail/adr-pair/tab.tsx +87 -0
- package/src/plugins/builtin/ticker-detail/data-panes/historical-prices.tsx +394 -0
- package/src/plugins/builtin/ticker-detail/data-panes/history-bars.ts +112 -0
- package/src/plugins/builtin/ticker-detail/data-panes/returns-history.ts +178 -0
- package/src/plugins/builtin/ticker-detail/data-panes/returns-model.ts +363 -0
- package/src/plugins/builtin/ticker-detail/data-panes/returns-pane.tsx +324 -0
- package/src/plugins/builtin/ticker-detail/financials/aggregation.ts +322 -0
- package/src/plugins/builtin/ticker-detail/financials/model.ts +643 -0
- package/src/plugins/builtin/ticker-detail/financials/offerings.ts +56 -0
- package/src/plugins/builtin/ticker-detail/financials/pane.tsx +29 -0
- package/src/plugins/builtin/ticker-detail/financials/period-end-history.ts +44 -0
- package/src/plugins/builtin/ticker-detail/financials/ratio-table.tsx +175 -0
- package/src/plugins/builtin/ticker-detail/financials/ratios.ts +830 -0
- package/src/plugins/builtin/ticker-detail/financials/schema.ts +389 -0
- package/src/plugins/builtin/ticker-detail/financials/tab.tsx +592 -0
- package/src/plugins/builtin/ticker-detail/headless-schema.ts +111 -0
- package/src/plugins/builtin/ticker-detail/headless.ts +576 -0
- package/src/plugins/builtin/ticker-detail/index.tsx +248 -0
- package/src/plugins/builtin/ticker-detail/overview/components.tsx +361 -0
- package/src/plugins/builtin/ticker-detail/overview/dividend.ts +60 -0
- package/src/plugins/builtin/ticker-detail/overview/futures-contract.ts +31 -0
- package/src/plugins/builtin/ticker-detail/overview/model.ts +446 -0
- package/src/plugins/builtin/ticker-detail/overview/option-contract.ts +64 -0
- package/src/plugins/builtin/ticker-detail/overview/pane.tsx +60 -0
- package/src/plugins/builtin/ticker-detail/overview/types.ts +40 -0
- package/src/plugins/builtin/ticker-detail/overview-tab.tsx +618 -0
- package/src/plugins/builtin/ticker-detail/pane.tsx +419 -0
- package/src/plugins/builtin/ticker-detail/quote-footer.ts +48 -0
- package/src/plugins/builtin/ticker-detail/quote-monitor/card.tsx +489 -0
- package/src/plugins/builtin/ticker-detail/quote-monitor/index.tsx +319 -0
- package/src/plugins/builtin/ticker-detail/research-tab-keys.tsx +58 -0
- package/src/plugins/builtin/ticker-detail/research-tab-navigation.tsx +14 -0
- package/src/plugins/builtin/ticker-detail/research-tabs.ts +43 -0
- package/src/plugins/builtin/ticker-detail/settings.ts +203 -0
- package/src/plugins/builtin/time-sales/client.ts +84 -0
- package/src/plugins/builtin/time-sales/headless.ts +117 -0
- package/src/plugins/builtin/time-sales/index.tsx +18 -0
- package/src/plugins/builtin/time-sales/model.ts +125 -0
- package/src/plugins/builtin/time-sales/pane.tsx +177 -0
- package/src/plugins/builtin/time-sales/snapshot-client.ts +28 -0
- package/src/plugins/builtin/time-sales/use-tape.ts +58 -0
- package/src/plugins/builtin/time-sales/window.ts +128 -0
- package/src/plugins/builtin/trace-bonds/client.ts +525 -0
- package/src/plugins/builtin/trace-bonds/headless.ts +107 -0
- package/src/plugins/builtin/trace-bonds/index.tsx +35 -0
- package/src/plugins/builtin/trace-bonds/model.ts +117 -0
- package/src/plugins/builtin/trace-bonds/pane.tsx +209 -0
- package/src/plugins/builtin/treasury-auctions/cache.ts +115 -0
- package/src/plugins/builtin/treasury-auctions/client.ts +230 -0
- package/src/plugins/builtin/treasury-auctions/headless.ts +172 -0
- package/src/plugins/builtin/treasury-auctions/index.tsx +88 -0
- package/src/plugins/builtin/treasury-auctions/model.ts +379 -0
- package/src/plugins/builtin/treasury-auctions/pane.tsx +413 -0
- package/src/plugins/builtin/treasury-auctions/types.ts +72 -0
- package/src/plugins/builtin/treasury-daily/client.ts +96 -0
- package/src/plugins/builtin/treasury-daily/headless.ts +69 -0
- package/src/plugins/builtin/treasury-daily/index.tsx +17 -0
- package/src/plugins/builtin/treasury-daily/model.ts +69 -0
- package/src/plugins/builtin/treasury-daily/pane.tsx +140 -0
- package/src/plugins/builtin/vol-surface/charts.tsx +117 -0
- package/src/plugins/builtin/vol-surface/client.ts +270 -0
- package/src/plugins/builtin/vol-surface/evidence.ts +207 -0
- package/src/plugins/builtin/vol-surface/headless.ts +286 -0
- package/src/plugins/builtin/vol-surface/heat-grid.tsx +113 -0
- package/src/plugins/builtin/vol-surface/index.tsx +47 -0
- package/src/plugins/builtin/vol-surface/live.ts +60 -0
- package/src/plugins/builtin/vol-surface/model.ts +661 -0
- package/src/plugins/builtin/vol-surface/pane.tsx +580 -0
- package/src/plugins/builtin/vol-surface/raster.ts +113 -0
- package/src/plugins/builtin/vol-surface/stored.ts +170 -0
- package/src/plugins/builtin/vol-surface/surface.tsx +59 -0
- package/src/plugins/builtin/vol-surface/tables.ts +166 -0
- package/src/plugins/builtin/volatility/chart-model.ts +163 -0
- package/src/plugins/builtin/volatility/charts.tsx +40 -0
- package/src/plugins/builtin/volatility/client.ts +256 -0
- package/src/plugins/builtin/volatility/dvol.ts +46 -0
- package/src/plugins/builtin/volatility/evidence.ts +144 -0
- package/src/plugins/builtin/volatility/headless.ts +78 -0
- package/src/plugins/builtin/volatility/index.tsx +27 -0
- package/src/plugins/builtin/volatility/model.ts +443 -0
- package/src/plugins/builtin/volatility/pane.tsx +254 -0
- package/src/plugins/builtin/volatility/series.ts +119 -0
- package/src/plugins/builtin/world-indices/client.ts +58 -0
- package/src/plugins/builtin/world-indices/footer.ts +25 -0
- package/src/plugins/builtin/world-indices/headless.ts +148 -0
- package/src/plugins/builtin/world-indices/index.tsx +189 -0
- package/src/plugins/builtin/world-indices/indices.ts +63 -0
- package/src/plugins/builtin/world-indices/model.ts +94 -0
- package/src/plugins/builtin/world-indices/table.tsx +105 -0
- package/src/plugins/builtin/world-venue-map/basemap-layer.tsx +161 -0
- package/src/plugins/builtin/world-venue-map/basemap.ts +237 -0
- package/src/plugins/builtin/world-venue-map/chokepoint-chart.ts +40 -0
- package/src/plugins/builtin/world-venue-map/client.ts +45 -0
- package/src/plugins/builtin/world-venue-map/country-labels.ts +78 -0
- package/src/plugins/builtin/world-venue-map/entity-detail.tsx +160 -0
- package/src/plugins/builtin/world-venue-map/entity-table.ts +59 -0
- package/src/plugins/builtin/world-venue-map/evidence.ts +77 -0
- package/src/plugins/builtin/world-venue-map/feed.ts +293 -0
- package/src/plugins/builtin/world-venue-map/geo-draw.tsx +249 -0
- package/src/plugins/builtin/world-venue-map/geo-series.ts +255 -0
- package/src/plugins/builtin/world-venue-map/geo-svg.tsx +448 -0
- package/src/plugins/builtin/world-venue-map/headless.ts +166 -0
- package/src/plugins/builtin/world-venue-map/ids.ts +1 -0
- package/src/plugins/builtin/world-venue-map/index.ts +82 -0
- package/src/plugins/builtin/world-venue-map/layered-pane.tsx +576 -0
- package/src/plugins/builtin/world-venue-map/layers.ts +435 -0
- package/src/plugins/builtin/world-venue-map/map-symbols.ts +220 -0
- package/src/plugins/builtin/world-venue-map/map.tsx +1122 -0
- package/src/plugins/builtin/world-venue-map/model.ts +321 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/index.chunk.ts +202 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/labels.chunk.ts +244 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/world-50m.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/pane.tsx +260 -0
- package/src/plugins/builtin/world-venue-map/use-geo.ts +55 -0
- package/src/plugins/builtin/world-venue-map/venue-header.tsx +43 -0
- package/src/plugins/builtin/world-venue-map/world-outlines.ts +2 -0
- package/src/plugins/builtin/yield-curve/chart.ts +159 -0
- package/src/plugins/builtin/yield-curve/client.ts +25 -0
- package/src/plugins/builtin/yield-curve/curves.ts +225 -0
- package/src/plugins/builtin/yield-curve/forward.ts +102 -0
- package/src/plugins/builtin/yield-curve/headless.ts +287 -0
- package/src/plugins/builtin/yield-curve/history.ts +166 -0
- package/src/plugins/builtin/yield-curve/index.tsx +494 -0
- package/src/plugins/builtin/yield-curve/series.ts +96 -0
- package/src/plugins/builtin/yield-curve/swaps-model.ts +93 -0
- package/src/plugins/builtin/yield-curve/swaps.tsx +99 -0
- package/src/plugins/builtin/yield-curve/treasury-data.ts +73 -0
- package/src/plugins/builtin/yield-curve/world.ts +57 -0
- package/src/plugins/builtin-editorial.ts +126 -0
- package/src/plugins/bundle.ts +200 -0
- package/src/plugins/catalog-backend.ts +37 -0
- package/src/plugins/catalog-browser.ts +344 -0
- package/src/plugins/catalog-manifest.ts +143 -0
- package/src/plugins/catalog-ui.ts +84 -0
- package/src/plugins/catalog.ts +44 -0
- package/src/plugins/compat.ts +225 -0
- package/src/plugins/current-target.ts +30 -0
- package/src/plugins/dependencies.ts +143 -0
- package/src/plugins/event-bus.ts +43 -0
- package/src/plugins/external-runtime.ts +54 -0
- package/src/plugins/extracted-plugins.ts +202 -0
- package/src/plugins/health.ts +21 -0
- package/src/plugins/host-link.ts +422 -0
- package/src/plugins/host-modules.ts +141 -0
- package/src/plugins/host-resolver.ts +100 -0
- package/src/plugins/host-smoke.ts +103 -0
- package/src/plugins/installer.ts +649 -0
- package/src/plugins/loader.ts +580 -0
- package/src/plugins/manager-node.ts +55 -0
- package/src/plugins/marketplace/activation.ts +95 -0
- package/src/plugins/marketplace/deactivation.ts +22 -0
- package/src/plugins/marketplace/feed.ts +92 -0
- package/src/plugins/marketplace/ids.ts +2 -0
- package/src/plugins/marketplace/model.ts +585 -0
- package/src/plugins/marketplace/packs.ts +118 -0
- package/src/plugins/marketplace/store.ts +130 -0
- package/src/plugins/ownership.ts +281 -0
- package/src/plugins/peer-retry.ts +155 -0
- package/src/plugins/plugin-export.ts +24 -0
- package/src/plugins/plugin-functions.ts +54 -0
- package/src/plugins/plugin-icon.ts +61 -0
- package/src/plugins/plugin-names.ts +32 -0
- package/src/plugins/plugin-off.ts +36 -0
- package/src/plugins/plugin-persistence.ts +84 -0
- package/src/plugins/registry/context-menu.ts +36 -0
- package/src/plugins/registry/contributions.ts +159 -0
- package/src/plugins/registry/host-actions.ts +276 -0
- package/src/plugins/registry/index.ts +777 -0
- package/src/plugins/registry/pane-settings.ts +188 -0
- package/src/plugins/registry/plugin-state.ts +135 -0
- package/src/plugins/registry/setup-command.ts +93 -0
- package/src/plugins/registry/shared.ts +28 -0
- package/src/plugins/registry/slots.ts +67 -0
- package/src/plugins/runtime/context.tsx +110 -0
- package/src/plugins/runtime/index.tsx +95 -0
- package/src/plugins/runtime/state.ts +256 -0
- package/src/plugins/seed-notice.ts +20 -0
- package/src/plugins/shortcut-argument.ts +39 -0
- package/src/plugins/team-state.ts +70 -0
- package/src/plugins/web-bundled.ts +33 -0
- package/src/portfolio/allocation.ts +316 -0
- package/src/portfolio/collection-name.ts +62 -0
- package/src/portfolio/column-values.ts +846 -0
- package/src/portfolio/cost-fx.ts +338 -0
- package/src/portfolio/futures-positions.ts +213 -0
- package/src/portfolio/futures-terms.ts +75 -0
- package/src/portfolio/manual-lots.ts +153 -0
- package/src/portfolio/mutations.ts +532 -0
- package/src/portfolio/position-metrics.ts +332 -0
- package/src/portfolio/position-quantity.ts +43 -0
- package/src/portfolio/position-value.ts +40 -0
- package/src/portfolio/suffixed-listings.ts +209 -0
- package/src/portfolio/totals-currency.ts +24 -0
- package/src/portfolio/valuation-basis.ts +89 -0
- package/src/public/__snapshots__/public-api.test.ts.snap +557 -0
- package/src/public/broker.ts +50 -0
- package/src/public/i18n.ts +17 -0
- package/src/public/index.ts +3 -0
- package/src/public/layout.ts +12 -0
- package/src/public/market-data.ts +43 -0
- package/src/public/pane-hooks.ts +72 -0
- package/src/public/quotes.ts +50 -0
- package/src/public/react.ts +130 -0
- package/src/public/remote.ts +23 -0
- package/src/public/test-support.ts +84 -0
- package/src/public/tickers.ts +40 -0
- package/src/public/time-series.ts +61 -0
- package/src/public/utils.ts +112 -0
- package/src/react/assign-ref.ts +10 -0
- package/src/react/async-resource.ts +79 -0
- package/src/react/auto-refresh.ts +107 -0
- package/src/react/input.ts +278 -0
- package/src/react/key-repeat.ts +86 -0
- package/src/react/plugins/plugin-slot.tsx +16 -0
- package/src/react/read-state.ts +104 -0
- package/src/react/ticker-source.ts +32 -0
- package/src/react/use-raf-callback.ts +44 -0
- package/src/react/use-throttled-commit-value.ts +133 -0
- package/src/remote/app-host.tsx +115 -0
- package/src/remote/client.ts +34 -0
- package/src/remote/command-bar.ts +98 -0
- package/src/remote/confirm-change.tsx +86 -0
- package/src/remote/controller-utils.ts +113 -0
- package/src/remote/controller.ts +727 -0
- package/src/remote/endpoint.ts +41 -0
- package/src/remote/form.ts +20 -0
- package/src/remote/json-patch.ts +103 -0
- package/src/remote/layout-helpers.ts +55 -0
- package/src/remote/matching.ts +69 -0
- package/src/remote/pane-screenshot.ts +47 -0
- package/src/remote/resources.ts +235 -0
- package/src/remote/revision.ts +5 -0
- package/src/remote/schema.ts +544 -0
- package/src/remote/semantic-helpers.ts +161 -0
- package/src/remote/semantic-tree.tsx +167 -0
- package/src/remote/server.ts +131 -0
- package/src/remote/types.ts +211 -0
- package/src/remote/watchlist.ts +314 -0
- package/src/renderers/browser/app-services.ts +33 -0
- package/src/renderers/browser/bundled-plugins.ts +91 -0
- package/src/renderers/browser/cloud-transport.ts +111 -0
- package/src/renderers/browser/config-host.ts +146 -0
- package/src/renderers/browser/deeplink-bridge.ts +52 -0
- package/src/renderers/browser/http-proxy-transport.ts +55 -0
- package/src/renderers/browser/main.tsx +142 -0
- package/src/renderers/browser/research-entry.ts +23 -0
- package/src/renderers/browser/ui-host.tsx +51 -0
- package/src/renderers/cloudflare/http-proxy.ts +289 -0
- package/src/renderers/cloudflare/proxy-session.ts +270 -0
- package/src/renderers/cloudflare/worker.ts +145 -0
- package/src/renderers/dom/boot-frame-page.ts +187 -0
- package/src/renderers/dom/boot-frame.ts +237 -0
- package/src/renderers/dom/build-assets.ts +273 -0
- package/src/renderers/dom/data-frames.ts +24 -0
- package/src/renderers/dom/data-table/dom.ts +253 -0
- package/src/renderers/dom/data-table/frozen-column.ts +24 -0
- package/src/renderers/dom/data-table/index.tsx +558 -0
- package/src/renderers/dom/data-table/row.tsx +480 -0
- package/src/renderers/dom/desktop/audio-player.tsx +312 -0
- package/src/renderers/dom/desktop/control-styles.ts +90 -0
- package/src/renderers/dom/desktop/controls.tsx +706 -0
- package/src/renderers/dom/desktop/dialog-actions.tsx +130 -0
- package/src/renderers/dom/desktop/icons.tsx +258 -0
- package/src/renderers/dom/desktop/list-view.tsx +331 -0
- package/src/renderers/dom/desktop/menu.tsx +115 -0
- package/src/renderers/dom/desktop/popover.tsx +249 -0
- package/src/renderers/dom/desktop/query-bar.tsx +350 -0
- package/src/renderers/dom/desktop/select-field.tsx +153 -0
- package/src/renderers/dom/desktop/stack-header.ts +22 -0
- package/src/renderers/dom/dialog-host.tsx +148 -0
- package/src/renderers/dom/dom-host-providers.tsx +64 -0
- package/src/renderers/dom/dom-ui-host.tsx +121 -0
- package/src/renderers/dom/host/ascii-text.ts +51 -0
- package/src/renderers/dom/host/block-glyph-canvas.tsx +118 -0
- package/src/renderers/dom/host/box.tsx +368 -0
- package/src/renderers/dom/host/chart-surface.tsx +310 -0
- package/src/renderers/dom/host/drag-shield.ts +35 -0
- package/src/renderers/dom/host/focus-scope.ts +105 -0
- package/src/renderers/dom/host/hls.chunk.ts +3 -0
- package/src/renderers/dom/host/image-surface.tsx +49 -0
- package/src/renderers/dom/host/input.tsx +403 -0
- package/src/renderers/dom/host/live-frame.ts +66 -0
- package/src/renderers/dom/host/media-surface.tsx +270 -0
- package/src/renderers/dom/host/mouse.ts +183 -0
- package/src/renderers/dom/host/overflow-fade.ts +89 -0
- package/src/renderers/dom/host/resize-rows.ts +111 -0
- package/src/renderers/dom/host/scroll-box.tsx +344 -0
- package/src/renderers/dom/host/size-observer.ts +70 -0
- package/src/renderers/dom/host/sticky-scroll.ts +147 -0
- package/src/renderers/dom/host/style.ts +148 -0
- package/src/renderers/dom/host/surface-3d.tsx +707 -0
- package/src/renderers/dom/host/surface-fit.ts +413 -0
- package/src/renderers/dom/host/tabs.tsx +380 -0
- package/src/renderers/dom/host/text.tsx +174 -0
- package/src/renderers/dom/host/top-surface.ts +127 -0
- package/src/renderers/dom/input-host.tsx +163 -0
- package/src/renderers/dom/key-event.ts +186 -0
- package/src/renderers/dom/native-renderer.ts +114 -0
- package/src/renderers/dom/scrollbar-activity.ts +23 -0
- package/src/renderers/dom/styles.css +1633 -0
- package/src/renderers/dom/test-utils.tsx +79 -0
- package/src/renderers/dom/toast-host.tsx +95 -0
- package/src/renderers/dom/windowed-list.tsx +201 -0
- package/src/renderers/dom/windowed-rows.ts +65 -0
- package/src/renderers/electrobun/bun/application-menu/click.ts +66 -0
- package/src/renderers/electrobun/bun/application-menu/index.ts +137 -0
- package/src/renderers/electrobun/bun/context-menu/click.ts +42 -0
- package/src/renderers/electrobun/bun/context-menu/normalize.ts +62 -0
- package/src/renderers/electrobun/bun/core-capabilities.ts +241 -0
- package/src/renderers/electrobun/bun/desktop/app-badge.ts +37 -0
- package/src/renderers/electrobun/bun/desktop/app-icon.ts +127 -0
- package/src/renderers/electrobun/bun/desktop/app-name.ts +222 -0
- package/src/renderers/electrobun/bun/desktop/backend-requests.ts +119 -0
- package/src/renderers/electrobun/bun/desktop/backend.ts +591 -0
- package/src/renderers/electrobun/bun/desktop/capability-bridge.ts +144 -0
- package/src/renderers/electrobun/bun/desktop/detached-windows.ts +275 -0
- package/src/renderers/electrobun/bun/desktop/host-requests.ts +177 -0
- package/src/renderers/electrobun/bun/desktop/http-fetch.ts +84 -0
- package/src/renderers/electrobun/bun/desktop/http-stream.ts +191 -0
- package/src/renderers/electrobun/bun/desktop/initialization.ts +196 -0
- package/src/renderers/electrobun/bun/desktop/macos-dock-badge.ts +38 -0
- package/src/renderers/electrobun/bun/desktop/macos-dock-icon.ts +52 -0
- package/src/renderers/electrobun/bun/desktop/macos-objc.ts +52 -0
- package/src/renderers/electrobun/bun/desktop/plugin-state.ts +90 -0
- package/src/renderers/electrobun/bun/desktop/relaunch.ts +97 -0
- package/src/renderers/electrobun/bun/desktop/rpc-registry.ts +43 -0
- package/src/renderers/electrobun/bun/desktop/state-broadcaster.ts +119 -0
- package/src/renderers/electrobun/bun/desktop/update.ts +621 -0
- package/src/renderers/electrobun/bun/desktop/workspace/index.ts +256 -0
- package/src/renderers/electrobun/bun/desktop/workspace/requests.ts +74 -0
- package/src/renderers/electrobun/bun/external-plugins.ts +242 -0
- package/src/renderers/electrobun/bun/index.ts +185 -0
- package/src/renderers/electrobun/bun/menu-event.ts +17 -0
- package/src/renderers/electrobun/bun/tui-entry.ts +18 -0
- package/src/renderers/electrobun/bun/window/boot-frame.ts +67 -0
- package/src/renderers/electrobun/bun/window/controls.ts +69 -0
- package/src/renderers/electrobun/bun/window/create.ts +87 -0
- package/src/renderers/electrobun/bun/window/events.ts +49 -0
- package/src/renderers/electrobun/bun/window/focus.ts +42 -0
- package/src/renderers/electrobun/bun/window/frame.ts +51 -0
- package/src/renderers/electrobun/bun/window/remembered-frame.ts +122 -0
- package/src/renderers/electrobun/bun/window/windows-custom-chrome.ts +43 -0
- package/src/renderers/electrobun/bun/window/windows-icons.ts +55 -0
- package/src/renderers/electrobun/bun/window/windows-native.ts +96 -0
- package/src/renderers/electrobun/shared/app-name.ts +17 -0
- package/src/renderers/electrobun/shared/boot-frame.ts +7 -0
- package/src/renderers/electrobun/shared/protocol.ts +362 -0
- package/src/renderers/electrobun/shared/quote-event-batch.ts +103 -0
- package/src/renderers/electrobun/shared/rpc-codec.ts +94 -0
- package/src/renderers/electrobun/view/app-badge-host.ts +17 -0
- package/src/renderers/electrobun/view/app-services.ts +38 -0
- package/src/renderers/electrobun/view/backend-rpc.ts +229 -0
- package/src/renderers/electrobun/view/broker-remote-client.ts +157 -0
- package/src/renderers/electrobun/view/capability-stream-client.ts +31 -0
- package/src/renderers/electrobun/view/capability-subscription.ts +50 -0
- package/src/renderers/electrobun/view/cli-pane-shot-entry.tsx +546 -0
- package/src/renderers/electrobun/view/cli-pane-shot-frame.tsx +179 -0
- package/src/renderers/electrobun/view/cli-pane-shot-health.ts +15 -0
- package/src/renderers/electrobun/view/config-host.ts +38 -0
- package/src/renderers/electrobun/view/context-menu.ts +147 -0
- package/src/renderers/electrobun/view/desktop/window/bridge.ts +68 -0
- package/src/renderers/electrobun/view/desktop/window/snapshot.ts +60 -0
- package/src/renderers/electrobun/view/external-plugins.ts +88 -0
- package/src/renderers/electrobun/view/fatal-screen.tsx +76 -0
- package/src/renderers/electrobun/view/host/native.ts +33 -0
- package/src/renderers/electrobun/view/host/window-move.ts +28 -0
- package/src/renderers/electrobun/view/http-fetch.ts +199 -0
- package/src/renderers/electrobun/view/main.tsx +286 -0
- package/src/renderers/electrobun/view/native-stubs/backend-rpc.ts +34 -0
- package/src/renderers/electrobun/view/news-source.ts +44 -0
- package/src/renderers/electrobun/view/remote/asset-data-client.ts +156 -0
- package/src/renderers/electrobun/view/remote/backend-quote-subscription.ts +127 -0
- package/src/renderers/electrobun/view/remote/capability-invoker.ts +57 -0
- package/src/renderers/electrobun/view/remote/connection-health.ts +31 -0
- package/src/renderers/electrobun/view/remote/persistence.ts +149 -0
- package/src/renderers/electrobun/view/remote/quote-subscription-registry.ts +74 -0
- package/src/renderers/electrobun/view/remote/ticker-repository.ts +26 -0
- package/src/renderers/electrobun/view/renderer-window-error.ts +18 -0
- package/src/renderers/electrobun/view/rpc-timeout.ts +70 -0
- package/src/renderers/electrobun/view/screenshot-watermark.ts +105 -0
- package/src/renderers/electrobun/view/ui-host.tsx +80 -0
- package/src/renderers/electrobun/view/update-host.ts +62 -0
- package/src/renderers/electrobun/view/window-fullscreen.ts +57 -0
- package/src/renderers/opentui/browser-open.ts +88 -0
- package/src/renderers/opentui/chart-surface.tsx +152 -0
- package/src/renderers/opentui/dialog-host.tsx +229 -0
- package/src/renderers/opentui/frame-capture.ts +33 -0
- package/src/renderers/opentui/host.tsx +280 -0
- package/src/renderers/opentui/image/loader.ts +116 -0
- package/src/renderers/opentui/image/surface.tsx +107 -0
- package/src/renderers/opentui/input-host.tsx +41 -0
- package/src/renderers/opentui/interaction-performance.ts +214 -0
- package/src/renderers/opentui/kitty-services.ts +15 -0
- package/src/renderers/opentui/native-smoke.ts +10 -0
- package/src/renderers/opentui/native-surface.ts +176 -0
- package/src/renderers/opentui/pane-image/glyphs-license.txt +107 -0
- package/src/renderers/opentui/pane-image/glyphs.json +1 -0
- package/src/renderers/opentui/pane-image/index.ts +108 -0
- package/src/renderers/opentui/pane-image/raster.ts +428 -0
- package/src/renderers/opentui/render-lib.ts +253 -0
- package/src/renderers/opentui/render-timing-smoke.ts +20 -0
- package/src/renderers/opentui/scrollbox-layout.ts +35 -0
- package/src/renderers/opentui/start.tsx +186 -0
- package/src/renderers/opentui/terminal-input-reset.ts +25 -0
- package/src/renderers/opentui/terminal-media.ts +234 -0
- package/src/renderers/opentui/test-utils.tsx +310 -0
- package/src/renderers/opentui/toast-host.tsx +129 -0
- package/src/renderers/opentui/ui-host.tsx +271 -0
- package/src/renderers/share/chart.ts +74 -0
- package/src/renderers/share/layout-view.tsx +133 -0
- package/src/renderers/share/main.tsx +110 -0
- package/src/renderers/share/styles.css +83 -0
- package/src/renderers/share/view.tsx +159 -0
- package/src/series/capability.ts +76 -0
- package/src/series/csv.ts +160 -0
- package/src/series/files.ts +113 -0
- package/src/series/registry.ts +224 -0
- package/src/series/resolve.ts +227 -0
- package/src/series/standalone.ts +77 -0
- package/src/series/types.ts +214 -0
- package/src/series/validate.ts +215 -0
- package/src/shares/api.ts +150 -0
- package/src/shares/bug-report-dialog.tsx +162 -0
- package/src/shares/bug-report-flow.tsx +81 -0
- package/src/shares/bug-report.ts +42 -0
- package/src/shares/capture-flow.ts +20 -0
- package/src/shares/capture-preview.tsx +129 -0
- package/src/shares/chat.ts +23 -0
- package/src/shares/flow.tsx +98 -0
- package/src/shares/location.ts +40 -0
- package/src/shares/open.ts +26 -0
- package/src/shares/pane-image.ts +166 -0
- package/src/shares/pane.ts +60 -0
- package/src/shares/payload.ts +206 -0
- package/src/shares/personal-pane.ts +86 -0
- package/src/shares/portable-layout.ts +734 -0
- package/src/shares/prepare.ts +20 -0
- package/src/shares/ready.ts +42 -0
- package/src/shares/test-harness.ts +62 -0
- package/src/sources/gloomberb-cloud/batched-lookups.ts +73 -0
- package/src/sources/gloomberb-cloud/fred-series.ts +202 -0
- package/src/sources/gloomberb-cloud/index.ts +986 -0
- package/src/sources/gloomberb-cloud/news.ts +170 -0
- package/src/sources/gloomberb-cloud/normalizers.ts +464 -0
- package/src/sources/gloomberb-cloud/perpetuals.ts +316 -0
- package/src/sources/history-coverage.ts +56 -0
- package/src/sources/history-omitted.ts +34 -0
- package/src/sources/history-result.ts +88 -0
- package/src/sources/history-retention.ts +177 -0
- package/src/sources/listing-symbols.ts +206 -0
- package/src/sources/listing-target.ts +45 -0
- package/src/sources/provider-errors.ts +170 -0
- package/src/sources/provider-router/batches.ts +233 -0
- package/src/sources/provider-router/brokers.ts +104 -0
- package/src/sources/provider-router/cache.ts +229 -0
- package/src/sources/provider-router/cached-routes.ts +261 -0
- package/src/sources/provider-router/connection-health.ts +48 -0
- package/src/sources/provider-router/financial-routes.ts +383 -0
- package/src/sources/provider-router/financials.ts +615 -0
- package/src/sources/provider-router/history.ts +973 -0
- package/src/sources/provider-router/index.ts +710 -0
- package/src/sources/provider-router/news.ts +51 -0
- package/src/sources/provider-router/primary.ts +228 -0
- package/src/sources/provider-router/quote-route.ts +70 -0
- package/src/sources/provider-router/realtime-access.ts +64 -0
- package/src/sources/provider-router/route-types.ts +34 -0
- package/src/sources/provider-router/routing.ts +44 -0
- package/src/sources/provider-router/search.ts +272 -0
- package/src/sources/provider-router/sources.ts +55 -0
- package/src/sources/provider-router/statement-history.ts +15 -0
- package/src/sources/provider-router/streaming.ts +359 -0
- package/src/sources/provider-router/supplemental.ts +53 -0
- package/src/sources/provider-router/test-support.ts +47 -0
- package/src/sources/sec-edgar/acceptance-time.ts +11 -0
- package/src/sources/sec-edgar/content.ts +207 -0
- package/src/sources/sec-edgar/fourth-quarter.ts +179 -0
- package/src/sources/sec-edgar/identity.ts +36 -0
- package/src/sources/sec-edgar.ts +890 -0
- package/src/sources/sec-registrant.ts +75 -0
- package/src/state/app/activity.ts +216 -0
- package/src/state/app/bootstrap.ts +418 -0
- package/src/state/app/context/index.tsx +656 -0
- package/src/state/app/input-capture.ts +12 -0
- package/src/state/app/tab-cursor.ts +222 -0
- package/src/state/config-save-scheduler.ts +38 -0
- package/src/state/hooks/inline-ticker-failures.ts +100 -0
- package/src/state/hooks/inline-tickers.ts +545 -0
- package/src/state/hooks/live-streaming.ts +60 -0
- package/src/state/hooks/live-ticker-financials.ts +171 -0
- package/src/state/hooks/pane-ticker.ts +58 -0
- package/src/state/hooks/quote-streaming.ts +326 -0
- package/src/state/hooks/session-snapshot.ts +101 -0
- package/src/state/pane-scroll-registry.tsx +299 -0
- package/src/state/pane-table-export-registry.ts +50 -0
- package/src/state/persist-scheduler.ts +123 -0
- package/src/state/ticker-refresh-queue.ts +89 -0
- package/src/sync/auth-transition.ts +32 -0
- package/src/sync/baseline.ts +43 -0
- package/src/sync/controller.ts +574 -0
- package/src/sync/core-contributors.ts +1491 -0
- package/src/sync/local-only.ts +121 -0
- package/src/sync/profile-analytics.ts +42 -0
- package/src/sync/react.ts +89 -0
- package/src/sync/types.ts +142 -0
- package/src/team/collections-sync.ts +235 -0
- package/src/team/collections.ts +369 -0
- package/src/team/model.ts +210 -0
- package/src/team/pane-request.ts +30 -0
- package/src/team/store.ts +324 -0
- package/src/telemetry/attention-counts.ts +170 -0
- package/src/telemetry/benign-window-error.ts +7 -0
- package/src/telemetry/crash-reports-dom.ts +79 -0
- package/src/telemetry/crash-reports-node.ts +173 -0
- package/src/telemetry/crash-reports.ts +373 -0
- package/src/telemetry/live-config.ts +26 -0
- package/src/telemetry/update-failures-node.ts +59 -0
- package/src/telemetry/update-failures.ts +307 -0
- package/src/telemetry/usage-counts-dom.ts +22 -0
- package/src/telemetry/usage-counts.ts +393 -0
- package/src/test-support/app-store.ts +21 -0
- package/src/test-support/broker.ts +81 -0
- package/src/test-support/builtin-panes.ts +31 -0
- package/src/test-support/cli-context.ts +37 -0
- package/src/test-support/cloud-api.ts +85 -0
- package/src/test-support/config-store.ts +31 -0
- package/src/test-support/console.ts +40 -0
- package/src/test-support/daily-nav.ts +25 -0
- package/src/test-support/data-provider.ts +85 -0
- package/src/test-support/headless.ts +32 -0
- package/src/test-support/margin-account.ts +108 -0
- package/src/test-support/market-session.ts +12 -0
- package/src/test-support/moved-symbols.ts +64 -0
- package/src/test-support/network-guard.ts +35 -0
- package/src/test-support/news.ts +21 -0
- package/src/test-support/pane.tsx +72 -0
- package/src/test-support/plugin-persistence.ts +112 -0
- package/src/test-support/plugin-runtime.ts +145 -0
- package/src/test-support/quote-store.ts +49 -0
- package/src/test-support/renderer-host.ts +10 -0
- package/src/test-support/rpc-loopback.ts +26 -0
- package/src/test-support/shell-pane-keys.tsx +36 -0
- package/src/test-support/temp-db.ts +19 -0
- package/src/test-support/ticker.ts +15 -0
- package/src/test-support/time-series.ts +27 -0
- package/src/theme/color-utils.ts +126 -0
- package/src/theme/colors.ts +311 -0
- package/src/theme/font-scale.ts +71 -0
- package/src/theme/heat-colors.ts +455 -0
- package/src/theme/series-colors.ts +46 -0
- package/src/theme/theme-context.tsx +44 -0
- package/src/theme/themes.ts +812 -0
- package/src/theme/ui-tokens.ts +107 -0
- package/src/tickers/batched-lookups.ts +186 -0
- package/src/tickers/company-name-listing.ts +276 -0
- package/src/tickers/company-name.ts +190 -0
- package/src/tickers/index-roots.ts +47 -0
- package/src/tickers/instrument-coverage.ts +112 -0
- package/src/tickers/instrument-kind.ts +165 -0
- package/src/tickers/instrument-label.ts +15 -0
- package/src/tickers/list.ts +36 -0
- package/src/tickers/listing-fate.ts +331 -0
- package/src/tickers/listing-name.ts +34 -0
- package/src/tickers/listing-venues.ts +196 -0
- package/src/tickers/metadata.ts +74 -0
- package/src/tickers/open-target.ts +183 -0
- package/src/tickers/perpetual-listing.ts +154 -0
- package/src/tickers/prediction-listing.ts +26 -0
- package/src/tickers/search/asset-classes.ts +106 -0
- package/src/tickers/search/bare-symbol.ts +36 -0
- package/src/tickers/search/home-listing.ts +75 -0
- package/src/tickers/search/identity.ts +19 -0
- package/src/tickers/search/index.ts +977 -0
- package/src/tickers/search/ranking.ts +1002 -0
- package/src/tickers/search/result.ts +27 -0
- package/src/tickers/search/types.ts +63 -0
- package/src/tickers/search/upsert.ts +156 -0
- package/src/tickers/selection.ts +21 -0
- package/src/tickers/starter-symbols.ts +8 -0
- package/src/tickers/terminal-codes.ts +455 -0
- package/src/tickers/ticker-changes.ts +301 -0
- package/src/tickers/tokenizer.ts +37 -0
- package/src/tickers/us-listing.ts +35 -0
- package/src/time-series/alignment.ts +173 -0
- package/src/time-series/bar-aggregation.ts +243 -0
- package/src/time-series/bar-spacing.ts +19 -0
- package/src/time-series/base-series.ts +315 -0
- package/src/time-series/chart-bounds.ts +349 -0
- package/src/time-series/chart-data.ts +329 -0
- package/src/time-series/chart-seed.ts +142 -0
- package/src/time-series/daily-valuation.ts +62 -0
- package/src/time-series/date-window.ts +41 -0
- package/src/time-series/economic.ts +92 -0
- package/src/time-series/field-catalog.ts +318 -0
- package/src/time-series/financial-period-coverage.ts +59 -0
- package/src/time-series/forward-valuation.ts +285 -0
- package/src/time-series/fundamentals.ts +1232 -0
- package/src/time-series/history-acquisition.ts +499 -0
- package/src/time-series/history-quality.ts +68 -0
- package/src/time-series/history-window.ts +21 -0
- package/src/time-series/hooks.ts +88 -0
- package/src/time-series/ice-credit.ts +54 -0
- package/src/time-series/leverage.ts +100 -0
- package/src/time-series/live-bars.ts +428 -0
- package/src/time-series/live-quotes.ts +234 -0
- package/src/time-series/market-resolution.ts +55 -0
- package/src/time-series/market.ts +177 -0
- package/src/time-series/parsed-history-cache.ts +79 -0
- package/src/time-series/price-comparison.ts +318 -0
- package/src/time-series/price-units.ts +139 -0
- package/src/time-series/range.ts +29 -0
- package/src/time-series/reporting-currency.ts +37 -0
- package/src/time-series/reporting.ts +134 -0
- package/src/time-series/resolution.ts +554 -0
- package/src/time-series/resolve-context.ts +161 -0
- package/src/time-series/resolve.ts +1138 -0
- package/src/time-series/series-name.ts +38 -0
- package/src/time-series/series-presentation.ts +242 -0
- package/src/time-series/session-bar.ts +138 -0
- package/src/time-series/spec.ts +557 -0
- package/src/time-series/studies.ts +1622 -0
- package/src/time-series/tail-reconcile.ts +121 -0
- package/src/time-series/trader-studies.ts +188 -0
- package/src/time-series/transforms.ts +174 -0
- package/src/time-series/types.ts +325 -0
- package/src/time-series/use-chart-resolution.ts +549 -0
- package/src/time-series/valuation-currency.ts +48 -0
- package/src/time-series/valuation-price.ts +81 -0
- package/src/time-series/valuation-releases.ts +39 -0
- package/src/types/broker.ts +237 -0
- package/src/types/capability-route-source.ts +25 -0
- package/src/types/config.ts +1046 -0
- package/src/types/context-menu.ts +101 -0
- package/src/types/data-provider.ts +355 -0
- package/src/types/desktop-deeplink.ts +8 -0
- package/src/types/desktop-menu.ts +16 -0
- package/src/types/desktop-window.ts +39 -0
- package/src/types/exchange-rate.ts +19 -0
- package/src/types/financials.ts +1077 -0
- package/src/types/headless.ts +764 -0
- package/src/types/instrument.ts +90 -0
- package/src/types/issuer-listings.ts +28 -0
- package/src/types/news-source.ts +8 -0
- package/src/types/persistence.ts +22 -0
- package/src/types/plugin.ts +1151 -0
- package/src/types/price-history.ts +52 -0
- package/src/types/ticker-changes.ts +45 -0
- package/src/types/ticker.ts +126 -0
- package/src/types/trading.ts +253 -0
- package/src/ui/ascii-font.ts +97 -0
- package/src/ui/context-menu.tsx +481 -0
- package/src/ui/dialog-bridge.tsx +50 -0
- package/src/ui/dialog-context.ts +24 -0
- package/src/ui/dialog-stack.ts +126 -0
- package/src/ui/dialog.tsx +98 -0
- package/src/ui/host.tsx +827 -0
- package/src/ui/index.tsx +313 -0
- package/src/ui/live-resize.ts +91 -0
- package/src/ui/live-stretch.ts +153 -0
- package/src/ui/measured-cells.ts +64 -0
- package/src/ui/pointer-drag.ts +12 -0
- package/src/ui/qr.ts +84 -0
- package/src/ui/resize-settle.ts +128 -0
- package/src/ui/scroll-box-axis.ts +26 -0
- package/src/ui/sticky-scroll.ts +7 -0
- package/src/ui/toast.tsx +147 -0
- package/src/updater/channel.ts +51 -0
- package/src/updater/command-names.ts +180 -0
- package/src/updater/failure.ts +163 -0
- package/src/updater/github-releases.ts +142 -0
- package/src/updater/index.ts +677 -0
- package/src/utils/asset-category.ts +20 -0
- package/src/utils/async-deadline.ts +81 -0
- package/src/utils/back-navigation.ts +52 -0
- package/src/utils/base-currency.ts +108 -0
- package/src/utils/basis-points.ts +17 -0
- package/src/utils/broker-instances.ts +47 -0
- package/src/utils/calendar-date.ts +163 -0
- package/src/utils/cash-runway.ts +241 -0
- package/src/utils/central-banks.ts +118 -0
- package/src/utils/cli-output.ts +646 -0
- package/src/utils/concurrency.ts +25 -0
- package/src/utils/contract-month.ts +16 -0
- package/src/utils/crypto-pair.ts +119 -0
- package/src/utils/csv.ts +54 -0
- package/src/utils/currency-names.ts +128 -0
- package/src/utils/currency-pair.ts +112 -0
- package/src/utils/currency-units.ts +255 -0
- package/src/utils/datetime-format.ts +174 -0
- package/src/utils/debug-log.ts +201 -0
- package/src/utils/decimal-comma.ts +238 -0
- package/src/utils/declared-dividends.ts +39 -0
- package/src/utils/depositary-receipt.ts +70 -0
- package/src/utils/display-number.ts +63 -0
- package/src/utils/dividend-cash.ts +48 -0
- package/src/utils/dom-screenshot-css.ts +265 -0
- package/src/utils/dom-screenshot-rasters.ts +278 -0
- package/src/utils/dom-screenshot.ts +860 -0
- package/src/utils/double-escape-close.ts +82 -0
- package/src/utils/errors.ts +4 -0
- package/src/utils/exchange-announcements.ts +71 -0
- package/src/utils/exchange-notation.generated.ts +360 -0
- package/src/utils/exchange-rate-snapshot.ts +82 -0
- package/src/utils/exchanges.ts +214 -0
- package/src/utils/external-url.ts +24 -0
- package/src/utils/financial-statements.ts +342 -0
- package/src/utils/fire-and-forget.ts +24 -0
- package/src/utils/fiscal-period.ts +47 -0
- package/src/utils/format.ts +446 -0
- package/src/utils/forward-dividend.ts +216 -0
- package/src/utils/fundamentals.ts +269 -0
- package/src/utils/futures-generic.ts +221 -0
- package/src/utils/fuzzy-search.ts +105 -0
- package/src/utils/fx-market-hours.ts +95 -0
- package/src/utils/fx-status.ts +47 -0
- package/src/utils/guards.ts +62 -0
- package/src/utils/hash.ts +23 -0
- package/src/utils/html-entities.ts +45 -0
- package/src/utils/http-proxy-response.ts +257 -0
- package/src/utils/http-transport.ts +31 -0
- package/src/utils/income-statement.ts +46 -0
- package/src/utils/inline-content-tokenizer.ts +116 -0
- package/src/utils/instrument-identity.ts +72 -0
- package/src/utils/keyboard.ts +31 -0
- package/src/utils/latest-financial-period.ts +34 -0
- package/src/utils/link-tokenizer.ts +93 -0
- package/src/utils/linux-libc.ts +54 -0
- package/src/utils/local-utc-offset.ts +39 -0
- package/src/utils/log-failure.ts +31 -0
- package/src/utils/main-thread-stall.ts +64 -0
- package/src/utils/markdown.ts +180 -0
- package/src/utils/market-capitalization.ts +184 -0
- package/src/utils/math.ts +12 -0
- package/src/utils/max-drawdown.ts +64 -0
- package/src/utils/network-failure.ts +86 -0
- package/src/utils/object-version.ts +17 -0
- package/src/utils/one-shot.ts +73 -0
- package/src/utils/option-expiry.ts +321 -0
- package/src/utils/options.ts +170 -0
- package/src/utils/perf-marks.ts +96 -0
- package/src/utils/platform.ts +34 -0
- package/src/utils/plugin-proxy-hosts.json +23 -0
- package/src/utils/plugin-proxy-hosts.ts +28 -0
- package/src/utils/price-earnings.ts +86 -0
- package/src/utils/price-history-integrity.ts +127 -0
- package/src/utils/price-history.ts +528 -0
- package/src/utils/price-window.ts +131 -0
- package/src/utils/release-date.ts +47 -0
- package/src/utils/reported-money.ts +35 -0
- package/src/utils/rpc-timeout-error.ts +31 -0
- package/src/utils/save-text-file.ts +36 -0
- package/src/utils/screenshot-watermark.ts +27 -0
- package/src/utils/search-focus-navigation.ts +24 -0
- package/src/utils/sec-eps-basis.ts +294 -0
- package/src/utils/sec-filings.ts +245 -0
- package/src/utils/sec.ts +258 -0
- package/src/utils/selection-clipboard.ts +99 -0
- package/src/utils/semver.ts +108 -0
- package/src/utils/shortcut-labels.ts +42 -0
- package/src/utils/slugify.ts +4 -0
- package/src/utils/sort-values.ts +78 -0
- package/src/utils/statement-gaps.ts +94 -0
- package/src/utils/text-wrap.ts +107 -0
- package/src/utils/throttled-fetch.ts +253 -0
- package/src/utils/timestamp.ts +54 -0
- package/src/utils/trailing-dividend.ts +130 -0
- package/src/utils/trailing-eps.ts +67 -0
- package/src/utils/typed-text.ts +21 -0
- package/src/utils/typo-distance.ts +22 -0
- package/src/utils/url.ts +12 -0
- package/src/utils/utc-time.ts +183 -0
- package/src/utils/zoned-date-time.ts +146 -0
- package/src/version.ts +9 -0
|
@@ -0,0 +1,1651 @@
|
|
|
1
|
+
import { logFailure } from "../../utils/log-failure";
|
|
2
|
+
import { formatShortDate, parseDisplayDate } from "../../utils/datetime-format";
|
|
3
|
+
import { formatReportedMoney } from "../../utils/reported-money";
|
|
4
|
+
import {
|
|
5
|
+
appTtmRate, computedEnterpriseValueNote, convertedPriceEarningsNote, enterpriseValueLabel, enterpriseValueReconciliationNote, epsConversionNote,
|
|
6
|
+
fundamentalsCurrency, reportedEnterpriseValue, ttmAtAppRate, ttmConversionNote,
|
|
7
|
+
} from "../../utils/fundamentals";
|
|
8
|
+
import { latestFinancialPeriod } from "../../utils/latest-financial-period";
|
|
9
|
+
import { burnsCash, cashRunway, SHORT_RUNWAY_HISTORY, formatRunwayMonths, offeringNote, offeringsAfter, runwayMethod, type CashRunway, type OfferingFiling, type RunwayEstimate } from "../../utils/cash-runway";
|
|
10
|
+
import { exportedFundamentals, formatPriceEarnings, NOT_MEANINGFUL, priceEarningsOnEarnings } from "../../utils/price-earnings";
|
|
11
|
+
import { describeFundamentalMarketCap, marketCapBasisNote, selectMarketCapitalization, viewMarketCapitalization } from "../../utils/market-capitalization";
|
|
12
|
+
import {
|
|
13
|
+
formatCompact,
|
|
14
|
+
formatCurrency,
|
|
15
|
+
formatCurrencyCode,
|
|
16
|
+
formatNumber,
|
|
17
|
+
formatPercent,
|
|
18
|
+
formatPercentRaw,
|
|
19
|
+
} from "../../utils/format";
|
|
20
|
+
import { formatMarketCostWithCurrency, formatMarketPriceWithCurrency, formatMarketQuantity, quoteFormatOptions, withCurrencyMinorDigits, type MarketFormatOptions } from "../../market-data/market/format";
|
|
21
|
+
import {
|
|
22
|
+
cliStyles,
|
|
23
|
+
cliTerminalWidth,
|
|
24
|
+
colorBySign,
|
|
25
|
+
renderSection,
|
|
26
|
+
renderStats,
|
|
27
|
+
wrapText,
|
|
28
|
+
type CliStatEntry,
|
|
29
|
+
} from "../../utils/cli-output";
|
|
30
|
+
import {
|
|
31
|
+
EXTENDED_SESSION_LABELS,
|
|
32
|
+
exchangeShortName,
|
|
33
|
+
getExtendedSessionDisplay,
|
|
34
|
+
getQuoteSessionFields,
|
|
35
|
+
getRegularSessionDisplay,
|
|
36
|
+
quoteBookSessionLabel,
|
|
37
|
+
quoteHeadlineTime,
|
|
38
|
+
quoteMarketStateLabel,
|
|
39
|
+
} from "../../market-data/market/status";
|
|
40
|
+
import type { FuturesContractTermsPayload } from "../../api-client/futures-curve";
|
|
41
|
+
import { changeBasisJson, quoteChangeBasis, quotePreviousCloseDate, quoteSettleText } from "../../market-data/market/change-basis";
|
|
42
|
+
import {
|
|
43
|
+
futuresContractLines, futuresPricePer, isFuturesInstrument, loadFuturesContractTerms, loadUsdPerMmbtu, usdPerMmbtuText, type UsdPerMmbtu,
|
|
44
|
+
} from "../../market-data/futures-contract";
|
|
45
|
+
import { currencyCodeLabel, heldCurrencyUnit } from "../../utils/currency-units";
|
|
46
|
+
import { quotedFxPair } from "../../utils/currency-pair";
|
|
47
|
+
import type { AppConfig } from "../../types/config";
|
|
48
|
+
import type { CompanyProfile, DeclaredDividendAction, FinancialStatement, Quote, TickerFinancials } from "../../types/financials";
|
|
49
|
+
import { atRegularSessionPrice, regularSessionValuationPrice } from "../../market-data/quotes/regular-session-valuation";
|
|
50
|
+
import { computeTickerPriceReturns } from "../../market-data/ticker-price-returns";
|
|
51
|
+
import { instrumentTypeLabel, resolveTickerInstrumentKind } from "../../tickers/instrument-kind";
|
|
52
|
+
import { INDEX_POINTS_LABEL, isIndexLevel, reportedQuoteVolume } from "../../market-data/market/index-level";
|
|
53
|
+
import type { SecFilingItem } from "../../types/data-provider";
|
|
54
|
+
import type { NewsArticle } from "../../news/types";
|
|
55
|
+
import type { TickerRecord } from "../../types/ticker";
|
|
56
|
+
import type { CliCommandContext } from "../../types/plugin";
|
|
57
|
+
import { getPortfolioPositionMetrics, getPortfolioQuoteDisplay, lotCostFxRate, resolvePortfolioMarketValue, resolvePortfolioPositionPnl } from "../../portfolio/position-metrics";
|
|
58
|
+
import { isFuturesTicker } from "../../portfolio/futures-positions";
|
|
59
|
+
import { createBaseConverter, type BaseConverter } from "../base-converter";
|
|
60
|
+
import { formatFxRate } from "../fx-pair";
|
|
61
|
+
import { initMarketData, withMarketData } from "../context";
|
|
62
|
+
import { fail } from "../errors";
|
|
63
|
+
import type { MarketContext } from "../types";
|
|
64
|
+
import {
|
|
65
|
+
formatBidAsk,
|
|
66
|
+
formatFractionPercentCell,
|
|
67
|
+
formatPriceRange,
|
|
68
|
+
formatPortfolioNames,
|
|
69
|
+
formatSignedCurrency,
|
|
70
|
+
formatTimestamp,
|
|
71
|
+
formatWatchlistNames,
|
|
72
|
+
quoteChangeText,
|
|
73
|
+
} from "../helpers";
|
|
74
|
+
import { NotesFiles } from "../../plugins/builtin/notes/files";
|
|
75
|
+
import { isKnownNonUsListing, secFilingItemCodes, US_FUND_FACTS_ONLY } from "../../utils/sec";
|
|
76
|
+
import { currentReportItemsLabel, hiddenFilingsNote, loadLatestFilings, type HiddenFilings } from "../../utils/sec-filings";
|
|
77
|
+
import { canonicalExchange, exchangeLabel, isKnownExchangeCode, isUsListingExchange } from "../../utils/exchanges";
|
|
78
|
+
import {
|
|
79
|
+
failIfNotTraded, failMovedSymbol, ListingArgError, listingChoiceNotes, listingFateLoader, listingIdentity, loadBareVenues,
|
|
80
|
+
resolveCliListing, type CliListing, type ListingDataRequest,
|
|
81
|
+
} from "../listing-arg";
|
|
82
|
+
import { movedAwayChange } from "../../tickers/ticker-changes";
|
|
83
|
+
import { companyMemberships, loadCompanyMemberships, type CompanyMemberships, type ListMembership } from "../issuer-membership";
|
|
84
|
+
import { isNotATickerMessage } from "../not-a-ticker";
|
|
85
|
+
import { sharesOutstandingInReceipts } from "../../utils/depositary-receipt";
|
|
86
|
+
import { depositaryPairText, isReceiptSide, listingDepositaryPair } from "../../market-data/depositary-pair";
|
|
87
|
+
import { cliFreshnessFooter } from "../result";
|
|
88
|
+
import { providerMissReason } from "../../sources/provider-errors";
|
|
89
|
+
import { exportEntriesTable, reportFooterLines, type CliReportTables } from "../report-tables";
|
|
90
|
+
import type { ReportFreshness } from "../pane-functions/freshness";
|
|
91
|
+
import { fundamentalsFreshness, quotesFreshness } from "../freshness";
|
|
92
|
+
import { distributionHistory, forwardDividendBasis, forwardDividendMayHaveLapsed, lapsedDividend, noCurrentDividend, TRAILING_DIVIDEND_BASIS, type DistributionHistory, type DividendLapse } from "../../utils/forward-dividend";
|
|
93
|
+
import { declaredDividends } from "../../utils/declared-dividends";
|
|
94
|
+
import { historyTrailingDividendYield, measuresTrailingYield } from "../../market-data/quotes/live-valuation";
|
|
95
|
+
import { notTheCoinNote } from "./crypto-hints";
|
|
96
|
+
import { loadOfferingFilings, loadStatementFilings, resultsReleaseText, statementPeriodText, type StatementFilingsReport } from "../statement-filings";
|
|
97
|
+
import type { BankFiguresPayload } from "../../api-client/bank-figures";
|
|
98
|
+
import { bankSection } from "../bank-section";
|
|
99
|
+
import type { FundBondFacts } from "../../api-client/fund-facts";
|
|
100
|
+
import { bondFigures, fetchFundBondFacts, NOT_SEC_YIELD } from "../../market-data/bond-funds";
|
|
101
|
+
import { taxEquivalentLines, type TaxEquivalentAnalysis } from "../../market-data/tax-equivalent";
|
|
102
|
+
import { isRoundTheClockCoin } from "../../utils/crypto-pair";
|
|
103
|
+
import { coinNewsFallbackNotice } from "../../sources/gloomberb-cloud/news";
|
|
104
|
+
|
|
105
|
+
const NEWS_ITEM_LIMIT = 5;
|
|
106
|
+
const SEC_FILING_LIMIT = 5;
|
|
107
|
+
|
|
108
|
+
const NOTHING_HIDDEN: HiddenFilings = { pricingSupplements: 0, ownershipReportsAboutOthers: 0 };
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The company's latest filings, as the report lists them: without a bank's
|
|
112
|
+
* pricing supplements or the 13D/13G it filed as a holder of other
|
|
113
|
+
* companies, unless `all`.
|
|
114
|
+
*/
|
|
115
|
+
async function loadRecentSecFilings(
|
|
116
|
+
load: (count: number) => Promise<SecFilingItem[]>,
|
|
117
|
+
all: boolean,
|
|
118
|
+
): Promise<{ filings: SecFilingItem[]; hidden: HiddenFilings }> {
|
|
119
|
+
return all ? { filings: (await load(SEC_FILING_LIMIT)).slice(0, SEC_FILING_LIMIT), hidden: NOTHING_HIDDEN }
|
|
120
|
+
: loadLatestFilings(load, SEC_FILING_LIMIT, { schedulesAboutOthers: true });
|
|
121
|
+
}
|
|
122
|
+
// Prose such as a company description stays readable on wide terminals.
|
|
123
|
+
const MAX_PROSE_WIDTH = 100;
|
|
124
|
+
const METADATA_SEPARATOR = " · ";
|
|
125
|
+
|
|
126
|
+
interface TickerCommandDependencies {
|
|
127
|
+
/** `--exchange`: the listing, for a symbol that trades in several places. */
|
|
128
|
+
exchange?: string;
|
|
129
|
+
initMarketData?: () => Promise<MarketContext>;
|
|
130
|
+
fail?: (message: string, details?: string) => never;
|
|
131
|
+
printResult?: CliCommandContext["printResult"];
|
|
132
|
+
/** `--all`: the recent SEC filings keep a bank's pricing supplements and its 13D/13G about other companies. */
|
|
133
|
+
allFilings?: boolean;
|
|
134
|
+
/** A futures symbol's contract terms and settlement; a failure leaves them out of the report. */
|
|
135
|
+
futuresContract?: (symbol: string) => Promise<FuturesContractTermsPayload | null>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* A futures symbol's contract terms and latest confirmed settlement. Any other
|
|
140
|
+
* symbol is not looked up, and a failed request leaves both out of the report.
|
|
141
|
+
*/
|
|
142
|
+
export async function cliFuturesContract(
|
|
143
|
+
symbol: string,
|
|
144
|
+
instrumentType: string | undefined,
|
|
145
|
+
load: (symbol: string) => Promise<FuturesContractTermsPayload | null> = loadFuturesContractTerms,
|
|
146
|
+
): Promise<FuturesContractTermsPayload | null> {
|
|
147
|
+
return isFuturesInstrument(symbol, instrumentType) ? load(symbol).catch(logFailure("cli.commands-ticker", "Read futures contract details failed", null)) : null;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** The Contract block as `ticker` and `quote` print it; a contract past first notice is in the warning colour. */
|
|
151
|
+
export function futuresContractMetrics(terms: FuturesContractTermsPayload, symbol: string): Array<[string, string]> {
|
|
152
|
+
return futuresContractLines(terms, symbol).map((line) => [line.label, line.warning ? cliStyles.warning(line.value) : line.value]);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
function appendMetricSection(lines: string[], title: string, metrics: Array<[string, string]>) {
|
|
156
|
+
const populated = metrics.filter(([, value]) => value !== "—");
|
|
157
|
+
if (populated.length === 0) return;
|
|
158
|
+
if (lines.length > 0) lines.push("");
|
|
159
|
+
lines.push(renderSection(title));
|
|
160
|
+
lines.push(renderStats(populated));
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Out of the regular session the bid and ask say whose book they are: the pre-market or after-hours book beside
|
|
165
|
+
* Last and the extended print, or a closed market's last quote with its day (ITA's $202.00 against $208.74
|
|
166
|
+
* around a $206.65 close is no open book).
|
|
167
|
+
*/
|
|
168
|
+
function bidAskText(quote: Quote, options: MarketFormatOptions): string {
|
|
169
|
+
const text = formatBidAsk(quote.bid, quote.ask, quote.bidSize, quote.askSize, quote.currency, options);
|
|
170
|
+
const label = text === "—" ? null : quoteBookSessionLabel(quote);
|
|
171
|
+
return label ? `${text} ${cliStyles.muted(`(${label})`)}` : text;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function wrapProse(text: string): string {
|
|
175
|
+
return wrapText(text, Math.min(cliTerminalWidth() ?? MAX_PROSE_WIDTH, MAX_PROSE_WIDTH)).join("\n");
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** The runway row: months at the latest quarter's burn and at the trailing year's, each with the period it is read over. */
|
|
179
|
+
function cashRunwayText(runway: CashRunway): string {
|
|
180
|
+
const { quarter, trailing, periodEnd } = runway;
|
|
181
|
+
if (quarter?.kind === "no-burn" && trailing?.kind === "no-burn") return `no burn (quarter and TTM to ${periodEnd})`;
|
|
182
|
+
const part = (estimate: RunwayEstimate | null, period: string) => estimate
|
|
183
|
+
? `${estimate.kind === "no-burn" ? "no burn" : formatRunwayMonths(estimate.months)} (${period} to ${periodEnd})` : null;
|
|
184
|
+
return [part(quarter, "quarter"), trailing ? part(trailing, "TTM") : `TTM ${runway.trailingGap === "short-history" ? SHORT_RUNWAY_HISTORY : "not reported"}`].filter((text): text is string => !!text).join(" \u00b7 ");
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
function buildStatementMetrics(statement: FinancialStatement, currency?: string, codes = false, runway?: CashRunway | null): Array<[string, string]> {
|
|
188
|
+
const money = (value: number | undefined, perShare = false) => formatReportedMoney(value, currency, perShare, codes);
|
|
189
|
+
return [
|
|
190
|
+
["Revenue", money(statement.totalRevenue)],
|
|
191
|
+
["Gross Profit", money(statement.grossProfit)],
|
|
192
|
+
["Operating Income", money(statement.operatingIncome)],
|
|
193
|
+
["Net Income", money(statement.netIncome)],
|
|
194
|
+
["Income incl. NCI", money(statement.netIncomeIncludingNoncontrollingInterests)],
|
|
195
|
+
["Income Common", money(statement.netIncomeCommonStockholders)],
|
|
196
|
+
["EBITDA", money(statement.ebitda)],
|
|
197
|
+
["Operating Cash Flow", money(statement.operatingCashFlow)],
|
|
198
|
+
["Free Cash Flow", money(statement.freeCashFlow)],
|
|
199
|
+
["Cash", money(statement.cashAndCashEquivalents)],
|
|
200
|
+
["Cash + ST Inv", money(statement.cashCashEquivalentsAndShortTermInvestments)],
|
|
201
|
+
// The latest quarter's only: months of cash at its burn and the trailing year's.
|
|
202
|
+
...runway ? [["Cash Runway", cashRunwayText(runway)] as [string, string]] : [],
|
|
203
|
+
["Total Assets", money(statement.totalAssets)],
|
|
204
|
+
["Total Liabilities", money(statement.totalLiabilities)],
|
|
205
|
+
["Total Debt", money(statement.totalDebt)],
|
|
206
|
+
["Equity", money(statement.totalEquity)],
|
|
207
|
+
["Diluted EPS", money(statement.eps, true)],
|
|
208
|
+
// Labelled only when the service says the row counts receipts.
|
|
209
|
+
["Diluted Shares", statement.dilutedShares != null && statement.shareBasis === "depositary_receipt"
|
|
210
|
+
? `${formatCompact(statement.dilutedShares)} (ADR equivalent)`
|
|
211
|
+
: formatCompact(statement.dilutedShares)],
|
|
212
|
+
];
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* A receipt's count is its ordinary shares expressed in receipts, as its
|
|
217
|
+
* market cap is; the ordinary count follows when the service gives it.
|
|
218
|
+
*/
|
|
219
|
+
/** `504.5M (as of 2026-09-03)`: a share count with the day it was counted, when that is known (a 10-K or 10-Q cover count). */
|
|
220
|
+
function datedCount(count: number, asOf: string | undefined): string {
|
|
221
|
+
return asOf ? `${formatCompact(count)} (as of ${asOf})` : formatCompact(count);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function sharesOutstandingText(fundamentals: TickerFinancials["fundamentals"], inReceipts: boolean): string {
|
|
225
|
+
const shares = fundamentals?.sharesOutstanding;
|
|
226
|
+
if (shares == null) return formatCompact(shares);
|
|
227
|
+
if (!inReceipts) return datedCount(shares, fundamentals?.sharesOutstandingAsOf);
|
|
228
|
+
const ordinary = fundamentals?.shareBasis === "depositary_receipt" ? fundamentals.underlyingOrdinaryShares : undefined;
|
|
229
|
+
return ordinary != null && Number.isFinite(ordinary) && ordinary > 0
|
|
230
|
+
? `${formatCompact(shares)} (ADR equivalent = ${formatCompact(ordinary)} ordinary shares)`
|
|
231
|
+
: `${formatCompact(shares)} (ADR equivalent)`;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** Provider prose is wrapped; `verbatim` keeps the user's own spacing, such as a table in a note. */
|
|
235
|
+
function appendTextSection(lines: string[], title: string, content: string | undefined, verbatim = false) {
|
|
236
|
+
const text = content?.trim();
|
|
237
|
+
if (!text) return;
|
|
238
|
+
lines.push("");
|
|
239
|
+
lines.push(renderSection(title));
|
|
240
|
+
lines.push(verbatim ? text : wrapProse(text));
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/** "Description from ChinaAMC (Hong Kong), Product Key Facts on HKEXnews: https://...": where a quoted description is from. */
|
|
244
|
+
function descriptionSourceLine(profile: CompanyProfile | undefined): string | null {
|
|
245
|
+
const source = profile?.description?.trim() ? profile.descriptionSource : undefined;
|
|
246
|
+
return source?.publisher && source.url ? `Description from ${source.publisher}: ${source.url}` : null;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/** The description with where it is from under it, when it is quoted. */
|
|
250
|
+
function appendDescription(lines: string[], profile: CompanyProfile | undefined) {
|
|
251
|
+
appendTextSection(lines, "Description", profile?.description);
|
|
252
|
+
const source = descriptionSourceLine(profile);
|
|
253
|
+
if (source) lines.push(cliStyles.muted(source));
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function appendFeedSection(
|
|
257
|
+
lines: string[],
|
|
258
|
+
title: string,
|
|
259
|
+
entries: Array<{
|
|
260
|
+
title: string;
|
|
261
|
+
meta?: string[];
|
|
262
|
+
body?: string;
|
|
263
|
+
link?: string;
|
|
264
|
+
}>,
|
|
265
|
+
/** What the list leaves out, after its entries. */
|
|
266
|
+
note?: string | null,
|
|
267
|
+
) {
|
|
268
|
+
const populated = entries.filter((entry) => entry.title.trim().length > 0);
|
|
269
|
+
if (populated.length === 0) {
|
|
270
|
+
if (note) lines.push("", renderSection(title), cliStyles.muted(note));
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
lines.push("");
|
|
275
|
+
lines.push(renderSection(title));
|
|
276
|
+
|
|
277
|
+
for (const [index, entry] of populated.entries()) {
|
|
278
|
+
lines.push(cliStyles.bold(entry.title.trim()));
|
|
279
|
+
const meta = (entry.meta ?? []).filter((value) => value.trim().length > 0);
|
|
280
|
+
if (meta.length > 0) {
|
|
281
|
+
lines.push(cliStyles.muted(meta.join(METADATA_SEPARATOR)));
|
|
282
|
+
}
|
|
283
|
+
if (entry.body?.trim()) {
|
|
284
|
+
lines.push(wrapProse(entry.body.trim()));
|
|
285
|
+
}
|
|
286
|
+
if (entry.link?.trim()) {
|
|
287
|
+
lines.push(cliStyles.muted(entry.link.trim()));
|
|
288
|
+
}
|
|
289
|
+
if (index < populated.length - 1) {
|
|
290
|
+
lines.push("");
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
if (note) lines.push("", cliStyles.muted(note));
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
function filingItemsMeta(filing: SecFilingItem): string {
|
|
297
|
+
const items = currentReportItemsLabel(filing.items);
|
|
298
|
+
return items ? `Items ${items}` : "";
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
function normalizeComparable(value: string): string {
|
|
302
|
+
return value.toUpperCase().replace(/\bFORM\b/g, "").replace(/[^A-Z0-9]+/g, "");
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
function getFilingDescription(filing: SecFilingItem): string | undefined {
|
|
306
|
+
const description = filing.primaryDocDescription?.trim();
|
|
307
|
+
if (!description) return undefined;
|
|
308
|
+
if (normalizeComparable(description) === normalizeComparable(filing.form)) {
|
|
309
|
+
return undefined;
|
|
310
|
+
}
|
|
311
|
+
return description;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* SEC filings are asked for unless the listing is known to be outside the US:
|
|
316
|
+
* by the saved ticker, the requested venue, the quote, or the listing the
|
|
317
|
+
* source still describes when it has no current quote. A symbol nothing is
|
|
318
|
+
* known about yet is looked up as a US ticker.
|
|
319
|
+
*/
|
|
320
|
+
function shouldFetchSecFilings(
|
|
321
|
+
symbol: string,
|
|
322
|
+
exchange: string,
|
|
323
|
+
tickerFile: TickerRecord | null,
|
|
324
|
+
financials: TickerFinancials,
|
|
325
|
+
): boolean {
|
|
326
|
+
const saved = tickerFile?.metadata;
|
|
327
|
+
const { quote, quoteMetadata } = financials;
|
|
328
|
+
return !isKnownNonUsListing({
|
|
329
|
+
metadata: {
|
|
330
|
+
ticker: saved?.ticker ?? symbol,
|
|
331
|
+
exchange: saved?.exchange || exchange || quote?.listingExchangeName || quote?.exchangeName
|
|
332
|
+
|| quoteMetadata?.listingExchangeName || "",
|
|
333
|
+
currency: saved?.currency || quote?.currency || quoteMetadata?.currency || "",
|
|
334
|
+
name: saved?.name ?? symbol,
|
|
335
|
+
broker_contracts: saved?.broker_contracts,
|
|
336
|
+
portfolios: [],
|
|
337
|
+
watchlists: [],
|
|
338
|
+
positions: [],
|
|
339
|
+
custom: {},
|
|
340
|
+
tags: [],
|
|
341
|
+
},
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
async function appendTickerPositions(lines: string[], tickerFile: TickerRecord | null, quote: TickerFinancials["quote"],
|
|
346
|
+
config: AppConfig, toBase: ReportBaseConverter, rates: ReportRateNotes): Promise<void> {
|
|
347
|
+
const quoteCurrency = quote?.currency?.trim() || tickerFile?.metadata.currency?.trim() || "";
|
|
348
|
+
const codes = writesCurrencyCodes(config);
|
|
349
|
+
const money = codes ? formatCurrencyCode : formatCurrency;
|
|
350
|
+
const converted = new Set<string>();
|
|
351
|
+
if (tickerFile && tickerFile.metadata.positions.length > 0) {
|
|
352
|
+
lines.push("");
|
|
353
|
+
lines.push(renderSection("Positions"));
|
|
354
|
+
const positions = tickerFile.metadata.positions.filter((position) => position.shares !== 0);
|
|
355
|
+
|
|
356
|
+
for (const [index, position] of positions.entries()) {
|
|
357
|
+
const portfolioName = config.portfolios.find((portfolio) => portfolio.id === position.portfolio)?.name ?? position.portfolio;
|
|
358
|
+
// A future counts contracts whether or not its lot states their size.
|
|
359
|
+
const contracts = isFuturesTicker(tickerFile) || (position.multiplier ?? 1) > 1;
|
|
360
|
+
const metrics = getPortfolioPositionMetrics({ ...tickerFile, metadata: { ...tickerFile.metadata, positions: [position] } }, undefined, quoteCurrency, undefined, quote);
|
|
361
|
+
const positionCurrency = metrics.positionCurrency;
|
|
362
|
+
const currentPrice = getPortfolioQuoteDisplay(metrics, quote)?.price ?? null;
|
|
363
|
+
const currentPriceBase = currentPrice != null && quoteCurrency ? await toBase(currentPrice, quoteCurrency) : null;
|
|
364
|
+
const positionRate = positionCurrency ? await toBase(1, positionCurrency) : Number.NaN;
|
|
365
|
+
// By the major currency the converter states its rate in: pence (GBp, GBX) at GBP's.
|
|
366
|
+
if (positionCurrency) converted.add(heldCurrencyUnit(positionCurrency).currency);
|
|
367
|
+
if (quoteCurrency && currentPrice != null) converted.add(heldCurrencyUnit(quoteCurrency).currency);
|
|
368
|
+
const baseMetrics = getPortfolioPositionMetrics({ ...tickerFile, metadata: { ...tickerFile.metadata, positions: [position] } }, undefined, quoteCurrency,
|
|
369
|
+
{ currency: config.baseCurrency, convert: value => value * positionRate }, quote);
|
|
370
|
+
// A cost bought at an entered rate into the base currency converts at it, as its P&L does, and says so; any other at today's.
|
|
371
|
+
const boughtRate = positionCurrency ? lotCostFxRate(position, positionCurrency, config.baseCurrency) : null;
|
|
372
|
+
const costBasisBase = !positionCurrency ? Number.NaN
|
|
373
|
+
: boughtRate !== null ? baseMetrics.signedCost
|
|
374
|
+
: await toBase(metrics.signedCost, positionCurrency);
|
|
375
|
+
const marketValueBase = resolvePortfolioMarketValue(baseMetrics, currentPriceBase)?.net ?? Number.NaN;
|
|
376
|
+
const selectedPnl = resolvePortfolioPositionPnl(baseMetrics, currentPriceBase);
|
|
377
|
+
const pnl = selectedPnl.value;
|
|
378
|
+
|
|
379
|
+
lines.push(cliStyles.bold(`${portfolioName} (${position.broker})`));
|
|
380
|
+
if (!positionCurrency) lines.push(cliStyles.muted("Currency unavailable."));
|
|
381
|
+
const stats: CliStatEntry[] = [
|
|
382
|
+
[
|
|
383
|
+
"Position",
|
|
384
|
+
`${formatMarketQuantity(metrics.totalShares, { assetCategory: tickerFile.metadata.assetCategory, multiplier: position.multiplier, priceBasis: metrics.priceBasis, quantityCurrency: positionCurrency })} ${metrics.priceBasis === "percent-of-par" ? "@" : `${tickerFile.metadata.assetCategory === "BOND" ? "units" : contracts ? "contracts" : "shares"} @`} ${positionCurrency ? formatMarketCostWithCurrency(position.avgCost, positionCurrency, { assetCategory: tickerFile.metadata.assetCategory, multiplier: position.multiplier, priceBasis: metrics.priceBasis, currencyCode: codes }) : "—"}`,
|
|
385
|
+
],
|
|
386
|
+
["Cost Basis", `${money(costBasisBase, config.baseCurrency)}${boughtRate !== null
|
|
387
|
+
? ` (${formatFxRate(boughtRate)} ${config.baseCurrency.trim().toUpperCase()} per ${positionCurrency} when bought)` : ""}`],
|
|
388
|
+
["Market Value", money(marketValueBase, config.baseCurrency)],
|
|
389
|
+
[
|
|
390
|
+
selectedPnl.basis === "broker-snapshot" ? "Broker P&L" : "P&L",
|
|
391
|
+
pnl === null ? "—" : colorBySign(formatSignedCurrency(pnl, config.baseCurrency, codes), pnl),
|
|
392
|
+
],
|
|
393
|
+
];
|
|
394
|
+
if (position.markPrice != null) {
|
|
395
|
+
stats.push(["Broker Mark", positionCurrency ? formatMarketPriceWithCurrency(position.markPrice, positionCurrency, { assetCategory: tickerFile.metadata.assetCategory, multiplier: position.multiplier, priceBasis: metrics.priceBasis, currencyCode: codes }) : "—"]);
|
|
396
|
+
}
|
|
397
|
+
lines.push(renderStats(stats));
|
|
398
|
+
if (index < positions.length - 1) {
|
|
399
|
+
lines.push("");
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
for (const note of conversionNotes(toBase, converted, rates)) lines.push(cliStyles.muted(note));
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/** The ticker report's converter: what `createBaseConverter` makes, whose rates a report states; a plain function in tests. */
|
|
407
|
+
type ReportBaseConverter = ((value: number, fromCurrency: string) => Promise<number>) & Partial<Pick<BaseConverter, "conversions" | "usdRate">>;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* The financials with a converted TTM block at the rate the report converts everything else at, the one `fx`
|
|
411
|
+
* reports (ttmAtAppRate), for the text and the JSON alike; as served when the converter has no rate for it.
|
|
412
|
+
*/
|
|
413
|
+
export async function atReportTtmRate(financials: TickerFinancials, toBase: Partial<Pick<BaseConverter, "usdRate">>): Promise<TickerFinancials> {
|
|
414
|
+
const fundamentals = financials.fundamentals;
|
|
415
|
+
const from = fundamentals?.ttmConversion?.from?.trim();
|
|
416
|
+
const to = fundamentals?.financialCurrency?.trim();
|
|
417
|
+
if (!fundamentals || !from || !to || from === to || !toBase.usdRate) return financials;
|
|
418
|
+
const legs = new Map(await Promise.all([from, to].map(async (currency) =>
|
|
419
|
+
[heldCurrencyUnit(currency).currency, await toBase.usdRate!(currency)] as const)));
|
|
420
|
+
const shown = ttmAtAppRate(fundamentals, appTtmRate(fundamentals, (currency) => legs.get(currency)));
|
|
421
|
+
return shown === fundamentals ? financials : { ...financials, fundamentals: shown };
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* "TTM figures in ARS; the statements in USD.": a trailing block the source states in another currency than the
|
|
426
|
+
* statements shown below it, which no conversion explains (YPFD on BYMA: ARS figures beside USD statements).
|
|
427
|
+
*/
|
|
428
|
+
function ttmCurrencySplitNote(fundamentals: TickerFinancials["fundamentals"], statementCurrencies: ReadonlyArray<string | undefined>): string | undefined {
|
|
429
|
+
const ttm = fundamentals?.financialCurrency?.trim();
|
|
430
|
+
const shown = new Set(statementCurrencies.map((currency) => currency?.trim()).filter((currency): currency is string => !!currency));
|
|
431
|
+
if (!ttm || fundamentals?.ttmConversion || shown.size !== 1) return undefined;
|
|
432
|
+
const [statements] = shown;
|
|
433
|
+
return heldCurrencyUnit(statements).currency === heldCurrencyUnit(ttm).currency ? undefined : `TTM figures in ${ttm}; the statements in ${statements}.`;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* A base currency other than USD reads every amount with its code (259.36
|
|
438
|
+
* USD, 878.15B CAD): $ alone is also the Canadian, Australian and other
|
|
439
|
+
* dollars. A USD base keeps the signs it always had.
|
|
440
|
+
*/
|
|
441
|
+
export function writesCurrencyCodes(config: Pick<AppConfig, "baseCurrency"> | undefined): boolean {
|
|
442
|
+
const base = config?.baseCurrency?.trim().toUpperCase();
|
|
443
|
+
return !!base && base !== "USD";
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* What the report's rate notes have said and must say: each currency's rate
|
|
448
|
+
* is stated once, under the first section that converted it, and a lot whose
|
|
449
|
+
* cost converts at the rate entered when it was bought is left out of it.
|
|
450
|
+
*/
|
|
451
|
+
interface ReportRateNotes {
|
|
452
|
+
/** Currencies whose rate a note already gave. */
|
|
453
|
+
noted: Set<string>;
|
|
454
|
+
/** Currencies of lots whose Cost Basis is at their own entered rate. */
|
|
455
|
+
boughtAt: ReadonlySet<string>;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/** The currencies of the shown lots whose cost converts into the base currency at the rate they were bought at, pence as GBP. */
|
|
459
|
+
function boughtRateCurrencies(tickerFile: TickerRecord | null, quoteCurrency: string, baseCurrency: string): Set<string> {
|
|
460
|
+
return new Set((tickerFile?.metadata.positions ?? []).flatMap((position) => {
|
|
461
|
+
const currency = (position.currency || quoteCurrency).trim();
|
|
462
|
+
return position.shares !== 0 && currency && lotCostFxRate(position, currency, baseCurrency) !== null ? [heldCurrencyUnit(currency).currency] : [];
|
|
463
|
+
}));
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* "CAD figures at USD/CAD 1.40623, as of 2026-10-21 04:46 UTC.": the rate
|
|
468
|
+
* and its date for each currency in `currencies` the report converted into
|
|
469
|
+
* the base currency, as markets quote the pair (USD/JPY, not JPY/USD), so a
|
|
470
|
+
* converted figure is never without what it was converted at. A rate already
|
|
471
|
+
* stated is not repeated, and a cost basis at its own rate is excepted.
|
|
472
|
+
*/
|
|
473
|
+
function conversionNotes(toBase: ReportBaseConverter, currencies: ReadonlySet<string>, rates: ReportRateNotes): string[] {
|
|
474
|
+
return (toBase.conversions?.() ?? [])
|
|
475
|
+
.filter((conversion) => currencies.has(conversion.currency) && conversion.currency !== conversion.baseCurrency && !rates.noted.has(conversion.currency))
|
|
476
|
+
.map(({ currency, baseCurrency, rate, asOf }) => {
|
|
477
|
+
rates.noted.add(currency);
|
|
478
|
+
const quoted = quotedFxPair(currency, baseCurrency, rate);
|
|
479
|
+
const except = rates.boughtAt.has(currency) ? ", except a cost basis at the rate it was bought at" : "";
|
|
480
|
+
return `${baseCurrency} figures at ${quoted.pair} ${formatFxRate(quoted.rate)}${asOf != null ? `, as of ${formatTimestamp(asOf)}` : ""}${except}.`;
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/** A source's enterprise value is in the units of the capitalization it reports beside it,
|
|
485
|
+
* which without a declared unit is the listing's quote currency (as the overview labels it). */
|
|
486
|
+
function enterpriseValueCurrency(
|
|
487
|
+
quote: TickerFinancials["quote"],
|
|
488
|
+
fundamentals: TickerFinancials["fundamentals"],
|
|
489
|
+
): string | undefined {
|
|
490
|
+
return fundamentals?.marketCapCurrency?.trim()
|
|
491
|
+
|| selectMarketCapitalization(quote, fundamentals)?.currency
|
|
492
|
+
|| quote?.currency?.trim()
|
|
493
|
+
|| undefined;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
/** A fundamentals line: the text the report prints, and for CSV the figure behind it in `unit`. */
|
|
497
|
+
interface FundamentalsMetric {
|
|
498
|
+
label: string;
|
|
499
|
+
text: string;
|
|
500
|
+
value?: number | string | null;
|
|
501
|
+
unit?: string;
|
|
502
|
+
/** A figure the text prints inside another line, which CSV gives a row of its own. */
|
|
503
|
+
exportOnly?: boolean;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
type MetricFigure = Omit<FundamentalsMetric, "label">;
|
|
507
|
+
|
|
508
|
+
/** An amount in the currency the source reported it in; `ccy?` when it named none, as the text says. `codes`: per share too (6.54 USD). */
|
|
509
|
+
function reportedMoney(value: number | undefined, currency: string | undefined, perShare = false, codes = false): MetricFigure {
|
|
510
|
+
return { text: formatReportedMoney(value, currency, perShare, codes), value, unit: currency?.trim() || "ccy?" };
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* The EV line: labelled "(provider)" when it is more than 5% from market cap + debt - cash, "unavailable" when
|
|
515
|
+
* withdrawn, N/M at or below zero as a P/E over a loss is.
|
|
516
|
+
*/
|
|
517
|
+
function enterpriseValueFigure(figure: MetricFigure, fundamentals: TickerFinancials["fundamentals"]): MetricFigure {
|
|
518
|
+
const label = enterpriseValueLabel(fundamentals);
|
|
519
|
+
if (label === "not-meaningful") return { ...multipleFigure(NOT_MEANINGFUL), unit: figure.unit };
|
|
520
|
+
if (label === "unavailable") return { text: "unavailable", value: null, unit: figure.unit };
|
|
521
|
+
return label === "provider" && figure.text !== "—" ? { ...figure, text: `${figure.text} (provider)` } : figure;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
function percentFigure(fraction: number | null | undefined, format: (value: number) => string): MetricFigure {
|
|
525
|
+
return fraction != null ? { text: format(fraction), value: fraction * 100, unit: "%" } : { text: "—" };
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* The listing's distributions a dividend yield is read with: the declared,
|
|
530
|
+
* unpaid ones a forward yield dated ahead is named from, in their own
|
|
531
|
+
* currency, the history that says whether the dividend is still paid, and the
|
|
532
|
+
* trailing yield DVD reads from that history.
|
|
533
|
+
*/
|
|
534
|
+
export interface DividendDistributions {
|
|
535
|
+
rows: DeclaredDividendAction[];
|
|
536
|
+
currency?: string;
|
|
537
|
+
history: DistributionHistory | null;
|
|
538
|
+
/**
|
|
539
|
+
* A trailing yield as DVD measures it (historyTrailingDividendYield): the history's
|
|
540
|
+
* trailing twelve-month cash over the quote's regular session price. Null
|
|
541
|
+
* when the history is not whole or the price is in another currency, which
|
|
542
|
+
* leaves the yield Gloom Cloud serves; absent for a forward yield.
|
|
543
|
+
*/
|
|
544
|
+
trailingYield?: number | null;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* The listing's distributions, read for a trailing yield, which is measured
|
|
549
|
+
* from them as DVD measures it, and for a forward yield whose ex-date is still
|
|
550
|
+
* ahead (the one case its basis names a declared one, which JSON does not
|
|
551
|
+
* print, so `declared: false` skips it) or long enough past for its dividend
|
|
552
|
+
* to have stopped; null otherwise, and when they cannot be read, which leaves
|
|
553
|
+
* the trailing yield Gloom Cloud serves, the forward basis to its dates and
|
|
554
|
+
* the lapse to Gloom Cloud's fifteen months.
|
|
555
|
+
*/
|
|
556
|
+
export async function loadDividendDistributions(
|
|
557
|
+
dataProvider: Pick<MarketContext["dataProvider"], "getCorporateActions">,
|
|
558
|
+
listing: { symbol: string; exchange: string },
|
|
559
|
+
{ quote, fundamentals }: Pick<TickerFinancials, "quote" | "fundamentals">,
|
|
560
|
+
{ declared = true, now = new Date() }: { declared?: boolean; now?: Date } = {},
|
|
561
|
+
): Promise<DividendDistributions | null> {
|
|
562
|
+
if (fundamentals?.dividendYield == null || !dataProvider.getCorporateActions) return null;
|
|
563
|
+
const trailing = measuresTrailingYield(fundamentals);
|
|
564
|
+
if (!trailing) {
|
|
565
|
+
if (fundamentals.dividendYieldBasis !== "forward") return null;
|
|
566
|
+
const exDate = fundamentals.exDividendDate ?? "";
|
|
567
|
+
const declaredAhead = declared && /^\d{4}-\d{2}-\d{2}$/.test(exDate) && exDate > now.toISOString().slice(0, 10);
|
|
568
|
+
if (!declaredAhead && !forwardDividendMayHaveLapsed(exDate, now)) return null;
|
|
569
|
+
}
|
|
570
|
+
try {
|
|
571
|
+
const actions = await dataProvider.getCorporateActions(listing.symbol, listing.exchange);
|
|
572
|
+
return { rows: declaredDividends(actions, now), ...(actions.currency ? { currency: actions.currency } : {}),
|
|
573
|
+
history: distributionHistory(actions, now), ...(trailing ? { trailingYield: historyTrailingDividendYield(actions, quote, now) } : {}) };
|
|
574
|
+
} catch (error) {
|
|
575
|
+
logFailure("cli.commands-ticker", "Read dividend distributions failed")(error);
|
|
576
|
+
return null;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/** The stopped dividend behind a forward yield, if it has stopped (lapsedDividend); null for any other yield. */
|
|
581
|
+
function forwardYieldLapse(
|
|
582
|
+
fundamentals: TickerFinancials["fundamentals"],
|
|
583
|
+
distributions: DividendDistributions | null,
|
|
584
|
+
now = new Date(),
|
|
585
|
+
): DividendLapse | null {
|
|
586
|
+
return fundamentals?.dividendYieldBasis === "forward" && fundamentals.dividendYield != null
|
|
587
|
+
? lapsedDividend(fundamentals.exDividendDate, distributions?.history, now) : null;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* The dividend yield a report shows: a trailing one as DVD measures it from
|
|
592
|
+
* the cash history (DividendDistributions.trailingYield), so `fundamentals`,
|
|
593
|
+
* `ticker` and DVD print one figure; Gloom Cloud's when that cannot be read,
|
|
594
|
+
* and a forward one as served.
|
|
595
|
+
*/
|
|
596
|
+
function reportedDividendYield(
|
|
597
|
+
fundamentals: Pick<NonNullable<TickerFinancials["fundamentals"]>, "dividendYield" | "dividendYieldBasis"> | undefined,
|
|
598
|
+
distributions: DividendDistributions | null,
|
|
599
|
+
): number | undefined {
|
|
600
|
+
const measured = fundamentals?.dividendYieldBasis === "trailing" ? distributions?.trailingYield : null;
|
|
601
|
+
return measured ?? fundamentals?.dividendYield;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* A dividend yield says its basis in the words DVD uses: a forward yield what
|
|
606
|
+
* it annualizes and when (a declared distribution by its ex-date and stated
|
|
607
|
+
* amount), and once its dividend has stopped, that there is none and when it
|
|
608
|
+
* was last paid; a trailing one the twelve months it covers. A yield of no
|
|
609
|
+
* stated basis is the figure alone.
|
|
610
|
+
*/
|
|
611
|
+
function forwardYieldFigure(fundamentals: TickerFinancials["fundamentals"], distributions: DividendDistributions | null): MetricFigure {
|
|
612
|
+
const lapse = forwardYieldLapse(fundamentals, distributions);
|
|
613
|
+
if (lapse) return { text: noCurrentDividend(lapse), value: null };
|
|
614
|
+
const figure = percentFigure(reportedDividendYield(fundamentals, distributions), formatFractionPercentCell);
|
|
615
|
+
if (fundamentals?.dividendYield == null) return figure;
|
|
616
|
+
const basis = fundamentals.dividendYieldBasis === "forward"
|
|
617
|
+
? forwardDividendBasis(fundamentals.exDividendDate, { declared: distributions?.rows, currency: distributions?.currency })
|
|
618
|
+
: fundamentals.dividendYieldBasis === "trailing" ? TRAILING_DIVIDEND_BASIS : null;
|
|
619
|
+
return basis ? { ...figure, text: `${figure.text} (${basis})` } : figure;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Fundamentals as JSON exports them: a trailing yield as the text reads it
|
|
624
|
+
* (reportedDividendYield), and a forward yield whose dividend has stopped
|
|
625
|
+
* null, as is its rate, with the last ex-date under `dividendLapse`.
|
|
626
|
+
*/
|
|
627
|
+
export function exportedDividendFundamentals<T extends object & Pick<NonNullable<TickerFinancials["fundamentals"]>, "dividendYield" | "dividendYieldBasis" | "exDividendDate">>(
|
|
628
|
+
fundamentals: T,
|
|
629
|
+
distributions: DividendDistributions | null,
|
|
630
|
+
): T | (Omit<T, "dividendYield" | "dividendRate"> & { dividendYield: null; dividendRate: null; dividendLapse: DividendLapse }) {
|
|
631
|
+
const lapse = forwardYieldLapse(fundamentals, distributions);
|
|
632
|
+
if (lapse) return { ...fundamentals, dividendYield: null, dividendRate: null, dividendLapse: lapse };
|
|
633
|
+
const dividendYield = reportedDividendYield(fundamentals, distributions);
|
|
634
|
+
return dividendYield === fundamentals.dividendYield ? fundamentals : { ...fundamentals, dividendYield };
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* `Dividend Yield (forward)`, or for a bond fund `Distribution Yield (forward,
|
|
639
|
+
* not SEC yield)`: the cash it paid, annualized, which its SEC yield (the line
|
|
640
|
+
* after it) is not.
|
|
641
|
+
*/
|
|
642
|
+
function dividendYieldLabel(basis: string | undefined, bond: FundBondFacts | null): string {
|
|
643
|
+
if (bond) return `Distribution Yield (${basis ? `${basis}, ` : ""}${NOT_SEC_YIELD})`;
|
|
644
|
+
return `Dividend Yield${basis ? ` (${basis})` : ""}`;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/** The labels a bond fund's sponsor figures print under, after its distribution yield. */
|
|
648
|
+
const BOND_METRIC_LABELS = { secYield: "30-Day SEC Yield", yieldToWorst: "Yield to Worst" } as const;
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* A bond fund's 30-day SEC yield, yield to worst and duration as its sponsor
|
|
652
|
+
* publishes them, each dated: `4.04% (as of 2026-10-15)`.
|
|
653
|
+
*/
|
|
654
|
+
function bondFundMetrics(bond: FundBondFacts | null): FundamentalsMetric[] {
|
|
655
|
+
if (!bond) return [];
|
|
656
|
+
return bondFigures(bond).map((figure) => ({
|
|
657
|
+
label: figure.key === "duration" ? (bond.duration?.measure === "average" ? "Average Duration" : "Effective Duration") : BOND_METRIC_LABELS[figure.key],
|
|
658
|
+
text: `${figure.text}${figure.date ? ` (as of ${figure.date})` : ""}`,
|
|
659
|
+
value: figure.value,
|
|
660
|
+
unit: figure.key === "duration" ? "years" : "%",
|
|
661
|
+
}));
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/** Whether a metric is a yield line, which `valuation` keeps beside the multiples. */
|
|
665
|
+
function isYieldMetric(label: string): boolean {
|
|
666
|
+
return label.startsWith("Dividend Yield") || label.startsWith("Distribution Yield") || label === BOND_METRIC_LABELS.secYield;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* A US-listed fund's bond facts for the yield lines; null for any other
|
|
671
|
+
* listing, and when they cannot be read, which leaves the yield as it was.
|
|
672
|
+
*/
|
|
673
|
+
export async function loadReportBondFacts(
|
|
674
|
+
symbol: string,
|
|
675
|
+
exchange: string | undefined,
|
|
676
|
+
financials: Pick<TickerFinancials, "quote" | "quoteMetadata">,
|
|
677
|
+
tickerFile: TickerRecord | null = null,
|
|
678
|
+
load: (symbol: string) => Promise<FundBondFacts | null> = fetchFundBondFacts,
|
|
679
|
+
): Promise<FundBondFacts | null> {
|
|
680
|
+
if (resolveTickerInstrumentKind(tickerFile, financials) !== "fund" || (exchange && !isUsListingExchange(exchange))) return null;
|
|
681
|
+
try {
|
|
682
|
+
return await load(symbol);
|
|
683
|
+
} catch (error) {
|
|
684
|
+
logFailure("cli.commands-ticker", "Read bond fund facts failed")(error);
|
|
685
|
+
return null;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
function multipleFigure(value: ReturnType<typeof priceEarningsOnEarnings> | number | undefined): MetricFigure {
|
|
690
|
+
const text = formatPriceEarnings(value, 2);
|
|
691
|
+
return { text, value: typeof value === "number" && Number.isFinite(value) && value > 0 ? value : text === "N/M" ? text : null };
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
function fundamentalsMetrics(
|
|
695
|
+
quote: TickerFinancials["quote"],
|
|
696
|
+
fundamentals: TickerFinancials["fundamentals"],
|
|
697
|
+
profile: TickerFinancials["profile"],
|
|
698
|
+
marketCap: MetricFigure,
|
|
699
|
+
priceReturns: { return1Y?: number | null; return3Y?: number | null },
|
|
700
|
+
reportingCurrency: string | undefined,
|
|
701
|
+
enterpriseValue = reportedMoney(reportedEnterpriseValue(fundamentals), enterpriseValueCurrency(quote, fundamentals)),
|
|
702
|
+
distributions: DividendDistributions | null = null,
|
|
703
|
+
bond: FundBondFacts | null = null,
|
|
704
|
+
codes = false,
|
|
705
|
+
): FundamentalsMetric[] {
|
|
706
|
+
const signed = (value: number) => colorBySign(formatPercent(value), value);
|
|
707
|
+
const receipt = fundamentals?.sharesOutstanding != null && sharesOutstandingInReceipts(quote, fundamentals, profile?.description);
|
|
708
|
+
return [
|
|
709
|
+
{ label: "Market Cap", ...marketCap },
|
|
710
|
+
{ label: "Enterprise Value", ...enterpriseValueFigure(enterpriseValue, fundamentals) },
|
|
711
|
+
// A multiple over a loss is N/M, even beside a positive one the source served from an older period.
|
|
712
|
+
{ label: "P/E (TTM)", ...multipleFigure(priceEarningsOnEarnings(fundamentals?.trailingPE, fundamentals?.eps)) },
|
|
713
|
+
{ label: "Forward P/E", ...multipleFigure(priceEarningsOnEarnings(fundamentals?.forwardPE, fundamentals?.forwardEps)) },
|
|
714
|
+
{ label: "PEG", ...multipleFigure(fundamentals?.pegRatio) },
|
|
715
|
+
// The flows and EPS are one trailing-twelve-month block, the same twelve months for each line.
|
|
716
|
+
{ label: "EPS (TTM)", ...reportedMoney(fundamentals?.eps, fundamentals?.epsCurrency?.trim() || reportingCurrency, true, codes) },
|
|
717
|
+
{
|
|
718
|
+
label: dividendYieldLabel(fundamentals?.dividendYieldBasis, bond),
|
|
719
|
+
...forwardYieldFigure(fundamentals, distributions),
|
|
720
|
+
},
|
|
721
|
+
...bondFundMetrics(bond),
|
|
722
|
+
{ label: "Revenue (TTM)", ...reportedMoney(fundamentals?.revenue, reportingCurrency) },
|
|
723
|
+
{ label: "Net Income (TTM)", ...reportedMoney(fundamentals?.netIncome, reportingCurrency) },
|
|
724
|
+
{ label: "Operating Cash Flow (TTM)", ...reportedMoney(fundamentals?.operatingCashFlow, reportingCurrency) },
|
|
725
|
+
{ label: "Free Cash Flow (TTM)", ...reportedMoney(fundamentals?.freeCashFlow, reportingCurrency) },
|
|
726
|
+
// Levels, not changes, so they carry no sign.
|
|
727
|
+
{ label: "Operating Margin", ...percentFigure(fundamentals?.operatingMargin, formatFractionPercentCell) },
|
|
728
|
+
{ label: "Profit Margin", ...percentFigure(fundamentals?.profitMargin, formatFractionPercentCell) },
|
|
729
|
+
{ label: "Revenue Growth", ...percentFigure(fundamentals?.revenueGrowth, signed) },
|
|
730
|
+
{ label: "Last Quarter Growth", ...percentFigure(fundamentals?.lastQuarterGrowth, signed) },
|
|
731
|
+
{ label: "1Y Return", ...percentFigure(priceReturns.return1Y, signed) },
|
|
732
|
+
{ label: "3Y Return", ...percentFigure(priceReturns.return3Y, signed) },
|
|
733
|
+
{
|
|
734
|
+
label: "Shares Outstanding",
|
|
735
|
+
text: sharesOutstandingText(fundamentals, receipt),
|
|
736
|
+
value: fundamentals?.sharesOutstanding,
|
|
737
|
+
...(receipt ? { unit: "ADR equivalent" } : {}),
|
|
738
|
+
},
|
|
739
|
+
...(fundamentals?.sharesOutstanding != null && fundamentals.sharesOutstandingAsOf ? [{
|
|
740
|
+
label: "Shares Outstanding As Of", text: fundamentals.sharesOutstandingAsOf, value: fundamentals.sharesOutstandingAsOf, exportOnly: true,
|
|
741
|
+
}] : []),
|
|
742
|
+
];
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* The float and the short interest `fundamentals` prints after the share count: the shares short, short % of float
|
|
747
|
+
* and days to cover of one settlement, dated, as the JSON gives them and `SI` and `SIW` show them.
|
|
748
|
+
*/
|
|
749
|
+
function floatAndShortInterestMetrics(
|
|
750
|
+
quote: TickerFinancials["quote"],
|
|
751
|
+
fundamentals: TickerFinancials["fundamentals"],
|
|
752
|
+
profile: TickerFinancials["profile"],
|
|
753
|
+
): FundamentalsMetric[] {
|
|
754
|
+
const finite = (value: number | undefined): value is number => value != null && Number.isFinite(value);
|
|
755
|
+
const float = fundamentals?.floatShares;
|
|
756
|
+
const short = fundamentals?.sharesShort;
|
|
757
|
+
const days = fundamentals?.shortRatio;
|
|
758
|
+
const date = fundamentals?.shortInterestDate;
|
|
759
|
+
const receipt = finite(float) && sharesOutstandingInReceipts(quote, fundamentals, profile?.description);
|
|
760
|
+
const floatAsOf = finite(float) && float > 0 ? fundamentals?.floatSharesAsOf : undefined;
|
|
761
|
+
return [
|
|
762
|
+
finite(float) && float > 0
|
|
763
|
+
? { label: "Float", text: datedCount(float, floatAsOf), value: float, ...(receipt ? { unit: "ADR equivalent" } : {}) }
|
|
764
|
+
: { label: "Float", text: "—" },
|
|
765
|
+
...floatAsOf ? [{ label: "Float As Of", text: floatAsOf, value: floatAsOf, exportOnly: true }] : [],
|
|
766
|
+
finite(short)
|
|
767
|
+
? { label: "Short Interest", text: `${formatCompact(short)}${date ? ` (settled ${date})` : ""}`, value: short, unit: "shares" }
|
|
768
|
+
: { label: "Short Interest", text: "—" },
|
|
769
|
+
...finite(short) && date ? [{ label: "Short Interest Settlement", text: date, value: date, exportOnly: true }] : [],
|
|
770
|
+
{ label: "Short % of Float", ...percentFigure(fundamentals?.shortPercentOfFloat, formatFractionPercentCell) },
|
|
771
|
+
finite(days) ? { label: "Days to Cover", text: formatNumber(days, 2), value: days } : { label: "Days to Cover", text: "—" },
|
|
772
|
+
];
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
function metricLines(metrics: readonly FundamentalsMetric[]): Array<[string, string]> {
|
|
776
|
+
return metrics.filter((metric) => !metric.exportOnly).map((metric) => [metric.label, metric.text]);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
const TRAILING_MONEY_METRICS = new Set(["EPS (TTM)", "Revenue (TTM)", "Net Income (TTM)", "Operating Cash Flow (TTM)", "Free Cash Flow (TTM)"]);
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* The notes under shown fundamentals: a market cap shown as the share count times the price and the provider's, how a labelled or
|
|
783
|
+
* withdrawn EV compares with market cap + debt - cash, what a converted TTM block was converted from, an EPS in
|
|
784
|
+
* another currency than the amounts beside it, and what a P/E on such an EPS divides. `priced` is the snapshot at
|
|
785
|
+
* the regular session price (atRegularSessionPrice), the figures the lines show, so each note reads those.
|
|
786
|
+
*/
|
|
787
|
+
function fundamentalsNotes(
|
|
788
|
+
priced: Pick<TickerFinancials, "quote" | "fundamentals">,
|
|
789
|
+
metrics: readonly FundamentalsMetric[],
|
|
790
|
+
quoteCurrency: string | undefined,
|
|
791
|
+
): string[] {
|
|
792
|
+
const fundamentals = priced.fundamentals;
|
|
793
|
+
const shown = (label: string) => metrics.some((metric) => metric.label === label && metric.text !== "—");
|
|
794
|
+
// The cap shown is the share count times the price where the provider's sits more than 2% from it; the note names the provider's.
|
|
795
|
+
const shareBasis = shown("Market Cap")
|
|
796
|
+
? marketCapBasisNote(viewMarketCapitalization(priced.quote, fundamentals, regularSessionValuationPrice(priced.quote)))
|
|
797
|
+
: undefined;
|
|
798
|
+
const conversion = [...TRAILING_MONEY_METRICS].some(shown) ? ttmConversionNote(fundamentals) : undefined;
|
|
799
|
+
const eps = shown("EPS (TTM)") ? epsConversionNote(fundamentals) : undefined;
|
|
800
|
+
const priceEarnings = metrics.some((metric) => metric.label === "P/E (TTM)" && typeof metric.value === "number")
|
|
801
|
+
? convertedPriceEarningsNote(fundamentals, quoteCurrency)
|
|
802
|
+
: undefined;
|
|
803
|
+
// Why the EV is labelled, withdrawn or N/M; for an insurer's, what Gloom Cloud computed it from.
|
|
804
|
+
const enterpriseValue = shown("Enterprise Value")
|
|
805
|
+
? enterpriseValueReconciliationNote(fundamentals) ?? computedEnterpriseValueNote(fundamentals)
|
|
806
|
+
: undefined;
|
|
807
|
+
return [shareBasis, enterpriseValue, conversion, eps, priceEarnings].filter((note): note is string => !!note);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
// The share count is the market cap's basis: the cap is the count times the price, or a note says why not.
|
|
811
|
+
const VALUATION_METRICS = new Set(["Market Cap", "Shares Outstanding", "Shares Outstanding As Of", "Enterprise Value", "P/E (TTM)", "Forward P/E", "PEG", "EPS (TTM)"]);
|
|
812
|
+
|
|
813
|
+
type FundamentalsReportData = TickerFinancials & {
|
|
814
|
+
symbol: string;
|
|
815
|
+
exchange?: string;
|
|
816
|
+
distributions?: DividendDistributions | null;
|
|
817
|
+
/** A bond fund's SEC yield, yield to worst and duration (loadReportBondFacts). */
|
|
818
|
+
bondFund?: FundBondFacts | null;
|
|
819
|
+
/** `fundamentals --tax-rate`: the tax-equivalent yield and muni/Treasury ratio. */
|
|
820
|
+
taxEquivalent?: TaxEquivalentAnalysis | null;
|
|
821
|
+
/** The filings behind the latest statements, and a newer quarter's results release. */
|
|
822
|
+
statementFilings?: StatementFilingsReport | null;
|
|
823
|
+
/** A bank holding company's deposits, uninsured share and CRE (`fundamentals` only). */
|
|
824
|
+
bank?: BankFiguresPayload | null;
|
|
825
|
+
/** In place of `bank`, for a bank whose figures could not be read. */
|
|
826
|
+
bankNote?: string | null;
|
|
827
|
+
/** A base currency other than USD: every amount reads with its code (`writesCurrencyCodes`). */
|
|
828
|
+
currencyCodes?: boolean;
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
/** "Latest quarter 2026-06-30, 10-Q filed 2026-08-06." and the newer quarter's results release, for the lines under a report's figures. */
|
|
832
|
+
function statementFilingsNotes(report: StatementFilingsReport | null | undefined): string[] {
|
|
833
|
+
if (!report) return [];
|
|
834
|
+
const latest = report.latestQuarter ?? report.latestAnnual;
|
|
835
|
+
return [
|
|
836
|
+
...latest ? [`Latest ${report.latestQuarter ? "quarter" : "annual period"} ${statementPeriodText(latest.date, latest)}.`] : [],
|
|
837
|
+
...report.resultsRelease ? [resultsReleaseText(report.resultsRelease)] : [],
|
|
838
|
+
];
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Where a fund's facts are: for a US listing, the ETF function (fee, NAV,
|
|
843
|
+
* premium, net assets); a fund listed elsewhere has none yet. Only for a
|
|
844
|
+
* fund: a stock's report says nothing of it.
|
|
845
|
+
*/
|
|
846
|
+
function fundFactsNote(
|
|
847
|
+
symbol: string,
|
|
848
|
+
exchange: string | undefined,
|
|
849
|
+
financials: Pick<TickerFinancials, "quote" | "quoteMetadata">,
|
|
850
|
+
tickerFile: TickerRecord | null = null,
|
|
851
|
+
): string | null {
|
|
852
|
+
if (resolveTickerInstrumentKind(tickerFile, financials) !== "fund") return null;
|
|
853
|
+
return !exchange || isUsListingExchange(exchange)
|
|
854
|
+
? `Fund facts (fee, NAV, premium, net assets): fn ETF ${symbol}.`
|
|
855
|
+
: US_FUND_FACTS_ONLY;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* The price a valuation is measured at, as `quote` and `ticker` read it: Last
|
|
860
|
+
* and Change are the regular session (after the close, its close and that
|
|
861
|
+
* close's move), and a pre-market, after-hours or overnight print is a line
|
|
862
|
+
* of its own, measured from that close.
|
|
863
|
+
*/
|
|
864
|
+
function valuationPriceMetrics(financials: FundamentalsReportData): FundamentalsMetric[] {
|
|
865
|
+
const quote = financials.quote;
|
|
866
|
+
const session = getRegularSessionDisplay(quote);
|
|
867
|
+
if (!quote || !session) return [];
|
|
868
|
+
const options = withCurrencyMinorDigits({
|
|
869
|
+
...quoteFormatOptions(quote, undefined, financials.quoteMetadata?.instrumentType),
|
|
870
|
+
...financials.currencyCodes ? { currencyCode: true } : {},
|
|
871
|
+
}, quote.currency);
|
|
872
|
+
const price = (value: number) => formatMarketPriceWithCurrency(value, quote.currency, options);
|
|
873
|
+
const extended = getExtendedSessionDisplay(quote);
|
|
874
|
+
const extendedLabel = extended ? EXTENDED_SESSION_LABELS[extended.session] : "";
|
|
875
|
+
return [
|
|
876
|
+
{ label: "Last", text: price(session.price), value: session.price, unit: quote.currency },
|
|
877
|
+
session.changePercent != null && Number.isFinite(session.changePercent)
|
|
878
|
+
? {
|
|
879
|
+
label: "Change",
|
|
880
|
+
// With what the move is measured from, as `ticker` and `quote` say it: "vs Fri 16 Oct close".
|
|
881
|
+
text: quoteChangeText(quote, session, options),
|
|
882
|
+
value: session.changePercent,
|
|
883
|
+
unit: "%",
|
|
884
|
+
}
|
|
885
|
+
: { label: "Change", text: "—" },
|
|
886
|
+
...extended ? [
|
|
887
|
+
{
|
|
888
|
+
label: extendedLabel,
|
|
889
|
+
// "mid" when the overnight price is the session's bid and ask midpoint, as `quote` marks it.
|
|
890
|
+
text: colorBySign(`${price(extended.price)}${extended.mark ? " mid" : ""}${extended.changePercent != null ? ` (${formatPercentRaw(extended.changePercent)})` : ""}`, extended.change),
|
|
891
|
+
value: extended.price,
|
|
892
|
+
unit: quote.currency,
|
|
893
|
+
},
|
|
894
|
+
extended.changePercent != null
|
|
895
|
+
? { label: `${extendedLabel} Change`, text: formatPercentRaw(extended.changePercent), value: extended.changePercent, unit: "%", exportOnly: true }
|
|
896
|
+
: { label: `${extendedLabel} Change`, text: "—" },
|
|
897
|
+
] : [],
|
|
898
|
+
];
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* The lines `fundamentals` or `valuation` reports, the ones with a value.
|
|
903
|
+
* Market cap, the P/E multiples and the dividend yield are measured at the
|
|
904
|
+
* regular session price (atRegularSessionPrice), which `valuation` names in
|
|
905
|
+
* its first lines.
|
|
906
|
+
*/
|
|
907
|
+
function fundamentalsReportMetrics(snapshot: FundamentalsReportData, view: "fundamentals" | "valuation"): FundamentalsMetric[] {
|
|
908
|
+
const financials = atRegularSessionPrice(snapshot);
|
|
909
|
+
const quote = financials.quote;
|
|
910
|
+
const fundamentals = financials.fundamentals;
|
|
911
|
+
const capitalization = viewMarketCapitalization(quote, fundamentals, regularSessionValuationPrice(quote));
|
|
912
|
+
const marketCap: MetricFigure = capitalization
|
|
913
|
+
? { text: `${formatCompact(capitalization.value)} ${capitalization.currency}`, value: capitalization.value, unit: capitalization.currency }
|
|
914
|
+
: { text: "—" };
|
|
915
|
+
const metrics = fundamentalsMetrics(quote, fundamentals, financials.profile, marketCap, computeTickerPriceReturns(financials), fundamentalsCurrency(financials),
|
|
916
|
+
undefined, snapshot.distributions ?? null, snapshot.bondFund ?? null, snapshot.currencyCodes === true);
|
|
917
|
+
if (view === "fundamentals") {
|
|
918
|
+
return [...metrics, ...floatAndShortInterestMetrics(quote, fundamentals, financials.profile)]
|
|
919
|
+
.filter((metric) => metric.text !== "—");
|
|
920
|
+
}
|
|
921
|
+
const valued = metrics.filter(({ label, text }) => (VALUATION_METRICS.has(label) || isYieldMetric(label)) && text !== "—");
|
|
922
|
+
// The share count follows the market cap it is the basis of.
|
|
923
|
+
const isShares = (label: string) => label === "Shares Outstanding" || label === "Shares Outstanding As Of";
|
|
924
|
+
const shares = valued.filter((metric) => isShares(metric.label));
|
|
925
|
+
const valuation = valued.flatMap((metric) => isShares(metric.label) ? [] : metric.label === "Market Cap" ? [metric, ...shares] : [metric]);
|
|
926
|
+
// A listing with no valuation (a fund) says so rather than printing its price alone.
|
|
927
|
+
return valuation.length === 0 ? [] : [...valuationPriceMetrics(financials).filter((metric) => metric.text !== "—"), ...valuation];
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/** Text for `gloom fundamentals` and `gloom valuation`: the ticker report's fundamentals without the rest. */
|
|
931
|
+
export function renderFundamentalsReport(
|
|
932
|
+
financials: FundamentalsReportData,
|
|
933
|
+
view: "fundamentals" | "valuation",
|
|
934
|
+
): string {
|
|
935
|
+
const quote = financials.quote;
|
|
936
|
+
const profile = financials.profile;
|
|
937
|
+
const symbol = quote?.symbol ?? financials.symbol;
|
|
938
|
+
const name = quote?.name && quote.name !== symbol ? ` ${cliStyles.bold(quote.name)}` : "";
|
|
939
|
+
const lines = [`${cliStyles.accent(symbol)}${name}`];
|
|
940
|
+
const profileParts = [
|
|
941
|
+
financials.exchange ? exchangeLabel(financials.exchange) : undefined,
|
|
942
|
+
profile?.sector ? `Sector ${profile.sector}` : undefined,
|
|
943
|
+
profile?.industry ? `Industry ${profile.industry}` : undefined,
|
|
944
|
+
].filter((part): part is string => !!part);
|
|
945
|
+
if (profileParts.length > 0) lines.push(cliStyles.muted(profileParts.join(METADATA_SEPARATOR)));
|
|
946
|
+
|
|
947
|
+
const before = lines.length;
|
|
948
|
+
const metrics = fundamentalsReportMetrics(financials, view);
|
|
949
|
+
appendMetricSection(lines, view === "valuation" ? "Valuation" : "Fundamentals", metricLines(metrics));
|
|
950
|
+
const fund = fundFactsNote(symbol, financials.exchange || quote?.exchangeName, financials);
|
|
951
|
+
if (lines.length === before) lines.push("", cliStyles.muted([`No ${view} reported for ${financials.symbol}.`, fund].filter(Boolean).join(" ")));
|
|
952
|
+
else if (fund) lines.push(cliStyles.muted(fund));
|
|
953
|
+
for (const note of fundamentalsNotes(atRegularSessionPrice(financials), metrics, quote?.currency)) lines.push(cliStyles.muted(note));
|
|
954
|
+
if (view === "fundamentals") {
|
|
955
|
+
if (financials.taxEquivalent) {
|
|
956
|
+
appendMetricSection(lines, "Tax-Equivalent Yield", taxEquivalentLines(financials.taxEquivalent).map((line) => [line.label, line.text]));
|
|
957
|
+
}
|
|
958
|
+
for (const note of statementFilingsNotes(financials.statementFilings)) lines.push(cliStyles.muted(note));
|
|
959
|
+
const bank = financials.bank ? bankSection(financials.bank, symbol, bankSectionContext(financials)) : null;
|
|
960
|
+
if (bank) {
|
|
961
|
+
appendMetricSection(lines, "Bank", bank.lines);
|
|
962
|
+
for (const note of bank.notes) lines.push(cliStyles.muted(note));
|
|
963
|
+
} else if (financials.bankNote) {
|
|
964
|
+
lines.push("", renderSection("Bank"), cliStyles.muted(financials.bankNote));
|
|
965
|
+
}
|
|
966
|
+
appendDescription(lines, profile);
|
|
967
|
+
}
|
|
968
|
+
return lines.join("\n");
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/** What the Bank section reads from the rest of the report: the newest statement period, and the annual report form. */
|
|
972
|
+
function bankSectionContext(financials: FundamentalsReportData) {
|
|
973
|
+
return {
|
|
974
|
+
latestStatementDate: [...financials.quarterlyStatements, ...financials.annualStatements].map((row) => row.date).sort().at(-1) ?? null,
|
|
975
|
+
annualReportForm: financials.statementFilings?.annualReportForm ?? null,
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* `fundamentals` and `valuation` for `--csv` and `--ndjson`: the metrics as
|
|
981
|
+
* `Metric,Value` with each unit in its label, and for `fundamentals` the
|
|
982
|
+
* company profile the text prints around them.
|
|
983
|
+
*/
|
|
984
|
+
export function fundamentalsReportTables(
|
|
985
|
+
financials: FundamentalsReportData,
|
|
986
|
+
view: "fundamentals" | "valuation",
|
|
987
|
+
freshness: ReportFreshness,
|
|
988
|
+
): CliReportTables {
|
|
989
|
+
const metrics = fundamentalsReportMetrics(financials, view);
|
|
990
|
+
const fund = fundFactsNote(financials.quote?.symbol ?? financials.symbol, financials.exchange || financials.quote?.exchangeName, financials);
|
|
991
|
+
const tables = [exportEntriesTable(
|
|
992
|
+
view === "valuation" ? "Valuation" : "Fundamentals",
|
|
993
|
+
metrics.map((metric) => ({ label: metric.label, value: metric.value, formatted: metric.text, unit: metric.unit })),
|
|
994
|
+
)];
|
|
995
|
+
const bank = view === "fundamentals" && financials.bank
|
|
996
|
+
? bankSection(financials.bank, financials.quote?.symbol ?? financials.symbol, bankSectionContext(financials))
|
|
997
|
+
: null;
|
|
998
|
+
if (view === "fundamentals" && financials.taxEquivalent) {
|
|
999
|
+
tables.push(exportEntriesTable("Tax-Equivalent Yield", taxEquivalentLines(financials.taxEquivalent)
|
|
1000
|
+
.map((line) => ({ label: line.label, value: line.value, formatted: line.text, unit: line.unit }))));
|
|
1001
|
+
}
|
|
1002
|
+
if (bank) tables.push(exportEntriesTable("Bank", bank.entries));
|
|
1003
|
+
if (view === "fundamentals") {
|
|
1004
|
+
const quote = financials.quote;
|
|
1005
|
+
const profile = financials.profile;
|
|
1006
|
+
tables.push(exportEntriesTable("Profile", [
|
|
1007
|
+
{ label: "Symbol", value: quote?.symbol ?? financials.symbol },
|
|
1008
|
+
{ label: "Name", value: quote?.name },
|
|
1009
|
+
{ label: "Exchange", value: financials.exchange ? exchangeLabel(financials.exchange) : undefined },
|
|
1010
|
+
{ label: "Sector", value: profile?.sector },
|
|
1011
|
+
{ label: "Industry", value: profile?.industry },
|
|
1012
|
+
{ label: "Description", value: profile?.description?.trim() },
|
|
1013
|
+
...profile?.description?.trim() && profile.descriptionSource ? [
|
|
1014
|
+
{ label: "Description Source", value: profile.descriptionSource.publisher },
|
|
1015
|
+
{ label: "Description URL", value: profile.descriptionSource.url },
|
|
1016
|
+
] : [],
|
|
1017
|
+
].filter((entry) => typeof entry.value === "string" && entry.value.trim().length > 0)));
|
|
1018
|
+
}
|
|
1019
|
+
return {
|
|
1020
|
+
tables,
|
|
1021
|
+
footer: reportFooterLines({
|
|
1022
|
+
freshness,
|
|
1023
|
+
notes: [
|
|
1024
|
+
...metrics.length === 0
|
|
1025
|
+
? [`No ${view} reported for ${financials.symbol}.`]
|
|
1026
|
+
: fundamentalsNotes(atRegularSessionPrice(financials), metrics, financials.quote?.currency),
|
|
1027
|
+
...fund ? [fund] : [],
|
|
1028
|
+
...view === "fundamentals" ? statementFilingsNotes(financials.statementFilings) : [],
|
|
1029
|
+
...bank?.notes ?? [],
|
|
1030
|
+
...!bank && view === "fundamentals" && financials.bankNote ? [financials.bankNote] : [],
|
|
1031
|
+
],
|
|
1032
|
+
}),
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
/** "Euronext Paris (EPA)": the venue the report is for, named in full when the app knows it. */
|
|
1037
|
+
function listingVenueLabel(
|
|
1038
|
+
listingExchange: string | undefined,
|
|
1039
|
+
quote: TickerFinancials["quote"],
|
|
1040
|
+
financials: TickerFinancials,
|
|
1041
|
+
tickerFile: TickerRecord | null,
|
|
1042
|
+
): string {
|
|
1043
|
+
const exchangeName = quote?.exchangeName ?? financials.quoteMetadata?.listingExchangeName ?? tickerFile?.metadata.exchange;
|
|
1044
|
+
// A KOSDAQ code saved on KRX is reported from KOSDAQ, where its quote is read.
|
|
1045
|
+
const venue = canonicalExchange(quote?.tradingExchangeName || listingExchange || quote?.listingExchangeName || exchangeName);
|
|
1046
|
+
return isKnownExchangeCode(venue) ? exchangeLabel(venue) : exchangeShortName(exchangeName, quote?.fullExchangeName);
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
export async function buildTickerReport({
|
|
1050
|
+
symbol,
|
|
1051
|
+
listingExchange,
|
|
1052
|
+
tickerFile,
|
|
1053
|
+
financials,
|
|
1054
|
+
config,
|
|
1055
|
+
toBase,
|
|
1056
|
+
notes,
|
|
1057
|
+
quoteNote,
|
|
1058
|
+
listingNote,
|
|
1059
|
+
recentNews = [],
|
|
1060
|
+
recentSecFilings = [],
|
|
1061
|
+
hiddenSecFilings = NOTHING_HIDDEN,
|
|
1062
|
+
futuresContract = null,
|
|
1063
|
+
usdPerMmbtu = null,
|
|
1064
|
+
distributions = null,
|
|
1065
|
+
statementFilings = null,
|
|
1066
|
+
bondFund = null,
|
|
1067
|
+
memberships,
|
|
1068
|
+
offerings = [],
|
|
1069
|
+
}: {
|
|
1070
|
+
symbol: string;
|
|
1071
|
+
/** The lists holding the company, by any of its listings (loadCompanyMemberships); the saved listing's own lists when absent. */
|
|
1072
|
+
memberships?: CompanyMemberships;
|
|
1073
|
+
/** The filings behind the latest statements, and a newer quarter's results release. */
|
|
1074
|
+
statementFilings?: StatementFilingsReport | null;
|
|
1075
|
+
/** The company's latest offering prospectuses (424B5, 424B4); those after the latest balance sheet get a note. */
|
|
1076
|
+
offerings?: readonly OfferingFiling[];
|
|
1077
|
+
/** A bond fund's SEC yield, yield to worst and duration (loadReportBondFacts). */
|
|
1078
|
+
bondFund?: FundBondFacts | null;
|
|
1079
|
+
/** The distributions a dividend yield is read with (loadDividendDistributions). */
|
|
1080
|
+
distributions?: DividendDistributions | null;
|
|
1081
|
+
/** The exchange the command named, as a canonical code. */
|
|
1082
|
+
listingExchange?: string;
|
|
1083
|
+
/** A futures symbol's contract terms and latest confirmed settlement. */
|
|
1084
|
+
futuresContract?: FuturesContractTermsPayload | null;
|
|
1085
|
+
/** A per-MWh gas price (Dutch TTF) in dollars per MMBtu, at the day's rate. */
|
|
1086
|
+
usdPerMmbtu?: UsdPerMmbtu | null;
|
|
1087
|
+
tickerFile: TickerRecord | null;
|
|
1088
|
+
financials: TickerFinancials;
|
|
1089
|
+
config: AppConfig;
|
|
1090
|
+
toBase: ReportBaseConverter;
|
|
1091
|
+
notes?: string;
|
|
1092
|
+
/** Why there is no quote, when a source said; "Quote unavailable." otherwise. */
|
|
1093
|
+
quoteNote?: string;
|
|
1094
|
+
/** "CAR = Avis Budget Group, NASDAQ (also XETRA, ASX)", for a bare symbol several companies list. */
|
|
1095
|
+
listingNote?: string;
|
|
1096
|
+
recentNews?: NewsArticle[];
|
|
1097
|
+
recentSecFilings?: SecFilingItem[];
|
|
1098
|
+
/** What `recentSecFilings` left out. */
|
|
1099
|
+
hiddenSecFilings?: HiddenFilings;
|
|
1100
|
+
}): Promise<string> {
|
|
1101
|
+
const quote = financials.quote;
|
|
1102
|
+
const fundamentals = financials.fundamentals;
|
|
1103
|
+
const priceReturns = computeTickerPriceReturns(financials, tickerFile?.metadata.assetCategory);
|
|
1104
|
+
const profile = financials.profile;
|
|
1105
|
+
const name = quote?.name || tickerFile?.metadata.name || symbol;
|
|
1106
|
+
const baseQuoteOptions = quoteFormatOptions(quote, tickerFile?.metadata.assetCategory, financials.quoteMetadata?.instrumentType);
|
|
1107
|
+
const baseCurrency = config.baseCurrency.trim().toUpperCase();
|
|
1108
|
+
const codes = writesCurrencyCodes(config);
|
|
1109
|
+
const rates: ReportRateNotes = {
|
|
1110
|
+
noted: new Set(),
|
|
1111
|
+
boughtAt: boughtRateCurrencies(tickerFile, quote?.currency?.trim() || tickerFile?.metadata.currency?.trim() || "", config.baseCurrency),
|
|
1112
|
+
};
|
|
1113
|
+
// Pad money prices to the currency's minor unit so a range reads £35.10 - £35.485, never past it (JPY has none).
|
|
1114
|
+
const quoteOptions = withCurrencyMinorDigits(codes ? { ...baseQuoteOptions, currencyCode: true } : baseQuoteOptions, quote?.currency);
|
|
1115
|
+
const lines: string[] = [];
|
|
1116
|
+
|
|
1117
|
+
lines.push(`${cliStyles.accent(quote?.symbol ?? symbol)} ${cliStyles.bold(name)}`);
|
|
1118
|
+
if (!quote) lines.push(cliStyles.muted(quoteNote ?? QUOTE_UNAVAILABLE));
|
|
1119
|
+
|
|
1120
|
+
const quoteCurrency = quote?.currency || financials.quoteMetadata?.currency || tickerFile?.metadata.currency;
|
|
1121
|
+
// An index's level is in points, as `history` heads its bars, not in the currency its members trade in.
|
|
1122
|
+
const indexLevel = isIndexLevel(quote?.instrumentType?.trim() || financials.quoteMetadata?.instrumentType?.trim() || tickerFile?.metadata.assetCategory);
|
|
1123
|
+
const summaryParts = [
|
|
1124
|
+
listingVenueLabel(listingExchange, quote, financials, tickerFile) || undefined,
|
|
1125
|
+
indexLevel ? INDEX_POINTS_LABEL : quoteCurrency ? `Currency ${currencyCodeLabel(quoteCurrency)}` : undefined,
|
|
1126
|
+
quoteMarketStateLabel(quote) ?? undefined,
|
|
1127
|
+
// A listing that no longer trades has no delay to speak of: its quote is its last session's close.
|
|
1128
|
+
quote?.dataSource && !quote.delisting ? `Source ${quote.dataSource.toUpperCase()}` : undefined,
|
|
1129
|
+
].filter((part): part is string => !!part);
|
|
1130
|
+
if (summaryParts.length > 0) {
|
|
1131
|
+
lines.push(cliStyles.muted(summaryParts.join(METADATA_SEPARATOR)));
|
|
1132
|
+
}
|
|
1133
|
+
if (listingNote) lines.push(cliStyles.muted(listingNote));
|
|
1134
|
+
|
|
1135
|
+
const instrumentType = instrumentTypeLabel(quote?.instrumentType?.trim()
|
|
1136
|
+
|| financials.quoteMetadata?.instrumentType?.trim()
|
|
1137
|
+
|| tickerFile?.metadata.assetCategory, name, { detail: true });
|
|
1138
|
+
const metadataParts = [
|
|
1139
|
+
instrumentType ? `Type ${instrumentType}` : undefined,
|
|
1140
|
+
(tickerFile?.metadata.sector || profile?.sector) ? `Sector ${tickerFile?.metadata.sector || profile?.sector}` : undefined,
|
|
1141
|
+
(tickerFile?.metadata.industry || profile?.industry) ? `Industry ${tickerFile?.metadata.industry || profile?.industry}` : undefined,
|
|
1142
|
+
].filter((part): part is string => !!part);
|
|
1143
|
+
if (metadataParts.length > 0) {
|
|
1144
|
+
lines.push(cliStyles.muted(metadataParts.join(METADATA_SEPARATOR)));
|
|
1145
|
+
}
|
|
1146
|
+
// A receipt and its home line each state the ratio, and where the two are compared.
|
|
1147
|
+
const depositaryPair = listingDepositaryPair(financials);
|
|
1148
|
+
if (depositaryPair) {
|
|
1149
|
+
lines.push(cliStyles.muted(`ADR ratio ${depositaryPairText(depositaryPair, isReceiptSide(financials))}. Implied FX and premium: gloom fn ADR ${quote?.symbol ?? symbol}`));
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
// A list that holds the company as another of its listings says which: "Watchlists R (as RCI.B:TSX)".
|
|
1153
|
+
const lists = memberships ?? companyMemberships(config, tickerFile, [], null);
|
|
1154
|
+
const listNames = (held: readonly ListMembership[]) => held.map((list) => list.via ? `${list.name} (as ${list.via})` : list.name).join(", ");
|
|
1155
|
+
const membershipParts = [
|
|
1156
|
+
lists.portfolios.length > 0
|
|
1157
|
+
? `Portfolios ${listNames(lists.portfolios)}`
|
|
1158
|
+
: undefined,
|
|
1159
|
+
lists.watchlists.length > 0
|
|
1160
|
+
? `Watchlists ${listNames(lists.watchlists)}`
|
|
1161
|
+
: undefined,
|
|
1162
|
+
].filter((part): part is string => !!part);
|
|
1163
|
+
if (membershipParts.length > 0) {
|
|
1164
|
+
lines.push(cliStyles.muted(membershipParts.join(METADATA_SEPARATOR)));
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
// Market cap and the multiples are measured at the regular session price the Quote section heads with.
|
|
1168
|
+
const priced = atRegularSessionPrice(financials);
|
|
1169
|
+
const capitalization = viewMarketCapitalization(priced.quote, priced.fundamentals, regularSessionValuationPrice(priced.quote));
|
|
1170
|
+
// Market cap and EV read in the currency they are reported in, as the revenue and income beside them do,
|
|
1171
|
+
// with the base currency's figure after them when it differs: 627.2B USD (878.15B CAD).
|
|
1172
|
+
const convertedCurrencies = new Set<string>();
|
|
1173
|
+
const inBase = async (value: number, currency: string): Promise<string> => {
|
|
1174
|
+
// A minor unit converts as the hundredth of its currency it is: 2.75T GBp is 27.5B GBP, never 2.75T GBP.
|
|
1175
|
+
const unit = heldCurrencyUnit(currency);
|
|
1176
|
+
if (!unit.currency || (unit.currency === baseCurrency && unit.divisor === 1)) return "";
|
|
1177
|
+
const major = value / unit.divisor;
|
|
1178
|
+
const converted = unit.currency === baseCurrency ? major : await toBase(major, unit.currency);
|
|
1179
|
+
if (!Number.isFinite(converted)) return "";
|
|
1180
|
+
if (unit.currency !== baseCurrency) convertedCurrencies.add(unit.currency);
|
|
1181
|
+
return ` (${formatCompact(converted)} ${baseCurrency})`;
|
|
1182
|
+
};
|
|
1183
|
+
const marketCapText = capitalization
|
|
1184
|
+
? `${formatCompact(capitalization.value)} ${capitalization.currency}${await inBase(capitalization.value, capitalization.currency)}`
|
|
1185
|
+
: "—";
|
|
1186
|
+
// Shown in the same currency as the market cap, so the two can be compared.
|
|
1187
|
+
const enterpriseValue = reportedEnterpriseValue(priced.fundamentals);
|
|
1188
|
+
const evCurrency = enterpriseValueCurrency(quote, fundamentals);
|
|
1189
|
+
const enterpriseValueText = `${formatReportedMoney(enterpriseValue, evCurrency)}${enterpriseValue != null && evCurrency
|
|
1190
|
+
? await inBase(enterpriseValue, evCurrency) : ""}`;
|
|
1191
|
+
|
|
1192
|
+
if (quote) {
|
|
1193
|
+
// As the Overview reads it: the regular session, then the extended-hours print against its close.
|
|
1194
|
+
const session = getRegularSessionDisplay(quote)!;
|
|
1195
|
+
const extended = getExtendedSessionDisplay(quote);
|
|
1196
|
+
const extendedRow = (kind: "PRE" | "POST") => extended?.session === kind
|
|
1197
|
+
? colorBySign(
|
|
1198
|
+
`${formatMarketPriceWithCurrency(extended.price, quote.currency, quoteOptions)} (${formatPercentRaw(extended.changePercent)})`,
|
|
1199
|
+
extended.change,
|
|
1200
|
+
)
|
|
1201
|
+
: "—";
|
|
1202
|
+
const volume = reportedQuoteVolume(quote);
|
|
1203
|
+
// A futures price is its latest trade; the exchange settlement is its own row, dated by its session.
|
|
1204
|
+
appendMetricSection(lines, "Quote", [
|
|
1205
|
+
// A price in cents says what it is per: 314.95¢/lb.
|
|
1206
|
+
["Last", colorBySign(`${formatMarketPriceWithCurrency(session.price, quote.currency, quoteOptions)}${futuresPricePer(futuresContract, quote.currency)}`, session.change)],
|
|
1207
|
+
...futuresContract
|
|
1208
|
+
? [["Settle", quoteSettleText(quote, futuresContract)] as [string, string]]
|
|
1209
|
+
: [],
|
|
1210
|
+
// The move says what it is measured from: "vs Fri 16 Oct close", a future's "vs Fri 16 Oct settle".
|
|
1211
|
+
["Change", quoteChangeText(quote, session, quoteOptions, futuresContract)],
|
|
1212
|
+
// European gas beside Henry Hub: "≈ $30.832/MMBtu at EUR/USD 1.1650", a conversion that says so.
|
|
1213
|
+
...usdPerMmbtu ? [["In USD", usdPerMmbtuText(usdPerMmbtu)] as [string, string]] : [],
|
|
1214
|
+
["Open", quote.open != null ? formatMarketPriceWithCurrency(quote.open, quote.currency, quoteOptions) : "—"],
|
|
1215
|
+
// A listing that no longer trades: its last session's range, never today's.
|
|
1216
|
+
[quote.delisting ? "Last Session" : "Day Range", quote.low != null || quote.high != null
|
|
1217
|
+
? formatPriceRange(quote.low, quote.high, quote.currency, quoteOptions)
|
|
1218
|
+
: "—"],
|
|
1219
|
+
["52W Range", quote.low52w != null || quote.high52w != null
|
|
1220
|
+
? formatPriceRange(quote.low52w, quote.high52w, quote.currency, quoteOptions)
|
|
1221
|
+
: "—"],
|
|
1222
|
+
["Bid / Ask", bidAskText(quote, quoteOptions)],
|
|
1223
|
+
// An index's and a perpetual's 0 means none is counted, not no trades: no Volume row.
|
|
1224
|
+
["Volume", volume != null ? formatNumber(volume, 0) : "—"],
|
|
1225
|
+
["Updated", formatTimestamp(quoteHeadlineTime(quote))],
|
|
1226
|
+
]);
|
|
1227
|
+
|
|
1228
|
+
if (futuresContract) appendMetricSection(lines, "Contract", futuresContractMetrics(futuresContract, quote.symbol ?? symbol));
|
|
1229
|
+
|
|
1230
|
+
appendMetricSection(lines, "Extended Hours", [
|
|
1231
|
+
[EXTENDED_SESSION_LABELS.PRE, extendedRow("PRE")],
|
|
1232
|
+
[EXTENDED_SESSION_LABELS.POST, extendedRow("POST")],
|
|
1233
|
+
]);
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
const metrics = fundamentalsMetrics(quote, priced.fundamentals, profile, { text: marketCapText }, priceReturns, fundamentalsCurrency(financials),
|
|
1237
|
+
{ text: enterpriseValueText }, distributions, bondFund, codes);
|
|
1238
|
+
const reportedCurrency = financials.financialCurrency?.trim();
|
|
1239
|
+
const statements = [...financials.annualStatements, ...financials.quarterlyStatements];
|
|
1240
|
+
const fallbackCurrency = reportedCurrency && statements.every((row) => !row.currency?.trim() || row.currency.trim() === reportedCurrency)
|
|
1241
|
+
? reportedCurrency : undefined;
|
|
1242
|
+
const statementCurrency = (row: FinancialStatement) => row.currency?.trim() || fallbackCurrency;
|
|
1243
|
+
const latestAnnual = latestFinancialPeriod(financials.annualStatements, row => row.date);
|
|
1244
|
+
const latestQuarter = latestFinancialPeriod(financials.quarterlyStatements, row => row.date);
|
|
1245
|
+
|
|
1246
|
+
const beforeFundamentals = lines.length;
|
|
1247
|
+
appendMetricSection(lines, "Fundamentals", metricLines(metrics));
|
|
1248
|
+
for (const note of fundamentalsNotes(priced, metrics, quote?.currency)) lines.push(cliStyles.muted(note));
|
|
1249
|
+
// The trailing block beside statements in another currency, when no conversion says why.
|
|
1250
|
+
const split = metrics.some((metric) => TRAILING_MONEY_METRICS.has(metric.label) && metric.text !== "—")
|
|
1251
|
+
? ttmCurrencySplitNote(priced.fundamentals, [latestAnnual, latestQuarter].flatMap((row) => row ? [statementCurrency(row)] : []))
|
|
1252
|
+
: undefined;
|
|
1253
|
+
if (split) lines.push(cliStyles.muted(split));
|
|
1254
|
+
if (lines.length > beforeFundamentals) for (const note of conversionNotes(toBase, convertedCurrencies, rates)) lines.push(cliStyles.muted(note));
|
|
1255
|
+
// Where a fund's facts would go: under its fundamentals, or in their place.
|
|
1256
|
+
const fund = fundFactsNote(quote?.symbol ?? symbol,
|
|
1257
|
+
quote?.tradingExchangeName || listingExchange || quote?.listingExchangeName || quote?.exchangeName || tickerFile?.metadata.exchange, financials, tickerFile);
|
|
1258
|
+
if (fund) lines.push(...lines.length === beforeFundamentals ? [""] : [], cliStyles.muted(fund));
|
|
1259
|
+
|
|
1260
|
+
if (capitalization?.provenance.kind === "fundamentals") {
|
|
1261
|
+
lines.push(cliStyles.muted(`Market cap: ${describeFundamentalMarketCap(capitalization.provenance)}.`));
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
if (latestAnnual) {
|
|
1265
|
+
appendMetricSection(lines, `Latest Annual (${statementPeriodText(latestAnnual.date, statementFilings?.latestAnnual ?? null)})`,
|
|
1266
|
+
buildStatementMetrics(latestAnnual, statementCurrency(latestAnnual), codes));
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
if (latestQuarter) {
|
|
1270
|
+
const runway = cashRunway(financials);
|
|
1271
|
+
appendMetricSection(lines, `Latest Quarter (${statementPeriodText(latestQuarter.date, statementFilings?.latestQuarter ?? null)})`,
|
|
1272
|
+
buildStatementMetrics(latestQuarter, statementCurrency(latestQuarter), codes, runway));
|
|
1273
|
+
// How the months are counted, and an offering since the balance sheet that the cash does not include yet.
|
|
1274
|
+
if (burnsCash(runway)) lines.push(cliStyles.muted(runwayMethod(runway.includesShortTerm)));
|
|
1275
|
+
const offering = runway ? offeringNote(offeringsAfter(offerings, runway.periodEnd), runway.periodEnd) : null;
|
|
1276
|
+
if (offering) lines.push(cliStyles.muted(offering));
|
|
1277
|
+
}
|
|
1278
|
+
// The statements stop a quarter short of the results the company has released.
|
|
1279
|
+
if (statementFilings?.resultsRelease && (latestAnnual || latestQuarter)) lines.push(cliStyles.muted(resultsReleaseText(statementFilings.resultsRelease)));
|
|
1280
|
+
|
|
1281
|
+
appendDescription(lines, profile);
|
|
1282
|
+
|
|
1283
|
+
appendTextSection(lines, "Notes", notes, true);
|
|
1284
|
+
|
|
1285
|
+
appendFeedSection(lines, "Recent News", recentNews.map((item) => ({
|
|
1286
|
+
title: item.title,
|
|
1287
|
+
meta: [
|
|
1288
|
+
item.source,
|
|
1289
|
+
(() => {
|
|
1290
|
+
const publishedAt = parseDisplayDate(item.publishedAt as Date | string | number | undefined);
|
|
1291
|
+
return publishedAt ? formatTimestamp(publishedAt.getTime()) : "";
|
|
1292
|
+
})(),
|
|
1293
|
+
],
|
|
1294
|
+
body: item.summary,
|
|
1295
|
+
link: item.url,
|
|
1296
|
+
})), recentNews[0]?.searchedFor ? coinNewsFallbackNotice(symbol, recentNews[0].searchedFor) : null);
|
|
1297
|
+
|
|
1298
|
+
appendFeedSection(lines, "Recent SEC Filings", recentSecFilings.map((filing) => ({
|
|
1299
|
+
title: (() => {
|
|
1300
|
+
const filingDate = formatShortDate(filing.filingDate as Date | string | number | undefined, { fallback: "" });
|
|
1301
|
+
return filingDate ? `Form ${filing.form}${METADATA_SEPARATOR}${filingDate}` : `Form ${filing.form}`;
|
|
1302
|
+
})(),
|
|
1303
|
+
meta: [
|
|
1304
|
+
// The items by number and name, so a results 8-K reads apart from another 8-K filed the same day.
|
|
1305
|
+
filingItemsMeta(filing),
|
|
1306
|
+
getFilingDescription(filing) ?? "",
|
|
1307
|
+
filing.primaryDocument ? `Primary Document ${filing.primaryDocument}` : "",
|
|
1308
|
+
],
|
|
1309
|
+
link: filing.filingUrl,
|
|
1310
|
+
})), hiddenFilingsNote(hiddenSecFilings));
|
|
1311
|
+
|
|
1312
|
+
await appendTickerPositions(lines, tickerFile, quote, config, toBase, rates);
|
|
1313
|
+
|
|
1314
|
+
return lines.join("\n");
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
function buildTickerStructuredData({
|
|
1318
|
+
symbol,
|
|
1319
|
+
listing,
|
|
1320
|
+
tickerFile,
|
|
1321
|
+
financials,
|
|
1322
|
+
config,
|
|
1323
|
+
notes,
|
|
1324
|
+
recentNews,
|
|
1325
|
+
recentSecFilings,
|
|
1326
|
+
hiddenSecFilings,
|
|
1327
|
+
futuresContract,
|
|
1328
|
+
usdPerMmbtu = null,
|
|
1329
|
+
distributions,
|
|
1330
|
+
statementFilings,
|
|
1331
|
+
bondFund = null,
|
|
1332
|
+
memberships,
|
|
1333
|
+
offerings = [],
|
|
1334
|
+
}: {
|
|
1335
|
+
symbol: string;
|
|
1336
|
+
listing: CliListing;
|
|
1337
|
+
memberships: CompanyMemberships;
|
|
1338
|
+
statementFilings: StatementFilingsReport | null;
|
|
1339
|
+
offerings?: readonly OfferingFiling[];
|
|
1340
|
+
bondFund?: FundBondFacts | null;
|
|
1341
|
+
futuresContract: FuturesContractTermsPayload | null;
|
|
1342
|
+
/** A per-MWh gas price in dollars per MMBtu, and the rate it was converted at. */
|
|
1343
|
+
usdPerMmbtu?: UsdPerMmbtu | null;
|
|
1344
|
+
distributions: DividendDistributions | null;
|
|
1345
|
+
tickerFile: TickerRecord | null;
|
|
1346
|
+
financials: TickerFinancials;
|
|
1347
|
+
config: AppConfig;
|
|
1348
|
+
notes: string;
|
|
1349
|
+
recentNews: NewsArticle[];
|
|
1350
|
+
recentSecFilings: SecFilingItem[];
|
|
1351
|
+
hiddenSecFilings: HiddenFilings;
|
|
1352
|
+
}) {
|
|
1353
|
+
const quote = financials.quote;
|
|
1354
|
+
const priceReturns = computeTickerPriceReturns(financials, tickerFile?.metadata.assetCategory);
|
|
1355
|
+
const identity = listingIdentity(listing, quote);
|
|
1356
|
+
// Market cap and the multiples at the regular session price, as the text report gives them.
|
|
1357
|
+
const priced = atRegularSessionPrice(financials);
|
|
1358
|
+
const runway = cashRunway(financials);
|
|
1359
|
+
return {
|
|
1360
|
+
symbol,
|
|
1361
|
+
listing: { symbol: identity.symbol, exchange: identity.exchange || null, name: identity.name },
|
|
1362
|
+
quote: quote ? {
|
|
1363
|
+
symbol: quote.symbol,
|
|
1364
|
+
instrumentType: quote.instrumentType,
|
|
1365
|
+
name: quote.name,
|
|
1366
|
+
// Last and Change as the text report reads them, then the extended print from that close.
|
|
1367
|
+
...getQuoteSessionFields(quote),
|
|
1368
|
+
// What Change is measured from ("vs Fri 16 Oct close"), and the quote's previous close with its exchange-local date.
|
|
1369
|
+
changeBasis: changeBasisJson(quoteChangeBasis(quote, { terms: futuresContract })),
|
|
1370
|
+
previousClose: quote.previousClose ?? null,
|
|
1371
|
+
previousCloseDate: quotePreviousCloseDate(quote),
|
|
1372
|
+
priceBasis: quote.priceBasis ?? null,
|
|
1373
|
+
currency: quote.currency,
|
|
1374
|
+
marketCap: priced.quote?.marketCap ?? null,
|
|
1375
|
+
volume: quote.volume ?? null,
|
|
1376
|
+
exchangeName: quote.exchangeName ?? "",
|
|
1377
|
+
fullExchangeName: quote.fullExchangeName ?? "",
|
|
1378
|
+
marketState: quote.marketState ?? "",
|
|
1379
|
+
dataSource: quote.dataSource ?? "",
|
|
1380
|
+
providerId: quote.providerId ?? "",
|
|
1381
|
+
lastUpdated: quote.lastUpdated ? new Date(quote.lastUpdated).toISOString() : "",
|
|
1382
|
+
} : null,
|
|
1383
|
+
quoteMetadata: financials.quoteMetadata,
|
|
1384
|
+
// The receipt pair the listing is a side of, and which side.
|
|
1385
|
+
...depositaryPairJson(financials),
|
|
1386
|
+
// Only for futures: the contract the symbol prices, its terms and its latest confirmed settlement.
|
|
1387
|
+
...futuresContract ? { futuresContract } : {},
|
|
1388
|
+
...usdPerMmbtu ? { usdPerMmbtu } : {},
|
|
1389
|
+
ticker: tickerFile ? {
|
|
1390
|
+
ticker: tickerFile.metadata.ticker,
|
|
1391
|
+
name: tickerFile.metadata.name ?? "",
|
|
1392
|
+
exchange: tickerFile.metadata.exchange ?? "",
|
|
1393
|
+
assetCategory: tickerFile.metadata.assetCategory ?? "",
|
|
1394
|
+
sector: tickerFile.metadata.sector ?? "",
|
|
1395
|
+
industry: tickerFile.metadata.industry ?? "",
|
|
1396
|
+
portfolios: formatPortfolioNames(config, tickerFile.metadata.portfolios),
|
|
1397
|
+
watchlists: formatWatchlistNames(config, tickerFile.metadata.watchlists),
|
|
1398
|
+
positions: tickerFile.metadata.positions,
|
|
1399
|
+
} : null,
|
|
1400
|
+
// The lists holding the company by any of its listings; `via` names the other listing a list holds it as.
|
|
1401
|
+
memberships,
|
|
1402
|
+
fundamentals: financials.fundamentals || priceReturns.return1Y != null || priceReturns.return3Y != null ? exportedDividendFundamentals(exportedFundamentals({
|
|
1403
|
+
...priced.fundamentals,
|
|
1404
|
+
...priceReturns,
|
|
1405
|
+
})!, distributions) : undefined,
|
|
1406
|
+
// A bond fund's SEC yield, yield to worst and duration as its sponsor publishes them, each dated;
|
|
1407
|
+
// fundamentals.dividendYield is then its distribution yield, not its SEC yield.
|
|
1408
|
+
...bondFund ? { bondFund } : {},
|
|
1409
|
+
profile: financials.profile,
|
|
1410
|
+
financialCurrency: financials.financialCurrency ?? null,
|
|
1411
|
+
latestAnnual: latestFinancialPeriod(financials.annualStatements, row => row.date) ?? null,
|
|
1412
|
+
latestQuarter: latestFinancialPeriod(financials.quarterlyStatements, row => row.date) ?? null,
|
|
1413
|
+
annualStatementCount: financials.annualStatements.length,
|
|
1414
|
+
quarterlyStatementCount: financials.quarterlyStatements.length,
|
|
1415
|
+
// Months of cash at the latest quarter's balance sheet, at its operating burn and the trailing year's,
|
|
1416
|
+
// and the offering prospectuses filed since that the cash does not include.
|
|
1417
|
+
cashRunway: runway,
|
|
1418
|
+
offeringsAfterBalanceSheet: runway ? offeringsAfter(offerings, runway.periodEnd) : [],
|
|
1419
|
+
// The form and filed date of the latest periods' filings, and a newer quarter's results released before its statements.
|
|
1420
|
+
statementFilings,
|
|
1421
|
+
notes,
|
|
1422
|
+
recentNews: recentNews.map((item) => ({
|
|
1423
|
+
title: item.title,
|
|
1424
|
+
source: item.source,
|
|
1425
|
+
publishedAt: item.publishedAt instanceof Date ? item.publishedAt.toISOString() : item.publishedAt,
|
|
1426
|
+
url: item.url,
|
|
1427
|
+
summary: item.summary ?? "",
|
|
1428
|
+
})),
|
|
1429
|
+
recentSecFilings: recentSecFilings.map((filing) => ({
|
|
1430
|
+
form: filing.form,
|
|
1431
|
+
filingDate: filing.filingDate instanceof Date ? filing.filingDate.toISOString() : filing.filingDate,
|
|
1432
|
+
accessionNumber: filing.accessionNumber,
|
|
1433
|
+
filingUrl: filing.filingUrl,
|
|
1434
|
+
primaryDocumentUrl: filing.primaryDocumentUrl ?? "",
|
|
1435
|
+
description: getFilingDescription(filing) ?? "",
|
|
1436
|
+
items: secFilingItemCodes(filing.items) ?? "",
|
|
1437
|
+
// The items by number and name, as the text report shows them.
|
|
1438
|
+
itemsLabel: currentReportItemsLabel(filing.items) ?? "",
|
|
1439
|
+
})),
|
|
1440
|
+
// Left out of recentSecFilings unless --all: the pricing supplements a bank files for its notes,
|
|
1441
|
+
// and the 13D/13G the company filed as a holder of other companies.
|
|
1442
|
+
recentSecFilingsHidden: hiddenSecFilings,
|
|
1443
|
+
};
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
function depositaryPairJson(financials: TickerFinancials) {
|
|
1447
|
+
const pair = listingDepositaryPair(financials);
|
|
1448
|
+
if (!pair) return {};
|
|
1449
|
+
const receipt = isReceiptSide(financials);
|
|
1450
|
+
return { depositaryPair: { ...pair, side: receipt ? "receipt" : "home", text: depositaryPairText(pair, receipt) } };
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
const QUOTE_UNAVAILABLE = "Quote unavailable.";
|
|
1454
|
+
|
|
1455
|
+
/** Asks for the quote the report lacks once more, for the reason the data service gave when it had none. */
|
|
1456
|
+
async function quoteUnavailableNote(dataProvider: MarketContext["dataProvider"], symbol: string, exchange: string): Promise<string> {
|
|
1457
|
+
try {
|
|
1458
|
+
await dataProvider.getQuote(symbol, exchange);
|
|
1459
|
+
} catch (error) {
|
|
1460
|
+
return providerMissReason(error) ?? QUOTE_UNAVAILABLE;
|
|
1461
|
+
}
|
|
1462
|
+
return QUOTE_UNAVAILABLE;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
export async function ticker(symbol: string, dependencies: TickerCommandDependencies = {}) {
|
|
1466
|
+
const initMarketDataFn = dependencies.initMarketData ?? initMarketData;
|
|
1467
|
+
const failCommand = dependencies.fail ?? fail;
|
|
1468
|
+
await withMarketData(initMarketDataFn, async ({ config, store, dataProvider, dataDir, statementSources }) => {
|
|
1469
|
+
let listing: CliListing;
|
|
1470
|
+
try {
|
|
1471
|
+
listing = await resolveCliListing(symbol, dependencies.exchange, { store, dataProvider });
|
|
1472
|
+
} catch (error) {
|
|
1473
|
+
if (error instanceof ListingArgError) failCommand(error.message, error.details);
|
|
1474
|
+
throw error;
|
|
1475
|
+
}
|
|
1476
|
+
// A named listing goes by its key (SAN:EPA); a bare symbol by its saved listing, as before.
|
|
1477
|
+
const normalized = listing.key;
|
|
1478
|
+
const tickerFile = listing.saved;
|
|
1479
|
+
const { symbol: requestSymbol, exchange } = listing.request;
|
|
1480
|
+
const toBase = createBaseConverter(dataProvider, config.baseCurrency);
|
|
1481
|
+
// A bare symbol's venues load beside its research, to name the company it was read as when several list it.
|
|
1482
|
+
const venues = loadBareVenues(listing, { store, dataProvider });
|
|
1483
|
+
// So does what became of the symbol, read from the research's quote as `history` reads it: a
|
|
1484
|
+
// company that moved (HFC became DINO), with nothing new listed there, has no profile of its own.
|
|
1485
|
+
const researchQuote = Promise.withResolvers<Quote | null>();
|
|
1486
|
+
const fate = listingFateLoader(listing, { dataProvider }, researchQuote.promise);
|
|
1487
|
+
const request: ListingDataRequest = { command: "ticker", noun: "research", fate };
|
|
1488
|
+
/** Nothing to show: a company that moved is under its new symbol. */
|
|
1489
|
+
const failIfMovedAway = async () => {
|
|
1490
|
+
researchQuote.resolve(null);
|
|
1491
|
+
const moved = movedAwayChange((await fate()).change);
|
|
1492
|
+
if (moved) failMovedSymbol(moved, request);
|
|
1493
|
+
};
|
|
1494
|
+
|
|
1495
|
+
let financials: TickerFinancials | null = null;
|
|
1496
|
+
try {
|
|
1497
|
+
// The Change line says what the move is from.
|
|
1498
|
+
financials = await dataProvider.getTickerFinancials(requestSymbol, exchange, { datesChangeBasis: true });
|
|
1499
|
+
} catch (error) {
|
|
1500
|
+
// A known exchange the symbol is not listed on: say where it is.
|
|
1501
|
+
await failIfNotTraded(listing, { store, dataProvider }, { fail: failCommand });
|
|
1502
|
+
await failIfMovedAway();
|
|
1503
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
1504
|
+
// A symbol no listing carries is not a failed fetch, and the message already names it.
|
|
1505
|
+
if (isNotATickerMessage(reason)) failCommand(reason);
|
|
1506
|
+
failCommand(`Failed to fetch data for ${normalized}.`, reason);
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
const hasResearchData = financials && (
|
|
1510
|
+
financials.quote
|
|
1511
|
+
|| Object.values(financials.profile ?? {}).some(value => value?.trim())
|
|
1512
|
+
|| Object.entries(financials.fundamentals ?? {}).some(([key, value]) =>
|
|
1513
|
+
key !== "return1Y" && key !== "return3Y" && typeof value === "number" && Number.isFinite(value))
|
|
1514
|
+
|| financials.quoteMetadata?.instrumentType?.trim()
|
|
1515
|
+
|| financials.quoteMetadata?.currency?.trim()
|
|
1516
|
+
|| financials.quoteMetadata?.listingExchangeName?.trim()
|
|
1517
|
+
|| Object.values(computeTickerPriceReturns(financials, tickerFile?.metadata.assetCategory)).some(value => value != null)
|
|
1518
|
+
|| financials.annualStatements.length > 0
|
|
1519
|
+
|| financials.quarterlyStatements.length > 0
|
|
1520
|
+
);
|
|
1521
|
+
if (!financials || (!hasResearchData && !tickerFile?.metadata.positions.some((position) => position.shares !== 0))) {
|
|
1522
|
+
await failIfNotTraded(listing, { store, dataProvider }, { fail: failCommand });
|
|
1523
|
+
await failIfMovedAway();
|
|
1524
|
+
failCommand(`No research data available for ${normalized}.`);
|
|
1525
|
+
}
|
|
1526
|
+
const resolvedFinancials = financials as TickerFinancials;
|
|
1527
|
+
const quote = resolvedFinancials.quote;
|
|
1528
|
+
// The quote is the old line's (stopped, or named for the company that left): the profile and figures are another security's.
|
|
1529
|
+
researchQuote.resolve(quote ?? null);
|
|
1530
|
+
const { moved } = await fate();
|
|
1531
|
+
if (moved) failMovedSymbol(moved, request);
|
|
1532
|
+
|
|
1533
|
+
const notesFiles = new NotesFiles(dataDir);
|
|
1534
|
+
const listingName = listingIdentity(listing, quote).name;
|
|
1535
|
+
// The yield's distributions, read beside the rest when a trailing yield, a forward basis or its lapse needs them; they never fail the report.
|
|
1536
|
+
const distributions = loadDividendDistributions(dataProvider, { symbol: requestSymbol, exchange }, resolvedFinancials,
|
|
1537
|
+
{ declared: !dependencies.printResult });
|
|
1538
|
+
// A bond fund's SEC yield, yield to worst and duration, beside its distribution yield.
|
|
1539
|
+
const bondFund = loadReportBondFacts(requestSymbol,
|
|
1540
|
+
quote?.tradingExchangeName || exchange || quote?.listingExchangeName || quote?.exchangeName || tickerFile?.metadata.exchange,
|
|
1541
|
+
resolvedFinancials, tickerFile);
|
|
1542
|
+
const statementFilings = loadStatementFilings(statementSources, { symbol: requestSymbol, exchange }, {
|
|
1543
|
+
quarter: latestFinancialPeriod(resolvedFinancials.quarterlyStatements, (row) => row.date),
|
|
1544
|
+
annual: latestFinancialPeriod(resolvedFinancials.annualStatements, (row) => row.date),
|
|
1545
|
+
});
|
|
1546
|
+
// A list holding the company as another of its listings counts (a list of RCI.B:TSX holds RCI); read beside the rest. It never fails.
|
|
1547
|
+
const membershipsLoad = loadCompanyMemberships({
|
|
1548
|
+
config,
|
|
1549
|
+
own: tickerFile,
|
|
1550
|
+
symbol: listing.symbol,
|
|
1551
|
+
exchange: canonicalExchange(listing.exchange || quote?.listingExchangeName || quote?.exchangeName || tickerFile?.metadata.exchange),
|
|
1552
|
+
loadTickers: () => store.loadAllTickers(),
|
|
1553
|
+
dataProvider,
|
|
1554
|
+
});
|
|
1555
|
+
// An offering since the latest balance sheet, read only when the report has a runway to flag.
|
|
1556
|
+
const offerings = loadOfferingFilings(statementSources, { symbol: requestSymbol, exchange }, cashRunway(resolvedFinancials) != null);
|
|
1557
|
+
const [notesResult, newsResult, secFilingsResult] = await Promise.allSettled([
|
|
1558
|
+
notesFiles.load(tickerFile?.metadata.ticker ?? normalized),
|
|
1559
|
+
dataProvider.getNews({
|
|
1560
|
+
feed: "ticker",
|
|
1561
|
+
// Still set for news plugins that read the deprecated scope.
|
|
1562
|
+
scope: "ticker",
|
|
1563
|
+
ticker: requestSymbol,
|
|
1564
|
+
exchange: exchange || quote?.exchangeName || "",
|
|
1565
|
+
tickerTier: "primary",
|
|
1566
|
+
limit: NEWS_ITEM_LIMIT,
|
|
1567
|
+
// A coin pair with no story filed under it searches for the coin by this name.
|
|
1568
|
+
...(isRoundTheClockCoin(requestSymbol, exchange || quote?.exchangeName) && (quote?.name || tickerFile?.metadata.name)
|
|
1569
|
+
? { listingName: quote?.name || tickerFile?.metadata.name }
|
|
1570
|
+
: {}),
|
|
1571
|
+
}),
|
|
1572
|
+
// Outside the US the lookup checks the SEC registrant against the listing's company,
|
|
1573
|
+
// and refuses another company's filings.
|
|
1574
|
+
shouldFetchSecFilings(requestSymbol, exchange, tickerFile, resolvedFinancials) && dataProvider.getSecFilings
|
|
1575
|
+
? loadRecentSecFilings((count) => dataProvider.getSecFilings!(requestSymbol, count, exchange || quote?.exchangeName || "",
|
|
1576
|
+
listingName ? { listingName } : undefined), dependencies.allFilings === true)
|
|
1577
|
+
: Promise.resolve({ filings: [], hidden: NOTHING_HIDDEN }),
|
|
1578
|
+
]);
|
|
1579
|
+
|
|
1580
|
+
const futuresContract = await cliFuturesContract(quote?.symbol ?? requestSymbol, quote?.instrumentType, dependencies.futuresContract);
|
|
1581
|
+
// A per-MWh gas price (TTF) adds its dollars per MMBtu at the day's rate, to read beside Henry Hub.
|
|
1582
|
+
const usdPerMmbtu = await loadUsdPerMmbtu(getRegularSessionDisplay(quote)?.price, futuresContract, quote?.currency,
|
|
1583
|
+
(currency) => dataProvider.getExchangeRate(currency));
|
|
1584
|
+
const notes = notesResult.status === "fulfilled" ? notesResult.value : "";
|
|
1585
|
+
const recentNews = newsResult.status === "fulfilled" ? newsResult.value : [];
|
|
1586
|
+
const { filings: recentSecFilings, hidden: hiddenSecFilings } = secFilingsResult.status === "fulfilled"
|
|
1587
|
+
? secFilingsResult.value : { filings: [], hidden: NOTHING_HIDDEN };
|
|
1588
|
+
|
|
1589
|
+
// The quote is the feed in this report; without one, the fundamentals date it.
|
|
1590
|
+
const freshness = quote ? quotesFreshness([quote]) : fundamentalsFreshness(resolvedFinancials);
|
|
1591
|
+
const quoteNote = quote ? undefined : await quoteUnavailableNote(dataProvider, requestSymbol, exchange);
|
|
1592
|
+
const [choiceNote] = await listingChoiceNotes(listing, { store, dataProvider }, quote, venues);
|
|
1593
|
+
// A bare coin ticker read as a fund says where the coin is, as `quote` does; a named listing was meant.
|
|
1594
|
+
const coinNote = listing.exchange ? null
|
|
1595
|
+
: notTheCoinNote(listing.symbol, quote ?? (tickerFile ? { name: tickerFile.metadata.name, instrumentType: tickerFile.metadata.assetCategory } : null));
|
|
1596
|
+
const listingNote = [choiceNote, coinNote].filter((note): note is string => !!note).join("\n") || undefined;
|
|
1597
|
+
const memberships = await membershipsLoad;
|
|
1598
|
+
// A converted TTM block at the rate the rest of the report converts at, the one `fx` reports.
|
|
1599
|
+
const shownFinancials = await atReportTtmRate(resolvedFinancials, toBase);
|
|
1600
|
+
if (dependencies.printResult) {
|
|
1601
|
+
const newsNote = recentNews[0]?.searchedFor ? coinNewsFallbackNotice(requestSymbol, recentNews[0].searchedFor) : null;
|
|
1602
|
+
const warnings = [choiceNote, coinNote, quoteNote, newsNote].filter((note): note is string => !!note);
|
|
1603
|
+
dependencies.printResult({
|
|
1604
|
+
freshness,
|
|
1605
|
+
warnings: warnings.length > 0 ? warnings : undefined,
|
|
1606
|
+
data: buildTickerStructuredData({
|
|
1607
|
+
symbol: normalized,
|
|
1608
|
+
listing,
|
|
1609
|
+
tickerFile,
|
|
1610
|
+
financials: shownFinancials,
|
|
1611
|
+
config,
|
|
1612
|
+
notes,
|
|
1613
|
+
recentNews,
|
|
1614
|
+
recentSecFilings,
|
|
1615
|
+
hiddenSecFilings,
|
|
1616
|
+
futuresContract,
|
|
1617
|
+
usdPerMmbtu,
|
|
1618
|
+
distributions: await distributions,
|
|
1619
|
+
statementFilings: await statementFilings,
|
|
1620
|
+
bondFund: await bondFund,
|
|
1621
|
+
memberships,
|
|
1622
|
+
offerings: await offerings,
|
|
1623
|
+
}),
|
|
1624
|
+
});
|
|
1625
|
+
return;
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
console.log(await buildTickerReport({
|
|
1629
|
+
symbol: normalized,
|
|
1630
|
+
listingExchange: listing.exchange,
|
|
1631
|
+
tickerFile,
|
|
1632
|
+
financials: shownFinancials,
|
|
1633
|
+
config,
|
|
1634
|
+
toBase,
|
|
1635
|
+
notes,
|
|
1636
|
+
quoteNote,
|
|
1637
|
+
listingNote,
|
|
1638
|
+
recentNews,
|
|
1639
|
+
recentSecFilings,
|
|
1640
|
+
hiddenSecFilings,
|
|
1641
|
+
futuresContract,
|
|
1642
|
+
usdPerMmbtu,
|
|
1643
|
+
distributions: await distributions,
|
|
1644
|
+
statementFilings: await statementFilings,
|
|
1645
|
+
bondFund: await bondFund,
|
|
1646
|
+
memberships,
|
|
1647
|
+
offerings: await offerings,
|
|
1648
|
+
}));
|
|
1649
|
+
if (freshness) console.log(`\n${cliFreshnessFooter(freshness, quote ?? resolvedFinancials)}`);
|
|
1650
|
+
});
|
|
1651
|
+
}
|