Description Usage Arguments Value
View source: R/black_scholes_iv.R
Root-finding scheme to back out Black-Scholes implied volatility for a given market price.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | black_scholes_iv(
fee,
spot,
strike,
maturity,
rate,
div,
what,
style,
N,
M,
lb = 0.001,
ub = 10
)
|
fee |
the market price |
spot |
the spot price of the underlying |
strike |
the strike price of the option |
maturity |
the maturity in trading years of the option contract |
rate |
the discounting rate |
div |
the dividend yield rate |
what |
what type of option to price: "put" or "call" |
style |
optionality style: american or european |
N |
time-resolution |
M |
space-resolution |
lb |
lb for interval to search for root in IV |
ub |
ub for interval to search for root in IV |
numeric
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.