update_instruments.yahoo: updates instrument metadata with data from yahoo

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

Description

Adds/updates information in instrument with data downloaded from yahoo

Usage

1
2
3
4
5
  update_instruments.yahoo(Symbols = c("stocks", "all"),
    verbose = FALSE)

  update_instruments.TTR(Symbols = c("stocks", "all"),
    exchange = c("AMEX", "NASDAQ", "NYSE"), silent = FALSE)

Arguments

Symbols

can be a vector of instrument names, or, can be ‘all’ or ‘stocks’ or, for update_instruments.TTR, can be NULL in which case all stocks found with stockSymbols will be defined

exchange

character vector of names of exchanges. Used in ‘TTR’ method. Can be “AMEX”, “NASDAQ”, or “NYSE”

verbose

be verbose?

silent

silence warnings?

Details

Although these functions are intended to update the metadata of previously defined instruments, update_instruments.TTR will define the stocks if they do not already exist.

update_instruments.TTR is only to be used on U.S. stocks denominated in USD.

Value

called for side-effect

Author(s)

Garrett See

References

Yahoo! Finance finance.yahoo.com YahooQuote http://dirk.eddelbuettel.com/code/yahooquote.html gummy-stuff.org www.gummy-stuff.org/Yahoo-data.htm

See Also

update_instruments.instrument, update_instruments.morningstar, update_instruments.masterDATA, stockSymbols, stock

Examples

1
2
3
4
5
6
7
8
## Not run: 
	stock('GS',currency('USD'))
 update_instruments.yahoo('GS')
	getInstrument('GS')
 update_instruments.TTR('GS')
 getInstrument('GS')

## End(Not run)

R-Finance/FinancialInstrument documentation built on May 8, 2019, 3:52 a.m.