View source: R/black_schole_euro_option_pricing.R
BlackScholes | R Documentation |
Calculates the theoretical price of European call or put options.
BlackScholes(type, S0, K, T, r, sigma, q = 0)
type |
The type of option to be priced ("call" or "put"). |
S0 |
Current stock price. |
K |
Strike price of the option. |
T |
Time to expiration in years. |
r |
Risk-free interest rate. |
sigma |
Volatility of the stock price. |
q |
Dividend yield of the stock. |
The theoretical price of the option.
BlackScholes("call", 100, 100, 1, 0.05, 0.2)
BlackScholes("put", 100, 100, 1, 0.05, 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.