Learn R Programming

lares (version 4.4)

get_stocks_hist: Download Stocks Historical Data

Description

This function lets the user download stocks historical data

Usage

get_stocks_hist(symbols = NA, from = NA, today = TRUE, tax = 30,
  verbose = TRUE)

Arguments

symbols

Character Vector. List of symbols to download historical data. Example: c('VTI','TSLA')

from

Date. Since when do you wish to download historical data

today

Boolean. Do you wish to additionaly download today's quote?

tax

Numeric. How much does of your dividends does the taxes take? Range from 0 to 99

verbose

Boolean. Print results and progress while downloading?