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
3 2 3 6

How to find the name of a list of indexes via the ek.get_data() method?

Hi Team,

Hope all is well.

Client is willing to find the name of a list of indexes via the ek.get_data() method but does not find the right field (parameter) in the method.

For example, if he tries with '.SPXESUN', via ek.get_data('.SPXESUN', 'TR.IndexName'), he could not retrieve the right name, which is 'S&P 500 ESG INDEX USD NTR').

Moreover, where can the Client find all the available fields to be requested by the ek.get_data() method?

May you help further on this?

Thank you.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-data-platform-eikon
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.

Upvote
Accepted
82.8k 280 53 77

@VyaJunaine.Gutierrez

Please try the TR.InstrumentDescription field

df, err = ek.get_data('.SPXESUN', 'TR.InstrumentDescription')

1633662817200.png

You can find all the available fields to be requested by the ek.get_data() method by using the Data Item Browser tool.



1633662817200.png (7.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
14.9k 32 5 10

Hi @VyaJunaine.Gutierrez

I checked the .SPX index and found that its name is shown in field 'DSPLY_NAME', but for .SPXESUN, this field is shown as 'SPXESUN'.

as I need more clarification about the content, the support ticket, case number 10542391 was raised via helpdesk asking about why their display names are different and which field should be used to get the 'S&P 500 ESG INDEX USD NTR' from .SPXESUN1633660245926.png


1633660245926.png (237.7 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.

I've just got an update from case 10542391, they suggested using 'TR.InstrumentDescription ' as Jirapongse mentioned

FYI, according to the comment from the ticket

Content specialist confirmed  The reason is that we have a limit (16 characters) displaying name on FID 3 (DSPLY_NAME), hence we have short name on FID 3

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.