Learn R Programming

lares (version 4.7)

stocks_hist: Download Stocks Historical Data

Description

This function lets the user download stocks historical data

Usage

stocks_hist(symbols = c("VTI", "IEMG"), from = Sys.Date() - 365,
  tax = 30, verbose = TRUE)

Arguments

symbols

Character Vector. List of symbols to download historical data

from

Date. Since when do you wish to download historical data? If not set, will return since 365 days ago

tax

Numeric. How much [0-99] of your dividends are gone with taxes?

verbose

Boolean. Print results and progress while downloading?

See Also

Other Investment: daily_portfolio, daily_stocks, etf_sector, splot_change, splot_etf, splot_growth, splot_roi, splot_summary, splot_types, stocks_file, stocks_obj, stocks_report