get_current_exchangerate_table: Retrieves the current exchange rate table.

View source: R/endpoint_tables.R

get_current_exchangerate_tableR Documentation

Retrieves the current exchange rate table.

Description

Retrieves the current exchange rate table.

Usage

get_current_exchangerate_table(table)

Arguments

table

specifies which table should be fetched.

Value

nbp_api_response object containing the current exchange rate table.

See Also

https://api.nbp.pl/#kursyWalut

Other tables: get_exchangerate_table_from(), get_exchangerate_tables_from_interval(), get_last_n_exchangerate_tables(), get_todays_exchangerate_table()

Examples


tryCatch(
  {
    ## Retrieve the current A exchange rate table
    response <- get_current_exchangerate_table("A")
    ## Retrieve the content
    response$content
  },
  error = function(e) message(e)
)



szymanskir/rnbp documentation built on April 12, 2025, 8:51 p.m.