getPriceTimeSeries: Download historical stock prices as a time-series from AV

View source: R/avEndpoints.R

getPriceTimeSeriesR Documentation

Download historical stock prices as a time-series from AV

Description

Wrapper to AV API. Requires free or premium key.

Usage

getPriceTimeSeries(
  symbol,
  period = "daily",
  datatype = "json",
  key = "premium"
)

Arguments

symbol

stock ticker to look up

period

period: "intraday", "daily", "weekly", "monthly"

datatype

"json" or "csv"

key

"premium" or "free"; the type of API key obtained from AV

Details

Default 1 min for intraday, full output size, and adjusted.

Value

parsed json or csv file


shill1729/trader documentation built on Dec. 27, 2022, 10:55 p.m.