Skip to content

No-Detective/black-scholes-greeks-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ˆ Black-Scholes Option Pricer & Greeks Dashboard

This project implements a Black-Scholes option pricing engine from scratch and provides an interactive dashboard to visualize the Greeks of an option using historical stock data.


๐Ÿ”ง Features

  • ๐Ÿ“Š Pulls historical stock price data using yfinance

  • ๐Ÿงฎ Calculates 20-day rolling volatility as an input to the pricing model

  • ๐Ÿ’ฐ Implements the Black-Scholes formula for European call and put options

  • โš™๏ธ Computes option Greeks using finite difference methods:

    • Delta
    • Gamma
    • Theta
    • Vega
  • ๐Ÿง  Includes interactive dashboard widgets to adjust parameters in real time


๐Ÿ“Œ Technologies Used

  • Python
  • Jupyter Notebook
  • pandas, numpy, scipy
  • yfinance
  • ipywidgets for dashboard interactivity
  • matplotlib for visualization

๐Ÿ“ˆ Methodology

  1. Download Historical Prices:

    • Stock data fetched from Yahoo Finance
    • Only Close prices used to estimate volatility
  2. Estimate Volatility:

    • 20-day log return rolling standard deviation
    • Annualized using โˆš252
  3. Black-Scholes Pricer:

    • Built from scratch (not using scipy.stats pricing shortcuts)
    • Handles both calls and puts
  4. Greeks Calculation:

    • Approximated using finite difference bumps in inputs
    • Change each variable ยฑ0.01 to compute sensitivities
  5. Interactive Dashboard:

    • Dropdowns and sliders to simulate different market conditions
    • Live calculations shown for each Greek

๐Ÿง  Learning Goals

  • Deep understanding of how Black-Scholes works
  • Hands-on calculation of option prices and Greeks
  • Practice with financial data pipelines and interactivity

๐Ÿงฎ Future Enhancements

  • Real-time pricing with minute-level data
  • Add implied volatility visualization
  • Integrate American option logic (e.g., binomial tree)
  • Portfolio-level dashboard with multiple strikes

About

A Python-based Black-Scholes pricer and interactive dashboard that calculates and visualizes option Greeks using historical stock data. Built from scratch to demonstrate quantitative modeling skills.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors