FinancialInstrument (version 1.3.1)

update_instruments.iShares: 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

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

Run this code
# 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")
# }

Run the code above in your browser using DataLab