getStocks: Load multiple stocks into a single time-series/matrix

View source: R/getStocks.R

getStocksR Documentation

Load multiple stocks into a single time-series/matrix

Description

Returns common sample of historical prices of given portfolio.

Usage

getStocks(
  symbols,
  period = "daily",
  interval = NULL,
  adjusted = TRUE,
  key = "premium"
)

Arguments

symbols

list of stock symbols to look up

period

resolution between prices: "daily", "weekly", "monthly"

interval

NULL for anything but intraday otherwise "1min", "5min", "15min", "30min", "60min"

adjusted

boolean for adjusted prices

key

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

Value

xts


shill1729/ravapi documentation built on June 1, 2025, 6:05 p.m.