Assets Tracker
NestJS · Prisma · BullMQ · Chrome Extension · TypeScript
A multi-repo personal finance system that pulls bank and broker statements from Gmail and bank websites, parses them and tracks holdings. A collaborative project: I worked on the statement parsers, corporate actions and data collection.
Collaborative project — a multi-repo system built with another engineer; I worked on the parsing, corporate-actions and data-collection layers.
Highlighted nodes: the parts I worked on.
- 106 statements parsed, 0 errors (rule-based parser)
- 7 repos · 50+ commits
- ~110 test cases added (Jest)
- 3 corporate actions: splits, stock dividends, capital reductions
01Rule-based parser over LLM for system-generated PDFs, with self-checks
A broker's US-stock sub-brokerage statements are machine-generated, so a rule-based parser replaces the LLM. It parsed 106 statements with 0 errors, re-computes figures such as shares × price = market value, and checks the holding row count against the statement.
02LLM output can never set cost basis
A cost parsed by the LLM is always discarded; only rule-based parsers may provide cost basis. PDFs without a rule-based parser go to a headless Claude CLI fallback, and the result waits in a manual review queue first.
03Corporate actions inside FIFO without breaking cost
Stock splits, stock dividends and capital reductions (Yahoo and FinMind) adjust share counts inside FIFO while total cost stays the same; odd-lot refunds from a capital reduction are paid at par value. When an API rate-limits (402/429) each source pauses separately, and a failed stock gets a 24-hour cooldown.
04Scraping an AngularJS SPA from a Chrome extension MAIN world
Chunghwa Post iPost is an AngularJS SPA, so the extension adapter runs in the MAIN world and calls the page's own functions to get the CSV. The same extension automatically downloads bank CSVs and uploads them to the server.
← All projects