Download exchange rates or metals prices from oanda.
getFX(Currencies,
from = Sys.Date() - 179,
to = Sys.Date(),
env = parent.frame(),
verbose = FALSE,
warning = TRUE,
auto.assign = TRUE, ...)
Currency pairs expressed as ‘CUR/CUR’
start date expressed in ISO CCYY-MM-DD format
end date expressed in ISO CCYY-MM-DD format
which environment should they be loaded into
be verbose
show warnings
use auto.assign
additional parameters to be passed to getSymbols.oanda method
The results of the call will be the data will be assigned automatically to the environment specified (parent by default). Additionally a vector of downloaded symbol names will be returned.
See getSymbols
and getSymbols.oanda
for more detail.
A convenience wrapper to getSymbols(x,src='oanda')
. See
getSymbols
and getSymbls.oanda
for more detail.
Oanda.com https://www.oanda.com
# NOT RUN {
getFX("USD/JPY")
getFX("EUR/USD",from="2005-01-01")
# }
Run the code above in your browser using DataLab