The functions cotahist_equity_options_superset()
, cotahist_funds_options_superset()
,
cotahist_index_options_superset()
, and cotahist_options_by_symbol_superset()
use
information from the COTAHIST datasets (b3-cotahist-yearly
, b3-cotahist-monthly
,
and b3-cotahist-daily
) and Reference Rates (b3-reference-rates
) and return a dataframe
containing stock option data, including the closing price of the underlying stocks, the ticker
of the underlying asset, and the interest rate at the option's expiration. The returned dataframe
contains the following columns: "refdate", "symbol", "type", "symbol_underlying",
"strike_price", "maturity_date", "r_252", "close", "close_underlying", "volume",
"trade_quantity", and "traded_contracts".
cotahist_options_by_symbol_superset()
returns the same dataset but filtered for the specified asset ticker.
Returned objects preserve lazy evaluation whenever possible and avoid being
collected until the last possible moment. Exceptions occur when operations
cannot be performed using Arrow's operators — in such cases, data will be
collected and data.frame
s will be returned. Please refer to the documentation
to identify the situations where this behavior applies.
These functions retrieve yield curve data merged with corresponding futures contract information:
yc_brl_with_futures_get()
: BRL nominal rates with DI1 futures contracts
yc_usd_with_futures_get()
: USD rates (Cupom Cambial) with DDI futures contracts
yc_ipca_with_futures_get()
: Real (inflation-indexed) rates with DAP futures contracts
These functions combine data from B3 Reference Rates (b3-reference-rates
) and
Futures Settlement Prices (b3-futures-settlement-prices
) to create comprehensive yield curve datasets.
The resulting data highlights key vertices along the curve with their corresponding futures contracts,
providing insight into the term structure of interest rates.
Each function requires a specific reference date to prevent excessive memory usage and
ensure optimal performance.