Case study · Investing tool
An investing workbench that can't place orders
A dashboard just for me. It reads my account data from the broker without being able to trade, works out net value and returns, and puts market and macro data alongside. When data is incomplete, it shows "unknown" instead of filling in a number.
- My role
- Requirements, approvals, releases and broker sign-ins
- Built by
- AI agents: code, tests, deploys and docs
- Stack
- Next.js, React, TypeScript, FastAPI, SQLAlchemy, Docker Compose
- Status
- Running on a cloud server, last checked 12 Nov 2026
This is a personal tool, not investment advice. No account figures, holdings or returns are shown on this page.
The problem
I wanted an investing platform that was entirely mine. At first it was about making it easier to review my trades. I also care a lot about keeping records, and I wanted my own data in my own hands.
My main requirement was accuracy over looks. It's a personal, research-first tool. Data doesn't have to be real-time, but it must say how fresh it is. And it only reads. It has no way to trade, by design.
My role and decisions
AI wrote the code, the tests and the deployments. I approve releases and handle broker sign-ins myself.
- Core rule
Read-only, with no automated trading. Accuracy first: unknown shows as unknown, never as zero.
- Before 11 Oct 2026
A simple home screen, a clear privacy control that hides account amounts with one tap, and settings grouped by purpose.
- Before 11 Oct 2026
Green for gains and red for losses. The currency is shown once. Average prices and share counts sit in an expandable detail view, so only the key figures show by default.
- Before 11 Oct 2026
Sessions must be revocable on the server.
Approved clearing space on the server. The disk was 79% full, which had paused market-data collection.
Logged in to the broker myself and confirmed the connection is read-only. My credentials never pass through the AI.
Approved deploying the connection-reliability fix (PR #49) to production.
Approved moving October's old backups off the server and onto my own computer.
How it works
Three kinds of data, kept apart
- Sources
- Brokerread-only
- Market data provider
- Public macro data
- Separate stores
- Account facts
- Market history
- Macro data
- Back endFastAPI and SQLAlchemy, plus a long-running sync process
- Front endNext.js, React and TypeScript
- MeOnly after signing in
Orders can only be previewed. Any attempt to actually send one is refused by default.
Stack
Next.js, React and TypeScript on the front end. FastAPI and SQLAlchemy on the back end, plus a long-running sync process. It runs with Docker Compose on a cloud server behind an HTTPS reverse proxy.
Read-only by design
Code that talks to the broker exists only in one adapter layer. Order features can only preview, and sending is refused by default.
Numbers I can trust
Money is stored as exact decimals, never floating point. Data moves through four layers: raw, normalised, derived and published. A new report creates a new version instead of overwriting the old one.
Gaps stay gaps
If a day's net value is missing, the chart shows a break. It isn't interpolated or filled with zero. Money moving in and out of the account is kept separate from investment results, and when there isn't enough information the return shows as unavailable.
Sign-in
The app has its own login, with server-side sessions that can be revoked. Without a login, every API request is refused.
Releases
Before each release the account database is backed up and checked, a release manifest is written, and the previous image and the rollback command are kept ready.
Docs that don't overclaim
Every note about the system is marked as code committed, verified in production, or research and plans. A plan is never written up as shipped.
A gap, not a zero
Eight page states
- Loading
- Partial
- Confirmed
- Delayed
- Historical snapshot
- Stale
- No data
- Service error
Results
- Production was healthy on 12 Nov 2026 at 19:12. The front end and back end were both healthy, and the sync process reconnected to the broker and completed 5 syncs in a row.
- Without a login, all three private endpoints returned 401. HTTPS and authentication boundary checks passed (12 Nov).
- The pre-release database backup verified correctly, and the release manifest and rollback commands were in place (12 Nov).
- 791 back-end, 173 front-end and 72 browser tests were passing (24 Oct). These numbers come from the pull request description. I don't have a separate CI run to link for them.
- Interface changes were checked in a browser at widths from 320 to 1440 pixels, in both light and dark themes (24 Oct).
What didn't work, and what I learned
What didn't work
These were the open problems as of mid-November 2026.
- The data went stale for almost three weeks and nobody noticed. Freshness had been degraded since at least 24 Oct and wasn't fixed until 12 Nov. There were three causes: the broker connection needed a new login, the disk reached 79% and paused market-data collection, and the health check never sent an alert to my phone.
- I still have to sign in by hand. The broker connection regularly needs a manual sign-in. Automatic read-only sign-in is planned, but as of 15 Nov it was still on the to-do list.
- It hasn't been tested on a real phone. Browser tests used synthetic data. There's no record of checking it on a real iPhone with the real account.
- The reliability fix hasn't been tested for real. The disconnect and reconnect cases it handles have only been tested against a simulated broker connection.
- Some return figures aren't available. Notes from 7 Oct say parts of the time-weighted and money-weighted returns were unavailable, and there's no evidence they've been completed since.
- Several parts are still plans. A 0–100 market risk index, candlestick backtesting, a market anomaly radar and a read-only AI assistant are all still at the research or planning stage.
What I took from it
- A health check only helps if its result reaches me. Alerts need to land on my phone.
- Anything that depends on me signing in by hand will eventually lapse, which is why automatic read-only sign-in is next.
- Tests with synthetic data aren't the same as checking it for real. A real-phone check with real data is still to do.