Retrieve foreign currency exchange rates from the NBP Web API.
Arguments
- table
(
character(1))
Table type:"a"(mid rates, major currencies),"b"(mid rates, less common currencies), or"c"(bid/ask rates).- code
(
NULL|character(1))
ISO 4217 currency code (e.g."usd","eur"). IfNULL, returns all currencies.- start_date
(
NULL|character(1)|Date(1))
Start date of the data.- end_date
(
NULL|character(1)|Date(1))
End date of the data.- last_n
(
NULL|integer(1))
Return only the lastnquotations.
Value
A data.table::data.table() with exchange rates.