FULL STACK
Real-time portfolio dashboard for stocks and cryptocurrencies: FIFO P/L, Supabase auth and data, TwelveData and CoinGecko pricing, charts and privacy mode.
I wanted a single place to watch stocks and crypto with honest P/L, not just live prices. That meant modeling transactions properly (FIFO), respecting auth and data isolation, and staying resilient when market APIs rate-limit or fail.
A portfolio tracker for stocks and cryptocurrencies. Users add, edit, and delete buy and sell transactions; profit and loss use FIFO (first in, first out) cost basis. The app includes performance and allocation charts, periodic price refresh with 24h change, a privacy mode to hide sensitive values, and email auth via Supabase with row-level security on the server.
FIFO is implemented by processing transactions in time order and maintaining per-asset queues of lots so sells consume the oldest buys first. Privacy mode is a simple UX layer on top of the same data so demos stay safe. Market keys stay off the client in development via a Vite proxy; production needs a matching server route or the app degrades gracefully when pricing endpoints are unavailable.
Full setup, schema SQL, and deployment notes are in the GitHub repository.