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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 1 2

Difference between Eikon Excel and Python API results

Hi,

I've noticed a discrepancy between data results using Eikon Formulas in Excel and Python API.

This is the Excel formula and results:

=TR("US29355XAD93",$F$3:$J$3,"TOP=5  CH=Fd RH=IN",E6)

While this is the Python ones:

campi=['TR.GR.RatingSourceCode',  'TR.GR.RatingDate',  'TR.GR.Rating ',  'TR.GR.RatingSPEquivalentRank',  'TR.GR.RatingSourceDescription']

dict_opt={'TOP':'5', 'CH':'Fd', 'RH':'IN'}

df,err=ek.get_data(['XS1384857493'],campi, dict_opt)

It seems to the column Rating SP Equivalent Rank is flipped upside down. Can anybody help me? Are there hyper parameters or options to use? Results in JSON format are not different from the above ones.

Thanks

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonexcelcredit-ratings
exceleikon.png (22.1 KiB)
pyeikon3.png (32.2 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.

Hi @nicola.torresani,

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

1 Answer

Upvotes
Accepted
39.2k 75 11 27

This is a known issue for which there's no workaround, I'm afraid. The fix is currently planned for end of April. For more details see these two threads
https://community.developers.refinitiv.com/questions/23364/eikon-api-incorrect-output-when-start-date-is-befo.html

https://community.developers.refinitiv.com/questions/23111/corporate-action-adjustment-factor-missing-data-bu.html

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.

Thank you @Alex Putkov. So is there no other way than to wait till April?

For this specific use case you could try constructing the request that would return a single row instead of a table. E.g. add the filter on specific rating source to the parameters. But there's no generic workaround, I'm afraid.

Click below to post an Idea Post Idea