Skip to contents

Query data from Yahoo finance

Usage

yahoo_query_data(.vec, .n_stocks_per_batch, .start, .end)

Arguments

.vec

A vector with the tickers

.n_stocks_per_batch

An integer that sets the maximum number of tickers per batch

.start

A date "YYYY-MM-DD" for the beginning of the data extraction

.end

A date "YYYY-MM-DD" for the end of the data extraction

Value

A table containing stock data

Examples

if (FALSE) { # \dontrun{
tickers <- c("A", "AAPL", "ABBV")
yahoo_query_data(tickers, .n_stocks_per_batch = 1, .start = "2025-01-15")
} # }