Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
16 4 3 4

Why does this code return data for 1996-1998 when I am asking for 1990?

Hi

Why does this code return data for 1996-1998 when I am asking for data for fiscal year 1990.

w,err=ek.get_data('4295913449', 'TR.RevenueDate', {'SDate': '1990-01-01', 'EDate': -1, 'FRQ': 'FY', 'Curn': 'EUR'})

thx

  Instrument Date 
0 4295913449 1996-12-31T00:00:00Z 
1 4295913449 1997-12-31T00:00:00Z 
2 4295913449 1998-12-31T00:00:00Z
eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apiapi
icon clock
10 |1500

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

(visible by AHS only)

The given code is incorrect.

This is the correct code

w,err=ek.get_data('4295913449', 'TR.Revenue.Date', {'SDate': '1990-01-01', 'EDate': -1, 'FRQ': 'FY', 'Curn': 'EUR'})

Hello @mbp

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

@mbp

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvotes
Accepted
3.8k 4 4 6

Hi @mbp

Please compare that with the information in Thomson Reuters Eikon. This is the data available for this company.


revenue.jpg (59.8 KiB)
icon clock
10 |1500

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

Upvotes
16 4 3 4

Hi,

This is not what I expected to see.

I would have expected something like a) it's because you're missing ... or b) there is an error in EIKON API.

icon clock
10 |1500

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

Hi @mbp

The output is correct and logical. You specifically request for a data in a time span of 1990 up to current year -1Y and you receive the available data for that period. Nothing is missing and there is no error in Eikon API.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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