getMetals(Metals,
from = "2007-01-01", to = Sys.Date(),
base.currency="USD",
env = .GlobalEnv,
verbose = FALSE,
warning = TRUE,
auto.assign = TRUE, ...)
If auto.assign is used (the default) a vector of downloaded symbol names will be returned.
See getSymbols
and getSymbols.oanda
for more detail.
getSymbols(x,src='oanda')
.The most useful aspect of getMetals is the ablity to specify the Metals in terms of underlying 3 character symbol or by name (e.g. XAU (gold) , XAG (silver), XPD (palladium), or XPT (platinum)).
There are unique aspects of any continuously traded commodity, and it
is recommended that the user visit
See getSymbols
and getSymbls.oanda
for more detail.
getSymbols
, getSymbols.oanda
getFX(c("gold","XPD"))
getFX("plat",from="2005-01-01")
Run the code above in your browser using DataLab