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.
Best Answer
-
Please try the TR.InstrumentDescription field
df, err = ek.get_data('.SPXESUN', 'TR.InstrumentDescription')
You can find all the available fields to be requested by the ek.get_data() method by using the Data Item Browser tool.
0
Answers
-
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 .SPXESUN
0 -
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
0 -
Hi @Jirapongse - this is helpful, but is there a way to do the search in reverse - search for "S&P 500 ESG Index USD NTR" string to get the Instrument ID? thank you
0 -
Yes, you need to use the Search API in the LSEG Data Library for Python. For example:
ld.discovery.search( view = ld.discovery.Views.SEARCH_ALL, query = "S&P 500 ESG Index USD NTR", top = 10 )
The sample code is on GitHub.
For more information, please refer to this Building Search into your Application Workflow article
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 251 ETA
- 556 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 648 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 916 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛