getFX | R Documentation |
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, ...)
Currencies |
Currency pairs expressed as ‘CUR/CUR’ |
from |
start date expressed in ISO CCYY-MM-DD format |
to |
end date expressed in ISO CCYY-MM-DD format |
env |
which environment should they be loaded into |
verbose |
be verbose |
warning |
show warnings |
auto.assign |
use auto.assign |
... |
additional parameters to be passed to getSymbols.oanda method |
A convenience wrapper to getSymbols(x,src='oanda')
. See
getSymbols
and getSymbls.oanda
for more detail.
Data will be assigned
automatically to the environment specified (the parent environment by default).
If auto.assign = FALSE
, the data from a single metal
request will simply be returned from the function call.
If auto.assign = TRUE
is used (the default)
a vector of downloaded symbol names will be returned.
See getSymbols
and getSymbols.oanda
for more detail.
Jeffrey A. Ryan
Oanda.com https://www.oanda.com
getSymbols
, getSymbols.oanda
## Not run:
getFX("USD/JPY")
getFX("EUR/USD",from="2005-01-01")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.