broker-sync/tests/providers
Viktor Barzin cb159e17d9 fidelity: push per-fund manual snapshot instead of gains-offset DEPOSIT
PlanViewer's DisplayValuation.action JSON already gives us current
fund units + unit price; we were parsing it and throwing it away,
emitting only a single 'unrealised-gains-offset' DEPOSIT to make
Wealthfolio's totals match the dashboard. That hack double-counted
the gain as a cash contribution, hiding £35k of pension growth from
every contribution/growth/ROI panel.

New flow:
- FidelityPlanViewerProvider exposes last_holdings + last_total_contribution
  after fetch() drains.
- fidelity-ingest CLI converts to a ManualSnapshotPayload (cost basis
  allocated proportionally by current fund value share) and posts to
  WF /api/v1/snapshots/import. WF auto-creates unknown fund symbols
  with kind=INVESTMENT, quoteMode=MANUAL, quoteCcy=GBP.
- The gains-offset emission is removed entirely. Historical offset
  rows already in WF are corrected at the dashboard layer by the
  dav_corrected view shipped in infra@2841347e.

WealthfolioSink gains push_manual_snapshots() + ManualSnapshotPayload /
SnapshotPosition wire types. 11 sink tests (3 new) + 9 fidelity
provider tests (2 changed, 1 new) all green; mypy + ruff clean.
2026-05-16 13:56:25 +00:00
..
parsers schwab: detect vest-confirmation emails + emit VestEvent 2026-04-19 18:27:58 +00:00
__init__.py Add Trading212 ticker normalisation 2026-04-17 19:29:23 +00:00
test_checkpoint.py Add per-account cursor Checkpoint helper 2026-04-17 19:30:20 +00:00
test_fidelity_planviewer.py fidelity: push per-fund manual snapshot instead of gains-offset DEPOSIT 2026-05-16 13:56:25 +00:00
test_finance_mysql.py Add finance_mysql provider + CLI for historical backfill 2026-04-17 22:38:21 +00:00
test_imap.py ci: fix ruff E501 + mypy None-comparison warning 2026-04-18 22:52:38 +00:00
test_invest_engine.py Add InvestEngineProvider — Bearer-token HTTP client 2026-04-17 21:52:26 +00:00
test_trading212.py Wire T212 pagination, retries, and click<8.2 pin 2026-04-17 19:45:23 +00:00
test_trading212_ticker.py Add Trading212 ticker normalisation 2026-04-17 19:29:23 +00:00