View source: R/fin_volatility_helper.R
| fin_resolveVolatility | R Documentation |
fin_resolveVolatility looks up the implied volatility of a ticker from its option chain
closest to the target expiry and strike. If the retrieved IV is stale/zero (< 1%),
it falls back to calculating the 90-day Historical Volatility (HV) of the stock.
fin_resolveVolatility(impliedVol, strikePrice, daysToExpiry)
impliedVol |
Either a numeric value (returned directly) or a character stock symbol. |
strikePrice |
The strike price of the option. |
daysToExpiry |
The number of days to expiration. |
A numeric volatility value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.