Skip to content

Varun487/OptionsPricingEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages