Learn R Programming

rb3 (version 0.0.12)

cotahist-options-superset: Extracts equity option superset of data

Description

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.

Usage

cotahist_equity_options_superset(ch, yc)

cotahist_options_by_symbol_superset(symbol, ch, yc)

Value

A dataframe with data of equities, equity options, and interest rates.

Arguments

ch

cotahist data structure

yc

yield curve

symbol

character with the name of the stock

Examples

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab