This repository provides an interactive Black-Scholes Option Pricing Model dashboard that helps in visualizing option prices under varying conditions. The dashboard is designed to be user-friendly and interactive, allowing users to explore how changes in spot price, volatility, and other parameters influence the value of options.
It allows users to input the purchase prices for the call and put options and visualize the P&L for various spot prices and volatilities in the form of heatmaps.
Positive P&L will be represented in green, and negative P&L in red, helping you understand the potential outcomes of your option trades.
https://black-scholes-option-pricing-modeller.streamlit.app/
- Python 3.10.11 64-bit
- Run this command on the dir
python -m streamlit run streamlit_app.py
should launch the app onlocalhost:8501
(streamlit default)
-
Options Pricing Visualization:
- Displays both Call and Put option prices using an interactive heatmap.
- The heatmap dynamically updates as you adjust parameters like Spot Price, Volatility, and Time to Maturity.
-
Interactive Dashboard:
- The dashboard allows real-time updates to the Black-Scholes model parameters.
- Users can input different values for the Spot Price, Volatility, Strike Price, Time to Maturity, and Risk-Free Interest Rate to observe how these factors influence option prices.
- Both Call and Put option prices are calculated and displayed for immediate comparison.
-
Customizable Parameters:
- Set custom ranges for Spot Price and Volatility to generate a comprehensive view of option prices under different market conditions.
streamlit
: To create the web interfacepandas
: For showcasing user inputs in tabular formnumpy
: For numerical operations.Scipy
: For scientific and technical computingmatplotlib
: For rendering static heatmap visualization.Seaborn
: For creating heatmaps with color gradients on top of matplotlib