View source: R/financial_functions.R
| fin_options_Greeks | R Documentation |
fin_options_Greeks calculates the theoretical European Call option price and its corresponding Greeks (Delta, Gamma, Theta, Vega, and Rho) using the Black-Scholes model.
fin_options_Greeks(
spotPrice,
strikePrice,
daysToExpiry,
riskFreeRate = 0.04,
impliedVol = 0.2
)
spotPrice |
The current price of the underlying asset. |
strikePrice |
The strike price of the option. |
daysToExpiry |
The number of days remaining until option expiration. |
riskFreeRate |
The annual risk-free interest rate (expressed as a decimal, default = 0.04 for 4%). |
impliedVol |
The annualized implied volatility (expressed as a decimal, default = 0.20 for 20%). |
A data frame containing:
price: Theoretical Call option price
delta: Sensitivity of option price to underlying price (Delta)
gamma: Sensitivity of Delta to underlying price (Gamma)
theta: Daily time decay of option price (Theta)
vega: Sensitivity of option price to a 1% change in implied volatility
rho: Sensitivity of option price to a 1% change in risk-free interest rate
Other financial functions:
fin_options_LeapSimulate(),
fin_options_plotGreeks(),
fin_options_teach(),
fin_stock_CAGR(),
fin_stock_justifiedPE(),
fin_stock_target(),
fin_stock_ticker(),
fin_stock_valuation(),
fin_tax_FIF(),
fin_tax_NI(),
fin_value_CAGR(),
fin_value_CarryCost(),
fin_value_NPV(),
fin_value_interest(),
fin_value_percent()
fin_options_Greeks(spotPrice = 100, strikePrice = 95, daysToExpiry = 30,
riskFreeRate = 0.04, impliedVol = 0.20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.