Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
`Earnings date calendar

Is there a way to check in pipeline if earnings date is within 2 days

I think its something like this but I keep getting errors


from quantopian.pipeline.data.eventvestor import EarningsCalendar  
from quantopian.pipeline.factors.eventvestor import (  
    BusinessDaysUntilNextEarnings,  
    BusinessDaysSincePreviousEarnings  
)

def make_pipeline():  
    minprice = USEquityPricing.close.latest > 5  
    pipe.add(BusinessDaysUntilNextEarnings(), 'NE')  
pipe.scree('NE' <=2)  
1 response

Ive been getting errors as well trying to use BusinessDaysUntilNextEarnings... there might be a glitch? Does anyone know of a work around?