getEarningsCalendar: Get the earnings calendar from yahoo

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/getCalendar.R

Description

Get a data.frame of all the stocks that announce(d) earnings on a given Date.

Usage

1
2
3

Arguments

Date

a Date, or character string in the format CCYY-MM-DD

from

first Date for which to retrieve the Earnings Calendar

to

last Date for which to retrieve the Earnings Calendar

Details

.getEarningsCalendar will usually be called by getCalendarByDay, but it can also be called directly.

getEarningsCalendar is a wrapper that creates a sequence of dates between from and to, and then applies .getEarningsCalendar to each of those dates and, finally, merges the results together into a single data.frame.

Value

a data.frame with columns “Date”, “Time”, “Symbol”, “Company”

Note

ALPHA CODE!!! Subject to change.

Author(s)

Garrett See

References

http://biz.yahoo.com/research/earncal/today.html

See Also

getEconomicCalendar, getCalendarByDay

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
## fetch the Earnings Calendar from yahoo for today
.getEarningsCalendar()
## from a single date in the past or future
.getEarningsCalendar("2012-01-04")

## fetch the Earnings Calendar from yahoo for a range of dates
getEarningsCalendar(from="2012-01-04", to="2012-01-06")
## can also use like .getEarningsCalendar and only use a single Date
getEarningsCalendar("2012-01-04") # same as .getEarningsCalendar('2012-01-04')

## End(Not run)

qmao documentation built on May 2, 2019, 4:54 p.m.