Skip to content

JackL0423/FinanceProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

134 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FinanceProject

Overview

FinanceProject is a financial modeling application that includes implementations of the Black-Scholes model, Heston model, and option Greeks calculations. The project is designed to provide tools for pricing European options and calculating the sensitivities of these options to various factors.

Project Structure

Key Features

  • Black-Scholes Model: Analytical pricing for European options.
  • Heston Model: Stochastic volatility model with numerical integration and Monte Carlo simulation.
  • Option Greeks: Sensitivities of option prices to various parameters.

Black-Scholes Model

Option Greeks

Unit Tests

Error Handling

  • Centralized error logging to error.log for all exceptions.
  • Comprehensive exception handling to ensure robustness.

Tests

  • Unit tests implemented using Google Test framework.
  • Covers basic functionality and edge cases for:
    • Black-Scholes model
    • Option Greeks
    • Heston model (including zero volatility, extreme correlation, and invalid inputs)

Build System

CMake

Usage

Building the Project

  1. Navigate to the project directory:

    cd FinanceProject
  2. Create a build directory and navigate into it:

    mkdir build
    cd build
  3. Run CMake to generate the build system:

    cmake ..
  4. Use make to compile the project:

    make

Running Tests

  1. Navigate to the Testing directory:

    cd FinanceProject/Testing
  2. Build and run the tests:

    mkdir build && cd build
    cmake ..
    make
    ./ModelTests
  3. Check error.log for any runtime errors during testing.

About

FinanceProject is a financial modeling application that includes implementations of the Black-Scholes model, Heston model, and option Greeks calculations. The project is designed to provide tools for pricing European options and calculating the sensitivities of these options to various factors.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors