I'm using the below code to get the data but the response we're getting is not what we want . I have attached the screenshot of the code with response we're getting with the excel sheet which contain the type of response we want. Can you please help with the code to use?
df, err = ek.get_data(
instruments = ['AAPL.O'],
fields = ['TR.RevenueMean.periodenddate','TR.RevenueMean.calcdate','TR.RevenueMean.date','TR.EPSMean','TR.NetProfitMean','TR.RevenueMean']
,parameters={'SDate':'2010-01-01','EDate':'2023-10-10','Frq':'FQ'}
)
display(df)
I am getting error 400 and 504. Please advise. Thank you.