get_investing_data: Get investing data at the url from the given dates

Description Usage Arguments Examples

View source: R/data-scrape.R

Description

Given a url for historical data of a stock at investing.com, extract a tibble with the stock data from start_date to end_date

Usage

1
get_investing_data(url, st_date, end_date, message = FALSE)

Arguments

url

The url to the historical data at investing.com

st_date

the start date as a character in MM/DD/YYYY format

end_date

the end date as a character in MM/DD/YYYY format

message

If TRUE, messages the user with the results of the http query for the data. Defaults to FALSE.

Examples

1
2
3
4
5
6
7
"New Zealand" %>%
  msci_link() %>%
  get_investing_data('12/31/2019', '03/08/2020')
"https://www.investing.com/equities/american-airlines-group-historical-data" %>%
   get_investing_data('12/31/2019', '03/08/2020')
 "https://www.investing.com/equities/bank-of-america-historical-data" %>%
   get_investing_data('12/31/2019', '03/08/2020')

benSepanski/pfselect documentation built on May 1, 2020, 1:57 p.m.