Repository navigation
Conversation
- holdings table (migration 2): one row per position with shares, average cost, currency and "why I own it" notes (D12). - watchstock/portfolio.py (pure, tested): value, P/L, day change, weights, sector allocation, per-currency totals with no FX conversion, concentration flags (position > 20%, sector > 40%, only with 3+ positions), projected annual dividends and yield on cost, missing-price handling, biggest currency group first. - /api/portfolio GET/PUT/DELETE; PUT validates the ticker via Yahoo and caches its snapshot (sector/country/dividend rate). - Home screen "My Portfolio": summary cards, holdings table (click opens the stock), position and sector doughnuts, flags; add/edit modal with autocomplete, decimal-comma input and two-click remove. - Stock sidebar shows "You own N @ cost" with P/L. - Owner feedback: long-term safety is now "Stability (debt & volatility)" and its breakdown says which half drags it down; scores round half up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TW7cJeWrcBW5SJHr4ZKtSH
… test A background 'uv run' kept uv's cache lock, failing setup-uv's post-job prune. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TW7cJeWrcBW5SJHr4ZKtSH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #3. Merge #1–#3 first.
Portfolio
holdingstable, one row per position: shares, average cost, currency, and "why I own it" notes.watchstock/portfolio.py(pure, tested) computes:/api/portfolioGET/PUT/DELETE. PUT validates the ticker against Yahoo and caches its data.Owner feedback
76 backend tests. The UI smoke test covers the portfolio flow.
Generated by Claude Code