For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
37 3 3 10

How to get LTM value for item TR.TotalRevenue?

I am trying to retrieve data for the company Allianz (RIC: ALVG.DE). In Eikon i can easily find the latest reporting quarterly and semi-annualy and there is also a TTM value of 101.128 as you can see in the below image.


I am trying to retrieve this value using the following command:

ids             = ['ALVG.DE']
fields          = ["TR.TotalRevenue","TR.TotalRevenue.rfperiode","TR.TotalRevenue.date"]
fields_params   = {'SDate':'0D', 'Period':'LTM'}
data1, err1     = ek.get_data(ids,fields,fields_params)


But this returns NaN. What should I modify to get the Trailing Twelve month value of 101.128 that i see in Eikon?

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonapifundamentals
1574756494547.png (59.1 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
18k 21 12 20

Hi @Tulkkas

Your code is correct but the data which period is LTM is not available.


I just reconfirm using "Data Item Browser"


You can contact Refinitiv Content Helpdesk to clarify why the data for LTM period is not available at https://my.refinitiv.com/


ahs.png (64.0 KiB)
ahs2.png (81.9 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

When you say the data is not available, it means not available specifically through the Python API right? Because obviously it is available in Eikon (see my screenshot). Is there a reason why it would not be available only through de API?

Click below to post an Idea Post Idea