Estimate EPS and revenue data for latest quarter?
Author: bobydesi123
Creation Date: 1/15/2014 10:05 PM
profile picture

bobydesi123

#1
For any given stock e.g. RHT which reported earning on 12/19/13, i would like to find out
1. Actual EPS vs. street estimate
2. Actual revenue vs. the street estimate.

Is there a way to find this information. I am only interested in the past qtr only.
I may be wrong but I dont think the fidelity fundamental data provides this information.
I would not mind even a paid website.
Thanks in advance
profile picture

Eugene

#2
If you can't find it in Fidelity's data or among our many fundamental data providers, then show us several free sources of this data on the web. If the numbers allow themselves to be extracted (from a programming standpoint), then we might look at creating a script-based solution for getting the street estimate numbers.
profile picture

Cone

#3
When you perform your Fidelity Update, make sure to put a check next to "Fidelity Estimated Earnings Data for Securities". Then you'll be able to just drag it onto a chart from the Fidelity Data dialog ("F" icon in the chart toolbar). That will give you the EPS estimate only; you need another source for revenue estimates.

Here's how you can access the most-recent value using code:
CODE:
Please log in to see this code.


Note that EPS estimates are updated throughout the calendar quarter (i.e., often changing), but as long as you're comparing it to actual earnings, it should be valid to use for backtesting too.
profile picture

bobydesi123

#4
Cone, Eugene
Thank you for your quick responses.
I am aware of the EPS estimate that the fidelity fundamental data provides. However, i am unable to locate the revenue estimates.
Eugene, i am trying to find a source that provides revenue estimate. Hope fully i can find it soon and will provide that source. I will also look at all the list of providers from MS123 and see if any of them can help.,

Just to make it clear, i am looking for eps/revenue estimate for the stocks whose earning had already announced. for e.g. RHT that had announced the earning on 12/19/13, i would like to know what was the street revenue estimate.
profile picture

bobydesi123

#5
Cone, Eugene
One way I found to access the earning report is as follows:
Will following help to write script to extract the revenus/eps estimates?

I know that the RHT announced EPS on 12/19/13

Using yahoo i can search for news as follows:
http://finance.yahoo.com/q/h?s=RHT&t=2013-12-19
This will give me all the headlines for RHT on EPS dates
profile picture

Eugene

#6
This will not get you the actual number because news headlines are unpredictable. If you want to parse news for this purpose, then we've already developed 2 news data providers (part of MS123 Fundamental/News providers extension):

Google News provider
Reuters News provider

UPDATE 09/02/2020
SeekingAlpha news provider

What I was asking for is rather a source of estimate numbers that can be looked up, not requiring semantic analysis.
profile picture

bobydesi123

#7
1. So far i have had no luck finding a source for past revenue estimates. I guess i will have to do this manually for now.

2. Is it possible to show me a script example to extract EPS and revenue estimate for the next qtr from yahoo>Analyst+Estimates.
e.g. for ups it will be http://finance.yahoo.com/q/ae?s=UPS+Analyst+Estimates. I am interested in Avg. Estimate eps, Revenue Est Current Qtr

profile picture

Eugene

#8
You asked about data not appearing after adding a Google/Reuters fundamental item and since your post was edited, seems to have found the answer yourself: data has to be updated first, just like you're used to with Fidelity fundamental data.

2. Sure. Let me come up with an example.
profile picture

Eugene

#9
There is no "Avg. Estimate eps" there but there's "Avg. Estimate Earnings Est". Similarly, "Revenue Est Current Qtr" must be "Avg. Estimate Revenue Est". Next, you asked about "revenue estimate for the next qtr" but then mentioned "Current Qtr". If the following returns an unwanted number, point me towards the right cell as there seems to be ambiguity in your request.

Prerequisites:

1. Community Components is assumed to be installed (just because code requires HtmlAgilityPack).
2. Add a reference to System.Xml in the Editor.

CODE:
Please log in to see this code.


Hope this will do.
profile picture

bobydesi123

#10
Eugene,
I found the source that lists the estimated eps and revenue for given stock. It happened to be of your ms123 provider.
http://www.99wallstreet.com/v2/earnings.php?symbol=rht&submit=

What i would ideally like is a script that will:

1. go through all the stocks of a selected dataset.
2. send the last estimate revenue, eps and the actual eps and revenue to a .csv file or just a debug window.
e.g. Red Hat, Inc.
ActualEPS--- estimateEPS ActRev--- estRev --------------EPS date ------priceOnEPSdate PriceafterEPSdate
0.42 -------- ---0.35 -----------397M----383.13M------------- 2013-12-19----------49.0 --------------------56.10


I know you have an extention already that displays the above information from http://www.99wallstreet.com and can write script to accomplish the above but my suggestion is a strip down version of what the ms123 extention accomplishes.

Thank you very much for your help and advice.
profile picture

bobydesi123

#11
Sorry for the double posts.
As far as your other question for the yahoo.com data the field in questions are e.g. RHT Current Qtr.Feb 14:
EPS- Avg. Estimate 0.37
Revenue- Avg. Estimate 398.89M
Thanks.

BTW, i am really amazed at how fast you can crank out codes that will take me a good whole day!
profile picture

Eugene

#12
QUOTE:
As far as your other question for the yahoo.com data the field in questions are e.g. RHT Current Qtr.Feb 14:
EPS- Avg. Estimate 0.37
Revenue- Avg. Estimate 398.89M

Good, so the code is correct.
profile picture

Eugene

#13
richard1000 asked in a duplicate thread:

I am trying to scrape the yahoo finance page for analysts data (for example https://finance.yahoo.com/quote/MSFT/analysts). I am trying to scrape Earnings Estimate table, Avg. Estimate x Current Qtr. and Revenue Estimate table, Avg.Estimate x Current Qtr.

Since Yahoo changed their web page, the string variable "xpath" is wrong. What should be the correct xpath?

I copied this code from this forum while back but I can't seem to find the topic anymore.
profile picture

Eugene

#14
Yahoo! has had a major overhaul and the code above is broken beyond repair because its scraping technique isn't handling AJAX requests the site is now firing. Simply put, it requested the raw HTML page whereas Yahoo! now pulls all the table contents with Javascript (AJAX). Let me see if I can find a workaround.
profile picture

Eugene

#15
As I hacked my way through their AJAX calls it turned out that elegantly parsing those JSON objects (like we do in certain data providers) would get inappropriately tricky and hard to maintain in this context of a quick script-based solution. So here's a head-on approach to the problem, not too elegant but robust and very simple:

CODE:
Please log in to see this code.
profile picture

richard1000

#16
Very nice work Eugene. Can it be part of WL wiki techniques for future reference?
profile picture

Eugene

#17
Glad to help.

The answer is maybe. For that it needs some enhancements (namely to cache requests on local disk and to pull in more numbers) and to prove that it's robust over time. Let's revisit it later.
profile picture

richard1000

#18
Another web scraping request. I wish to scrape the following web site and scrape the "Free Cash Flow" (the last line) for the latest quarter.

http://www.marketwatch.com/investing/stock/aapl/financials/cash-flow/quarter#


profile picture

Eugene

#19
1. It doesn't seem to be related to "Estimate EPS and revenue data".
2. "Free Cash Flow" is already available in YCharts data, even in its free subset. And it can be used despite the little glitch in the current build (see workaround).
profile picture

richard1000

#20
1. Sorry, I should have started a different thread instead.

2. Yes, YCharts data has "Free Cash Flow" but with a significant delay. The delay is, of course, due to how YCharts plots fundamental data to avoid front running the earnings release date.
profile picture

Eugene

#21
I'm not sure if MarketWatch is considerably faster than YCharts in reporting this figure, but nonetheless if you start a new thread I'll look into scraping it.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).