Skip to content

Computes the price of a European digital call option using two methods: Monte Carlo simulation and the Finite Element Method (FEM).

Notifications You must be signed in to change notification settings

aslonv/Digital-Option-Pricer-with-Rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digital Call Option Pricing

A Rust implementation for pricing European-style digital call options using Monte Carlo simulation and Finite Element Method (FEM).

Overview

This software provides two pricing methods for digital call options:

  1. Monte Carlo simulation
  2. Finite Element Method (FEM)

DigitalCallOption Struct

Represents a digital call option with the following properties:

  • underlying_price: Current price of the underlying asset
  • strike_price: Option's strike price
  • barrier_price: Option's barrier price
  • implied_volatility: Implied volatility of the underlying asset
  • time_to_maturity: Time to option maturity

Methods

  • new() -> DigitalCallOption: Creates a new instance with default values
  • get_inputs(&mut self): Prompts user for input values
  • price(&self, method: &str) -> f64: Calculates option price using specified method

Pricing Methods

Monte Carlo Simulation

monte_carlo_price(&self, num_simulations: usize) -> f64

About

Computes the price of a European digital call option using two methods: Monte Carlo simulation and the Finite Element Method (FEM).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages