prices_batch: Batch download (un-)adjusted OHLC prices and volume data in...

Description Usage Arguments Value References See Also Examples

View source: R/iexcloud.R

Description

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.

Usage

1
prices_batch(symbols, start_date, exact = FALSE)

Arguments

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.

Value

A tibble with daily adjusted OHLC and unadjusted close data as well as volume.

References

See IEX api documentation

See Also

prices

Examples

1
2
3
4
5
## Not run: 
apikey("your_api_key")
prices_batch(c("AAPL","AMZN"),start_date = Sys.Date() - 10)

## End(Not run)

kermit-t-frog/iexcloudr documentation built on Dec. 21, 2021, 5:25 a.m.