getEarnings: Download earnings data from investing.com

View source: R/getEarnings.R

getEarningsR Documentation

Download earnings data from investing.com

Description

This function retrieves earnings data from the investing.com website for a specified time period

Usage

getEarnings(
  from = Sys.Date() - 5,
  to = Sys.Date() + 5,
  country = "United States"
)

Arguments

from

the start date in yyyy-mm-dd format (default is 10 days prior to current date)

to

the end date in yyyy-mm-dd format (default is the current date)

country

the country from which to get earnings data (default is United States)

Value

a data frame with earnings data

Note

Not for the faint of heart. All profits and losses related are yours and yours alone. If you don't like it, write it yourself.

Author(s)

Vyacheslav Arbuzov

Examples

getEarnings(from = Sys.Date(),to = Sys.Date()+5,country='Belgium')

rusquant documentation built on Sept. 30, 2024, 9:42 a.m.