When I try running this query:
def before_trading_start(context):
fundamental_df = get_fundamentals(
query(
fundamentals.earnings_report.accession_number,
fundamentals.earnings_report.file_date,
fundamentals.earnings_report.basic_eps,
fundamentals.earnings_report.form_type,
fundamentals.earnings_report.normalized_basic_eps,
fundamentals.earnings_report.period_ending_date,
)
);
context.fundamental_df = fundamental_df
I get the following error:
AttributeError: type object 'earnings_report' has no attribute 'accession_number'
If I comment out accession_number, I get an error with the next line of the query:
AttributeError: type object 'earnings_report' has no attribute 'file_date'
leading me to believe this isn't working for another reason?