prices: 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 'chartByDay'argument which offers a granular, day-based download. This is slow, but can be less expensive than the 'range' mode in prices_batch.

Usage

1
prices(symbols, start_date, end_date)

Arguments

symbols

Vector of IEX symbols. Length must be < 1000

start_date

Optional start date. Defaults to the last trading month.

end_date

Optional end date. Defaults to today.

Value

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

References

See IEX api documentation

See Also

prices_batch

Examples

1
2
3
4
5
## Not run: 
apikey("your_api_key")
prices(c("AAPL","AMZN"),start_date = "2021-01-01",end_date="2021-01-06")

## End(Not run)

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