Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monte-carlo-call-option-pricing

A Python module to price a Euroepan call option at t=0 by Monte Carlo simulation, which is benchmarked against Black Schoels formula.

FEATURES

  • Simulates stock prices following a geometric Brownian motion
  • Calculates payoffs at t=T and averages the paths
  • Discounts the resut to t=0

INSTALLATION

  1. Clone the repository:
    git clone https://github.com/hb84ffm/monte-carlo-call-option-pricing.git
    cd monte-carlo-call-option-pricing

  2. Create & activate your virtual environment:
    python3 -m venv venv
    source venv/bin/activate # On Mac/Linux
    venv\Scripts\activate # On Windows

  3. Install dependencies:
    pip install -r requirements.txt

USAGE

  1. Instantiate class CallPriceEU with attributes
    CallPriceEU(S0=start_stock_price, K=strike, r=rate, sigma=volatility, T=timeframe, samples=nr_of_iterations)
  2. Apply method run() afterwards, which orchestrates the simulation and plotting of the two bar charts

EXAMPLE WORKFLOW

See provided Jupyter notebook example for explanation.

AUTHOR

For questions or feedback reach out to me via: GitHub.

About

Pricing of a European call option under Monte Carlo & Black Scholes approach

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages