Hello, I am trying to download on Python the EPS Trailing 12 month of a company.
Until now, I found the EPS reported for the last Year of the company, using the command:
data_EPS = ek.get_data('AAPL.O', ["TR.EPSActValue.calcdate","TR.EPSActValue"], {"SDate":"0", "EDate" : "0", "Frq" : "Y"})[0].dropna()
and I correctly find the estimate 3.28 for 2020
However, I would like to get the code for EPS Traiing 12 month, which corresponds to the last 4 available reported quarters.
In the case of AAPL.O, the company already reported Q121 results and the estimated value should be 3.70.
What is the correct field to be entered?
If it is required to use Datastream colud you provide me the whole formula please?
Thank you for your help
Daniele