MyNixOS website logo
Description

Query Data Series from Bank of Mexico.

Allows to retrieve time series of all indicators available in the Bank of Mexico's Economic Information System (<http://www.banxico.org.mx/SieInternet/>).

Economic information of Banco de México

This package is aimed at querying data series from Banco de México.

siebanxicor allows to retrieve the time series of all indicators available in http://www.banxico.org.mx/SieInternet This tool aims at developers and analysts who seek to make automatic the retrieval of the economic information published by Banco de México.

This package uses the Economic Information System API of Banco de México (https://www.banxico.org.mx/SieAPIRest) to obtain the data series published. This API requires that every request be identified by a token. This query token can be obtained here https://www.banxico.org.mx/SieAPIRest/service/v1/token. The query token can be used in multiple requests, as long as the query limits are respected (more information https://www.banxico.org.mx/SieAPIRest/service/v1/doc/limiteConsultas).

To start using the functions included in this package, is mandatory first to set the token using setToken()

token <- "d4b584b43a1413f56e5abdcc0f9e74db112ce9bb2f1580c80cb252f5a18b30a21" setToken(token)

The string token is only an example, an own token must be generated in the aforementioned link.

Once the token has been set, the data series can be retrieved using getSeriesData()

idSeries <- c("SF43718","SF46410","SF46407") series <- getSeriesData(idSeries)

The time period retrieved can be limited using the parameters startDate and endDate. These parameters are strings that represent a date in the format "yyyy-MM-dd". If one of these dates is omitted the entire data are returned.

idSeries <- c("SF43718","SF46410","SF46407") series <- getSeriesData(idSeries, startDate='2016-01-01',endDate='2018-07-12')

It is also possible to query only the current value of certain time series. The function getSeriesCurrentValue() accomplishes this task:

idSeries <- c("SF43718","SF46410","SF46407") seriesDataFrame <- getSeriesCurrentValue(idSeries)

serieDataFrame <- getSeriesCurrentValue("SF43718")

The value returned is the last one published in SIE.

The series metadata can be queried with the function getSeriesMetadata():

series <- getSeriesMetadata(c("SF43718","SF46410","SF46407"))

The idSeries requiered to use this package can be found in: http://www.banxico.org.mx/SieInternet https://www.banxico.org.mx/SieAPIRest/service/v1/doc/catalogoSeries.

Metadata

Version

1.0.0

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows