Skip to contents

Retrieves daily OHLCV data for a given ticker using quantmod/Yahoo.

Usage

fetch_price_history(ticker, start_date = "2020-01-01", end_date = Sys.Date())

Arguments

ticker

Character string. The ticker symbol (e.g., "VUSA.L").

start_date

Date or character. Start date (default "2020-01-01").

end_date

Date or character. End date (default Sys.Date()).

Value

A tibble with Date, Open, High, Low, Close, Volume, Adjusted columns.

Examples

if (FALSE) { # \dontrun{
  fetch_price_history("VUSA.L")
} # }