update_instruments.iShares {FinancialInstrument}R Documentation

update iShares and SPDR ETF metadata

Description

This will update previously defined iShares or SPDR ETF instruments. Both functions will add attributes for “Name”, and “FundFamily” (“iShares” or “SPDR”). update_instruments.iShares will also add an attribute for “MgmtFees”

Usage

update_instruments.iShares(Symbols, silent = FALSE)

update_instruments.SPDR(Symbols, silent = FALSE)

Arguments

Symbols

character vector of iShares ETF ticker symbols. If not specified, unique(c(ls_funds(), ls_stocks())) will be used.

silent

silence the warning that no iShares are defined?

Value

called for side-effect

Note

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.

Author(s)

Garrett See

References

http://us.ishares.com/home.htm, https://www.spdrs.com/

See Also

update_instruments.yahoo, update_instruments.TTR, twsInstrument:::update_instruments.IB, update_instruments.instrument, update_instruments.morningstar, update_instruments.masterDATA

Examples

## 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)

[Package FinancialInstrument version 1.3.1 Index]