option-price is a Python-based powerful but simple option price calculator. The repo is here.
pip install option-price
from optionprice import Option
You can initialize an option through this:
some_option = Option(european=False,
option-price has three approaches to calculate the price of the price of the option. They are
- Monte Carlo
- Binary Tree
option-price will pick B-S-M by default. You can simply get the price by using
If you want to calculate in other ways, you can use
some_option.getPrice(method='MC',iteration = 500000)
some_option.getPrice(method='BT',iteration = 1000)
while MC stands for Monte Carlo and BT stands for Binary Tree.