Skip to content

Batch 5: "Your stocks" panel and thesis checks - #5

Open
Arvi23 wants to merge 1 commit into
batch-4-portfoliofrom
batch-5-today
Open

Arvi23 wants to merge 1 commit into
batch-4-portfoliofrom
batch-5-today

Conversation

@Arvi23

@Arvi23 Arvi23 commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Stacked on #4. Merge #1–#4 first.

Your stocks · next 2 weeks

A home-screen panel covering held and watched stocks. Held stocks are listed first.

  • Shows:
    • earnings and ex-dividend dates within 14 days
    • day moves of 3% or more
    • analyst rating changes from the last 7 days
    • insider purchases from the last 30 days
  • Code: pure builder in watchstock/today.py, served by GET /api/today.
  • Yahoo access: yahoo.fetch_events (calendar + ratings + insider trades), cached 6 h per ticker, at most 4 fetched in parallel. See D13.

Thesis check

  • What it does: POST /api/portfolio/{t}/thesis asks the LLM whether the position's "why I own it" note still holds. It returns intact / weakening / broken / unclear, with evidence for and against and what to watch.
  • Storage: results go in thesis_checks (migration 3), and the previous check is fed to the next one.
  • UI: a badge in the portfolio table, and a result view with "Check again".

The HANDOFF marks the project as paused after this batch, with a batch 6 plan: peer comparison, a chart fallback for BVB, and a desktop shortcut.

88 backend tests. The UI smoke test covers both flows.


Generated by Claude Code

- Home right column "Your stocks · next 2 weeks": earnings and ex-dividend
  dates within 14 days, day moves >= 3%, analyst rating changes (7 days) and
  insider purchases (30 days) for held + watched stocks, held first.
  Pure builder in watchstock/today.py; GET /api/today (D13).
- providers/yahoo.fetch_events: calendar + ratings + insider trades, cached
  6 h per ticker, at most 4 fetched in parallel.
- Thesis check per position: POST /api/portfolio/{t}/thesis asks the LLM
  whether the "why I own it" note still holds (intact / weakening / broken /
  unclear, with evidence and what to watch). Stored in thesis_checks
  (migration 3); latest status shown as a badge in the portfolio table.
- Portfolio table tightened to fit the new column.
- Docs: HANDOFF marks the project paused after batch 5 with a batch 6 plan
  (peer comparison, chart fallback, desktop shortcut).

88 backend tests; UI smoke covers the new flows.

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