Skip to contents

Retrieve series metadata from the Banco de México Sistema de Información Económica (SIE) API.

Usage

banxico_metadata(series, api_key = banxico_key())

Arguments

series

(character())
One or more SIE series codes to query (e.g., "SF43718" for the FIX peso/US dollar exchange rate). Series codes can be found on the SIE website.

api_key

(character(1))
The SIE API token. Defaults to the BANXICO_KEY environment variable.

Value

A data.table::data.table() with columns id, title, freq, unit, start, and end.

Examples

if (FALSE) { # curl::has_internet() && nzchar(Sys.getenv("BANXICO_KEY"))
# \donttest{
banxico_metadata("SF43718")
# }
}