Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mc-option-simulator-yale

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mc-option-simulator-yale

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

  • 0.0.8
  • Source
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc