Description Usage Arguments Value Examples
Downloads a historical prices data to xts object
1 | getHistoricalPrices(symbol, exchange, interval = 86400, period = "10Y")
|
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). |
Open |
Open prices |
High |
High prices |
Low |
Low prices |
Close |
Close prices |
Volume |
Volume |
1 2 3 | getHistoricalPrices("AAPL", "NASD")
getHistoricalPrices("GBPUSD", "CURRENCY", interval = 900, period = "3d")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.