Geometric Brownian Motion
This endpoint uses MonteCarlo technique to simulate Geometric Brownian Motion paths and return the mean price of European Put and Call options and their variance.
The endpoint is
The following parameters are optional:
M: number of simulations, default is 1000;
S0: initial stock price, default is 1;
K: strike price, default is 1.1;
T: time to maturity (in years), default is 1;
r: risk-free rate, default is the CBOE interest rate on the 10 year Treasury bill;
The following parameter is required:
sigma: represents the underlying volatility.
An example of a GET request for this endpoint is:
An example of a GET request for this endpoint is:
The response format is:
1 {
2 "GBM": {
3 "mean price European call": 0.12800138909218364,
4 "mean price European put": 0.21083415398576202,
5 "variance European call": 0.0001280654378272862,
6 "variance European put": 0.000210939650191506
7 }
8 }
Heston model
This endpoint uses MonteCarlo Simulations to simulate the Heston model and return the mean price of European Put and Call options and their variance.
The endpoint is
The following parameters are optional:
M: number of simulations, default is 1000;
S0: initial stock price, default is 1;
K: strike price, default is 1.1;
T: time to maturity (in years), default is 1;
r: risk-free rate, default is the CBOE interest rate on the 10 year Treasury bill;
The following parameters are required:
v0: initial variance;
rho: correlation between asset returns and variance;
kappa: mean-reversion speed for the variance;
theta: long-term mean of the variance process;
sigma: volatility of the variance.
An example of a GET request for this endpoint is:
The response format is:
1 {
2 "Heston": {
3 "mean price European call": 0.12416830660665312,
4 "mean price European put": 0.2164843918913914,
5 "variance European call": 0.00012423043736190794,
6 "variance European put": 0.0002165927153366947
7 }
8 }