update_instruments.morningstar: Update instrument metadata for ETFs

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

View source: R/update_instruments.morningstar.R

Description

Currently, this only updates ETFs. It will add “msName” and “msCategory” attributes to the instruments. (ms for morningstar)

Usage

1
2
3
update_instruments.morningstar(Symbols, silent = FALSE)

update_instruments.ms(Symbols, silent = FALSE)

Arguments

Symbols

character vector of Symbols of ETFs

silent

silence warnings?

Value

called for side-effect.

Author(s)

Garrett See

References

http://www.morningstar.com

See Also

update_instruments.yahoo, update_instruments.TTR update_instruments.iShares

Examples

 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)

pdrano/FinancialInstrument documentation built on May 6, 2019, 10:51 p.m.