Skip to content

A comprehensive library focused on the financial applications of Monte Carlo methods.

License

Notifications You must be signed in to change notification settings

DKLEINLEUNK/QuantMC

Repository files navigation

MCOptionPricer

A comprehensive library focused on the financial applications for Monte Carlo methods.

Table of Content

TODO

  • Implement confidence intervals for the Monte Carlo class.
  • Standardize plotting protocol.
  • Fix the implementation of geometric average pricing.
  • Implement geometric average pricing as a control variate.

Instructions

usage: main.py [-h] [-S ASSET_PRICE] [-K STRIKE_PRICE] [-T MATURITY] [-r RATE] [-v VOLATILITY] [-n SIMULATIONS] [-t TIME_STEPS] [--plot]
               {call,put} {eu,us}

Monte Carlo Option Pricing Tool

positional arguments:
  {call,put}            Type of option (call or put)
  {eu,us}               Region of option (eu or us)

options:
  -h, --help            show this help message and exit
  -S ASSET_PRICE, --asset_price ASSET_PRICE
                        Initial stock price
  -K STRIKE_PRICE, --strike_price STRIKE_PRICE
                        Strike price
  -T MATURITY, --maturity MATURITY
                        Time to maturity (in years)
  -r RATE, --rate RATE  Risk-free interest rate
  -v VOLATILITY, --volatility VOLATILITY
                        Volatility
  -n SIMULATIONS, --simulations SIMULATIONS
                        Number of simulations
  -t TIME_STEPS, --time_steps TIME_STEPS
                        Number of time steps
  --plot                Plot option prices

Installation

  1. Clone the repository:
git clone https://github.com/DKLEINLEUNK/DES-simple-queues
  1. Change directory to the cloned repository.
  2. Install the required dependencies:
pip install -r requirements.txt

Structure

QuantMC/
├── LICENSE
├── main.py
├── MonteCarlo.py
├── Options.py
├── plotter.py
├── README.md
└── utils.py

About

A comprehensive library focused on the financial applications of Monte Carlo methods.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published