getSymbols: Historical Data of a group of companies for specific period.

getSymbolsR Documentation

Historical Data of a group of companies for specific period.

Description

Historical Data of a group of companies for specific period.

Usage

getSymbols(
  start_date,
  end_date,
  symbol_vector,
  tidy = FALSE,
  use_cache = FALSE,
  auto_assign = TRUE
)

Arguments

start_date

The start date of the query. Date is a string that needs to be in yyyy-mm-dd format

end_date

The end date of the query. Date is a string that needs to be in yyyy-mm-dd format

symbol_vector

vector of company symbol numbers

tidy

logical operator to return aggregated tibble

use_cache

logical operator for using cached data

auto_assign

logical operator to specify if results should be assigned to the parent enviornment or returned

Value

returns a data frame of company historical stock performance

Examples

#This will extract the historical stock records for ARAMCO for full year 2020
## Not run:
getSymbols("2020-01-01", "2020-12-31", c(2222, 2050))
## End(Not run)



Hussain-Alsalman/tasi documentation built on Sept. 7, 2024, 1:17 p.m.