getIntradayPrice: Download intraday data from Google Finance or Yahoo Finance

Description Usage Arguments Value Examples

Description

Download intraday data from Google Finance or Yahoo Finance in xts format

Usage

1
2
getIntradayPrice(ticker, src = "google", period = 1, interval = 5,
  tz = NULL, auto.assign = FALSE, time.shift = 0)

Arguments

ticker

ticker for the data to download, include source (exchange)

src

source, can be either "google" or "yahoo"

period

time period in integer # of days

interval

time interval in integer # of minutes

tz

timezone, set to NULL by default

auto.assign

similar to getSymbols in quantmod, set to false by default

time.shift

time shift to apply (in hours) to align the time stamp

Value

an xts time series

Examples

1
2
x <- gquote::getIntradayPrice("INDEXSP:.INX",period=5, interval=5)
tail(x)

prodipta/gquote documentation built on May 14, 2019, 8:22 a.m.