Description Usage Arguments Details Value
View source: R/analytic_black_scholes.R
The famous formula we all know and love. The simplest analytic formula for pricing vanilla European options. See pdf (coming) for further details.
1 2 3 4 5 6 7 8 9 10 | analytic_gbm_price(
spot,
strike,
maturity,
rate,
div,
volat,
what = "put",
current_time = 0
)
|
spot |
The underlying share price, S. |
strike |
The strike price of the option, K. |
maturity |
The time until expiration in trading years, T. |
rate |
The risk free rate, r. |
div |
the dividend yield rate |
volat |
The annualized standard deviation of log-returns, sigma |
what |
Which type of option to price. |
current_time |
The time you want to price at, t. |
Either Ke^{-r(T-t)} Φ(x)-S_0 Φ(x1) for puts or S_0 Φ(x1)-Ke^{-r(T-t)}Φ(x) for calls. See the pdf (coming) for details on the arguments of the CDFs.
numeric
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.