How to get the Before or After market field of an Earnings release?
Author: kelvinyip
Creation Date: 8/28/2020 11:49 PM
profile picture

kelvinyip

#1
I am using this method to fetch earnings.

CODE:
Please log in to see this code.


It is working fine and I can even see the plot on the chart. When I look at the data using the data window, I see that it shows Released: After Close. How can I extract this data ?

I am using fiSeries1 to get earnings date easily but I need to know if it is released before or after market hours.
profile picture

kelvinyip

#2
I see this code but how do I extract only the before/after market release ?

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

Eugene

#3
Use the GetDetail property of the FundamentalItem object (documented in the QuickRef) to query for "time" (applies to this Zacks provider only):

CODE:
Please log in to see this code.


Here's how:

CODE:
Please log in to see this code.


Updated the Wiki.

P.S. More fields specific to Zacks are available: periodEnding, estimate, surprise, surprisePct, time.

QUOTE:
Zacks provides earnings data going several years back: Date, Period Ending, Reported EPS, EPS estimate, EPS surprise, Surprise %, Release Time (of day). Each item comes with these extra details attached: periodEnding, estimate, surprise, surprisePct, time.
profile picture

kelvinyip

#4
I want to see if there is a gap up after earning release so I have something like this to detect if it is an earning date...
given the Code you provided above, I have to loop through all fundamental items for this symbol each time to fish for the right date ? or there is an easier way to access FundamentalItem by calling something directly in fiSeries1 ?

CODE:
Please log in to see this code.

profile picture

Eugene

#5
It's a different, more general WealthScript question not related to the topic's subject (Zacks specific field) that you can ask in a matching forum thread.
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).