Tommaso's Portfolio

PAC Investment Analysis Webapp

Project Overview

This project is a web application that demonstrates the long-term impact of investing via a PAC (Capital Accumulation Plan / dollar-cost averaging). Users can set investment parameters, run historical simulations, and visualize outcomes across rolling periods using real market data.

The frontend is built with Next.js and Velite, delivering a responsive UI where users configure:

Once parameters are set, the frontend calls a FastAPI backend that runs the core simulation. The engine uses monthly returns derived from Adjusted Close prices to simulate PAC behavior with inflation, and returns:

Historical data is sourced from Yahoo Finance (see “Data Pipeline”) to ensure realistic, reproducible simulations.


Architecture at a Glance

This split is deliberate: ingest and normalize once; serve many. It removes runtime dependency on external rate limits, improves latency, and makes results reproducible.


Technical Details

Simulation Model

REST API Design

Frontend Engineering

Data & Yahoo Finance Integration


Why This Design