Description Usage Arguments Value See Also Examples
View source: R/endpoint_rates.R
Retrieves the last n exchange rates.
1 | get_last_n_exchangerates(table, currency_code, n)
|
table |
specifies which from which table the exchange rate should be fetched. |
currency_code |
code of the currency for which the exchange rate should be fetched. |
n |
number of exchange rates to retrieve. |
nbp_api_response object containing the last n exchange rates.
https://api.nbp.pl/#kursyWalut
Other rates:
get_current_exchangerate()
,
get_exchangerate_from_interval()
,
get_exchangerate_from()
,
get_todays_exchangerate()
1 2 3 4 5 6 7 8 | tryCatch({
## Fetch the last 3 exhange rates for euros
response <- get_last_n_exchangerates("A", "EUR", 3)
## Preview response content
response$content
},
error = function(e) message(e)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.