Retrieve Reference Data for Indices from ‘twelvedata’
ref_indices(sym = "", as = c("data.frame", "raw"), country = "", apikey)
(optional, character) A (single or vector) symbol for Indices. Defaults to unset.
(optional, character) A selector for the desired output format: one of “data.frame” (the default) or or “raw”.
(optional, character) An alpha code or country name. Defaults to unset.
(optional character) An API key override, if missing a value cached from
package startup is used. The startup looks for either a file in the per-package config
directory provided by tools::R_user_dir
(for R 4.0.0 or later), or the
TWELVEDATA_API_KEY
variable.
The requested data is returned as a data.frame
object.
ref_indices
.