1 2 3 4 5 6 7 8 9 10 11 | get_greeks(
r = 0.05,
b = 0.05,
underlyer_annual_vol = 0.115,
exposure = 1,
time_to_mat,
strike_price,
underlyer_price,
option_type,
greek_selections = c("delta", "gamma", "vega", "theta")
)
|
r |
Annualized rate of interest, as a decimal, eg. 0.5 \ \itembAnnualized cost of carry as a decimal \itemunderlyer_annual_volAnnualized volatility of the underlyer as a decimal \itemexposureAmount bet per point, eg. 1 \itemtime_to_matTime to maturity, in years \itemstrike_priceOption strike price \itemunderlyer_priceOption underlyer price \itemoption_type"c" or "p", call or put \itemgreek_selectionsGreeks to compute |
Named list of option sensitivities/greeks: "delta", "gamma", "vega", "rho", "theta" Compute greeks for an option
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.