This page lets you enter multiple stock tickers (eg. AAPL, MSFT, GOOGL) and even custom portfolio expressions (eg. 0.5*NVDA, 0.25*AMZN, 0.25*KO) and compare their performance against a benchmark (eg. SPY) over any time period. It’s built with Python and Flask on the backend. Data comes from Yahoo Finance via the yfinance library, pandas crunches the…
Tag: YFinance API
Market data for financial tools, including stock performance comparison and minimum-variance portfolio creation.
Efficient Portfolio
This is a Python implementation of Robert C. Merton’s efficient or minimum-variance portfolio algorithm from the paper An Analytic Derivation of the Efficient Portfolio Frontier (1972). Building on the work of Harry Markowitz, Merton describes a way to assign weights to a list of securities to make a portfolio that has the lowest variance in…