Description Usage Arguments Value Note Author(s) References See Also Examples
View source: R/update_instruments.iShares.R
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”
1 2 3 | 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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.