Skip to contents

Retrieve the most recently published value for one or more series from the BdE statistics API.

Usage

bde_latest(key, lang = "en")

Arguments

key

(character())
The series keys to query.

lang

(character(1))
Language to query, either "en" or "es".

Value

A data.table::data.table() with the latest observation per series.

Examples

# \donttest{
bde_latest("D_1NBAF472")
#>                   date        key value   freq            title decimals symbol
#>                 <POSc>     <char> <num> <char>           <char>    <int> <char>
#> 1: 2026-02-01 09:15:00 D_1NBAF472 2.221      M One-year Euribor        3      %
#>     trend
#>    <char>
#> 1:      -
bde_latest(c("D_1NBAF472", "DTNPDE2010_P0000P_PS_APU"))
#>                   date                      key   value   freq
#>                 <POSc>                   <char>   <num> <char>
#> 1: 2026-02-01 09:15:00               D_1NBAF472   2.221      M
#> 2: 2025-10-01 08:15:00 DTNPDE2010_P0000P_PS_APU 100.700      Q
#>                                        title decimals symbol  trend
#>                                       <char>    <int> <char> <char>
#> 1:                          One-year Euribor        3      %      -
#> 2: EDP debt. General government. % of GDP mp        1      %      -
# }