cotahist-options-superset | R Documentation |
Equity options superset is a dataframe that brings together all data regarding equities, equity options and interest rates. This data forms a complete set (superset) up and ready to run options models, implied volatility calculations and volatility models.
cotahist_equity_options_superset(ch, yc)
cotahist_options_by_symbol_superset(symbol, ch, yc)
ch |
cotahist data structure |
yc |
yield curve |
symbol |
character with the name of the stock |
A dataframe with data of equities, equity options, and interest rates.
## Not run:
refdate <- Sys.Date() - 1
ch <- cotahist_get(refdate, "daily")
yc <- yc_get(refdate)
ch_ss <- cotahist_equity_options_superset(ch, yc)
petr4_ch_ss <- cotahist_options_by_symbol_superset("PETR4", ch, yc)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.