toy project after reading paul wilmott intro to quant finance
Status: still lots TODO
Displays implied volatilty surface (and skew) of option chains from tickers FROM Yahoo finance.
- Fetch live options data by ticker symbol
- View implied volatility skew (2d graph) for a specific expiry date #never knew of skew before this.
- Visualize 3D volatility surface across all available expirations
- Switch between call and put options
- 10 second load for the surface :D
- surface is missing surface area due to limited market data or my code (probably the latter)
- will not assist you in trading whatsoever...
- Python 3.9+
-
Clone the repo and navigate to the project directory:
cd implied-volatility -
Install dependicies:
pip install -r requirements.txt
From the project root:
cd src/implied_volatility
streamlit run main.pyThe app will open at http://localhost:8501.
- Enter a ticker (e.g.,
AAPL,TSLA) and click Submit #defaults to AAPL - Select expiry:
All Expiries– shows a 3D surface across all available expirations- A specific date – shows the 2D volatility skew for that expiry
- Choose option type –
callorput - View the plots – interactive Plotly charts
MIT