get_last_n_exchangerate_tables: Retrieves the last n exchange rate tables.

Description Usage Arguments Value See Also Examples

View source: R/endpoint_tables.R

Description

Retrieves the last n exchange rate tables.

Usage

1

Arguments

table

specifies which table should be fetched.

n

number of exchange rate tables to retrieve.

Value

nbp_api_response object containing the last n exchange rate tables.

See Also

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

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

Examples

1
2
3
4
5
6
7
8
  tryCatch({
      ## Fetch the last 3 A exchange rate tables
      response <- get_last_n_exchangerate_tables("A", 3)
      ## Preview response content
      response$content
    },
    error = function(e) message(e)
  )

rnbp documentation built on June 7, 2021, 9:07 a.m.