Learn R Programming

quantmod (version 0.3-4)

getQuote: Download Current Stock Quote

Description

Fetch current stock quote from specified source. At present this only handle sourcing quotes from Yahoo Finance, but it will be extended to additional sources over time.

Usage

getQuote(Symbols, src = "yahoo")

Arguments

Symbols
character string of symbol
src
source of data (only yahoo is implemented)

Value

  • Returns a zoo object of one row, with timestamp of class POSIXct.

References

Yahoo! Finance finance.yahoo.com

See Also

getSymbols

Examples

Run this code
getQuote("AAPL")

Run the code above in your browser using DataLab