get_todays_exchangerate_table function

Retrieves the exchange rate table that was published today.

Retrieves the exchange rate table that was published today.

get_todays_exchangerate_table(table)

Arguments

  • table: specifies which table should be fetched.

Returns

nbp_api_response object containing today's exchange rate table.

Details

If today's data is not available the API will return a 404 Not found error. In that case the function will return an error with an appropriate message.

Examples

tryCatch( { ## Fetch todays A exchange rate table response <- get_todays_exchangerate_table("A") ## Preview response content response$content }, error = function(e) message(e) )

See Also

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

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

  • Maintainer: Ryszard Szymanski
  • License: GPL-3
  • Last published: 2025-03-23