Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created May 9, 2024 11:50
Show Gist options
  • Save quantra-go-algo/272c2dd350049fd7786c2e892b200c28 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/272c2dd350049fd7786c2e892b200c28 to your computer and use it in GitHub Desktop.
# Model parameters
S0 = 100.0 # Initial stock price
K = 100.0 # Strike price
r = 0.05 # Risk-free rate
T = 1.0 # Time to maturity
kappa = 2.0 # Mean reversion rate
theta = 0.05 # Long-term average volatility
sigma = 0.3 # Volatility of volatility
rho = -0.5 # Correlation coefficient
v0 = 0.05 # Initial volatility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment