Class for retrieving data related to market indices from the Yahoo Finance API.
Inherits get_history() from YahooFinanceBase-class.
See also
Other historical data:
Ticker-class,
Tickers,
yf_download_prices(),
yf_get_index_quotes()
Super class
yahoofinancer::YahooFinanceBase -> Index
Methods
Examples
## ------------------------------------------------
## Method `Index$new`
## ------------------------------------------------
if (FALSE) { # \dontrun{
nifty_50 <- Index$new('^NSEI')
} # }
## ------------------------------------------------
## Method `Index$set_index`
## ------------------------------------------------
if (FALSE) { # \dontrun{
indice <- Index$new('^NSEI')
indice$set_index('^NDX')
} # }