Skip to main content

CLI for Geometric Brownian Motion and Black Scholes Math for Monte Carlo Simulation

Project description

Monte Carlo Pip Setup

pip install using:

pip install mc-option-simulator-yale

import the module using:

from montecarlo.MonteCarloSimulation import MonteCarloSimulation

classes:

class MonteCarloSimulation:

Methods belong to MonteCarloSimulation

def __init__(self, stock_value, strike, volatility):
        self.stock_value = stock_value
        self.risk_free_interest = RISK_FREE_INTEREST
        self.strike = strike
        self.sigma = volatility
        self.delta_time = DELTA_TIME
        self.T = TIME
        self.steps = steps
        self.simulations = simulations
        self.payoffs = []
def Geometric_Brownian_Motion(self, option_type="call"):
def Black_Scholes(self, option_type="call".lower())

Full class and method details omitted, refer to the code to see full implementation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mc_option_simulator_yale-0.0.8.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mc_option_simulator_yale-0.0.8-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file mc_option_simulator_yale-0.0.8.tar.gz.

File metadata

File hashes

Hashes for mc_option_simulator_yale-0.0.8.tar.gz
Algorithm Hash digest
SHA256 8a17349706f299bcf11591eb14001fe942d9b42edc9f7af272647b19f2b0a2cd
MD5 6d413b50b8615a4be2b950dd9fc273be
BLAKE2b-256 33f488a6afc0cf965f5116fd1dd19016b3dd30b65fd653449c49f02c94ba2ea4

See more details on using hashes here.

File details

Details for the file mc_option_simulator_yale-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for mc_option_simulator_yale-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e82b1bb826c1aa979fbdb47ec288fef26f01e1e770d00e9d584d6cd2ff72fd75
MD5 c707b2b01d2693e6add7cae9d8a23512
BLAKE2b-256 1d07d0f3483f4fd2fb6e02a8bef379f532eca2ac0a3521eca144d7f3e1addc1d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page