Description Usage Arguments Value Author(s) References See Also Examples
Currently, this only updates ETFs. It will add “msName” and “msCategory” attributes to the instruments. (ms for morningstar)
1 2 3 | update_instruments.morningstar(Symbols, silent = FALSE)
update_instruments.ms(Symbols, silent = FALSE)
|
Symbols |
character vector of Symbols of ETFs |
silent |
silence warnings? |
called for side-effect.
Garrett See
update_instruments.yahoo
,
update_instruments.TTR
update_instruments.iShares
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
## backup .instrument environment
ibak <- as.list(FinancialInstrument:::.instrument)
rm_instruments()
stock(s <- c("SPY", "USO", "LQD"), currency("USD"))
update_instruments.morningstar(s)
instrument.table(s)
## cleanup and restore instrument environment
rm_instruments(keep.currencies=FALSE)
loadInstruments(ibak)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.