Description Usage Arguments Value References See Also Examples
Using the IEX cloud 'batch' endpoint, this function pulls data
based on the ‘chart' endpoint’s 'range'argument which offers ranges in
5d, 1m, 3m, 6m, 1y, 2y, 5y, max. This is fast, but can be expensive. Use
prices
for a more granular (and slower) download.
1 | prices_batch(symbols, start_date, exact = FALSE)
|
symbols |
Vector of IEX symbols. Length must be < 1000 |
start_date |
Optional start date. Defaults to the last trading month. |
exact |
If set to 'TRUE', only the 'start_date' is queried. |
A tibble with daily adjusted OHLC and unadjusted close data as well as volume.
prices
1 2 3 4 5 | ## Not run:
apikey("your_api_key")
prices_batch(c("AAPL","AMZN"),start_date = Sys.Date() - 10)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.