Skip to content

Batch 6: industry peers, relative P/E, desktop shortcut - #6

Open
Arvi23 wants to merge 1 commit into
batch-5-todayfrom
batch-6-peers
Open

Arvi23 wants to merge 1 commit into
batch-5-todayfrom
batch-6-peers

Conversation

@Arvi23

@Arvi23 Arvi23 commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Stacked on #5.

Industry peers (D14)

  • Data: the snapshot includes up to 5 of the largest US companies in the stock's Yahoo industry, using yf.Industry(key).top_companies plus one info call per peer.
    • US-listed stocks only.
    • Cached 24 h and fetched 4 at a time; failed peers are skipped.
  • Valuation: trailing and forward P/E are scored against the peer median when at least 3 peers have a value, e.g. "33.4 vs industry median 45.0 (-26%)". Without peers, the fixed bands still apply.
  • UI: a Finance tab "Industry peers" table. The stock's own row is highlighted, with each value coloured against the median.
  • Also: snapshot schema 3, and the LLM context now includes the peer medians.

Polish

  • start.bat creates a Desktop shortcut on first run, once only, tracked by a marker file.
  • The Debt/Equity card shows 0.30x, matching the breakdown. Yahoo's raw value is a percent.

96 backend tests. The UI smoke test checks the peer table and the relative P/E.


Generated by Claude Code

- Industry peer comparison (D14): the snapshot includes up to 5 of the largest
  US companies in the stock's Yahoo industry (peers.py, yahoo.fetch_industry_peers
  / fetch_key_metrics, services.load_peers). US-listed stocks only; peer lists and
  metrics cached 24 h, fetched 4 at a time; failed peers skipped.
- Valuation: trailing and forward P/E are scored against the peer median when 3+
  peers have a value ("33.4 vs industry median 45.0 (-26%)"); fixed bands otherwise.
- Finance tab "Industry peers" table, the stock highlighted green/orange vs median.
- Snapshot schema 3; LLM context includes peer medians.
- start.bat creates a Desktop shortcut on first run (once, marker file).
- Debt/Equity card shows 0.30x like the breakdown (Yahoo's raw value is percent).

96 backend tests; UI smoke checks the peer table and relative P/E.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TW7cJeWrcBW5SJHr4ZKtSH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant