getHistoricalPrices: Downloading historical prices to xts object

Description Usage Arguments Value Examples

Description

Downloads a historical prices data to xts object

Usage

1
getHistoricalPrices(symbol, exchange, interval = 86400, period = "10Y")

Arguments

symbol

The code of the security. For example, GOOG for Google or EURUSD for the Euro/Dollar currency pair.

exchange

The exchange where the security is listed. For example, NASDAQ for GOOG or CURRENCY for EURUSD. Can be empty for stocks.

interval

A number in seconds. Its minimum value is 60 seconds.

period

The period of time from which data will be returned. Always returns the most recent data. Examples of this parameter are 1d (one day), 1w (one week), 1m (one month), or 1y (one year).

Value

Open

Open prices

High

High prices

Low

Low prices

Close

Close prices

Volume

Volume

Examples

1
2
3
getHistoricalPrices("AAPL", "NASD")

getHistoricalPrices("GBPUSD", "CURRENCY", interval = 900, period = "3d")

arkada38/GFUAPI documentation built on May 10, 2019, 1:28 p.m.