Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.11 KB

File metadata and controls

31 lines (21 loc) · 1.11 KB

Options Pricing Engine

Aim

To build an option pricer using the Binomial tree and Random tree pricing methods while utilizing the observer-observable and Factory object oriented programming design patterns.

Build the project

  1. Initialize the project
git clone git@github.com:Varun487/OptionsPricingEngine.git
cd OptionsPricingEngine
  1. Install the Quantlib C++ library.

  2. To compile and run the Options pricer using factory pattern

g++ main.cpp ArgList.cpp Arrays.cpp BinomialTree.cpp Parameters.cpp PayOff3.cpp PayOffBridge.cpp PayOffConstructible.cpp PayOffFactory.cpp Random.cpp RandomHighTree.cpp RandomLowTree.cpp TreeAmerican.cpp TreeProducts.cpp -o run
./run
  1. To compile and run the Options pricer using observer-observable pattern
g++ -I'PATH_TO_BOOST_INSTALLATION' $(quantlib-config --cflags --libs) main.cpp OptionPricingReportWriter.cpp TreeObservable.cpp Arrays.cpp Parameters.cpp PayOff3.cpp PayOffBridge.cpp TreeAmerican.cpp TreeProducts.cpp Random.cpp -o run
./run

Replace PATH_TO_BOOST_INSTALLATION with the path to the directory of your boost installation.