MONTE CARLO X
A Monte Carlo research lab that runs on real market data
A browser based quant lab for simulating futures, measuring portfolio risk and pricing options, calibrated on real market data.
- Role
- Solo project
- Category
- Quantitative Finance / Risk / Stochastic Simulation
- Status
- In development
- Stack
- Python
- NumPy
- SciPy
- C++20
- pybind11
- FastAPI
- Next.js
- React Three Fiber
- Three.js
- TypeScript
- Playwright
- Vercel

(01) What it is
The project
I started from Mariana Antaya's GPU Monte Carlo script, which collapses a fixed four asset portfolio into one random walk and reports VaR. I wanted to see how far that idea goes with real data, so I built a full research app around it. You pick real instruments, the server pulls their history, fits the model parameters and simulates thousands of seeded futures. The results come back as a 3D sculpture you can drag around, plus percentile bands and a terminal distribution.
It has six sections: a probability field, a portfolio risk observatory, a volatility chamber with GARCH and regime detection, an options pricer, a stress lab and a research notebook. Python and NumPy do the math, with a C++20 kernel for the hot loop, behind a FastAPI service. The frontend is Next.js with React Three Fiber. Live crypto prices stream straight from Coinbase and Kraken into your browser, and every number says where it came from and when.
I tried hard to keep it honest. Simulated futures are labeled as model output, venues are never averaged into a fake consolidated price, and when a data source is missing you get an error instead of made up numbers. US stock data works when you connect your own Alpaca or Finnhub keys, and that part has not been tested with real keys yet.
(02) Details
How it works
- 01Six stochastic models: GBM with correlated assets, Ornstein Uhlenbeck, Merton jumps, Heston, and two kinds of historical bootstrap
- 02VaR and expected shortfall with confidence intervals, risk contribution per asset, and a VaR backtest that only uses past data
- 03Options priced five ways (Black Scholes, Monte Carlo, binomial trees, Heston and Merton) with Greeks and implied volatility
- 04Saved experiments are rerun on the server and reproduce bit for bit, checked with SHA 256 digests
- 05The C++20 kernel ran a 400,000 path GBM benchmark 1.81 times faster than NumPy on one thread and 4.98 times faster on four
- 0624 numerical tests check the engine against closed form answers, and 10 Playwright tests passed against the deployed site
(03) Screenshots


