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.
Release files for mc-option-simulator-yale 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mc_option_simulator_yale-0.0.8.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mc_option_simulator_yale-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / mc_option_simulator_yale-0.0.8.tar.gz
| Download URL | mc_option_simulator_yale-0.0.8.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a17349706f299bcf11591eb14001fe942d9b42edc9f7af272647b19f2b0a2cd
|
|
BLAKE2b-256 checksum How to use checksums |
33f488a6afc0cf965f5116fd1dd19016b3dd30b65fd653449c49f02c94ba2ea4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|
Release files / mc_option_simulator_yale-0.0.8-py3-none-any.whl
| Download URL | mc_option_simulator_yale-0.0.8-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e82b1bb826c1aa979fbdb47ec288fef26f01e1e770d00e9d584d6cd2ff72fd75
|
|
BLAKE2b-256 checksum How to use checksums |
1d07d0f3483f4fd2fb6e02a8bef379f532eca2ac0a3521eca144d7f3e1addc1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|