getSymbols | R Documentation |
Historical Data of a group of companies for specific period.
getSymbols(
start_date,
end_date,
symbol_vector,
tidy = FALSE,
use_cache = FALSE,
auto_assign = TRUE
)
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 |
returns a data frame of company historical stock performance
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.