wilsonfreitas / rbcb

R interface to Brazilian Central Bank web services
https://wilsonfreitas.github.io/rbcb/
Other
91 stars 20 forks source link

Reference currency for get_currency #12

Closed wilsonfreitas closed 2 years ago

wilsonfreitas commented 6 years ago

get_currency returns currencies quoted in BRL, but it is more usual USD quoted currencies.

An argument could be added to define the reference currency: BRL or USD (at first).

rbcb::get_currency(symbol, start_date, end_date, as, reference = c("USD", "BRL"))