update_instruments.iShares {FinancialInstrument} | R Documentation |
This will update previously defined iShares or SPDR ETF instrument
s.
Both functions will add attributes for “Name”, and “FundFamily”
(“iShares” or “SPDR”). update_instruments.iShares
will
also add an attribute for “MgmtFees”
update_instruments.iShares(Symbols, silent = FALSE)
update_instruments.SPDR(Symbols, silent = FALSE)
Symbols |
character vector of iShares ETF ticker symbols. If not
specified, |
silent |
silence the warning that no iShares are defined? |
called for side-effect
update_instruments.SPDR
will probably NOT work on Windows
because in the call to download.file
it uses method=curl
since it has to download from an https URL scheme.
Garrett See
http://us.ishares.com/home.htm, https://www.spdrs.com/
update_instruments.yahoo
, update_instruments.TTR
,
twsInstrument:::update_instruments.IB
,
update_instruments.instrument
,
update_instruments.morningstar
,
update_instruments.masterDATA
## Not run:
stock("IWC", currency("USD"))
update_instruments.iShares("IWC")
getInstrument("IWC")
Symbols <- stock(c("SPY", "JNK"), currency("USD"))
update_instruments.SPDR(Symbols)
buildHierarchy(c("SPY", "JNK"), "Name")
## End(Not run)