update_instruments.iShares: update iShares and SPDR ETF metadata

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/update_instruments.iShares.R

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

1
2
3
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

FinancialInstrument documentation built on May 2, 2019, 5:24 p.m.