GithubHelp home page GithubHelp logo

option_pricer's Introduction

option_pricer

Option pricing software project. The main option pricing program is written in C++ and able to price European and American options using the Black-Scholes formula and the method of finite differences. Python files are prototypes, but are more user friendly -- use them in the interactive interpreter to calculate prices from the command line.

The subdirectories in this directory contain various versions of the pricing engine. Each version reads in a set of option parameters from a text file, performs a series of computations, then outputs to a separate text file. I used these programs to perform numerical experiments to determine the effectiveness of my implementation of the implicit finite difference method for calculating option prices, then output the resulting data in a form that is easy to translate into graphs and other figures.

To take a peak at the main elements of the pricing engine, check out pricer.cpp. pricer.cpp reads in sets of option parameters from 'option_params.txt', computes the Black-Scholes and finite difference prices, then outputs the option parameters and error between the two prices to 'errors.txt'. The functions 'bs()' and 'fdm()' are declared and used in pricer.cpp. 'bs()' contains my Black-Scholes implementation, while 'fdm()' contains my finite difference method implementation. 'bs()' and 'fdm()' are the core of this project.

If you want to compile pricer.cpp, you must compile it with pricer.h. Most C++ files in the subdirectories are versions of pricer.cpp -- they generally must be compiled with their corresponding pricer.h versions.

All C++ files were compiled with C++11 as standard.

Wes Suttle at Stony Brook University, spring 2018.

option_pricer's People

Contributors

wessle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.