Eikon Data API - Error requesting TR.IndexConstituentWeightPercent

I'd like to request the constituents of an index via:
df, err = ek.get_data('.SPX', ['TR.IndexConstituentRIC', 'TR.IndexConstituentWeightPercent'])
However the weight fileds don't contain any value:
>>> df
Instrument Constituent RIC Weight percent
0 .SPX POOL.OQ <NA>
1 .SPX CHRW.OQ <NA>
2 .SPX AJG.N <NA>
3 .SPX CNP.N <NA>
4 .SPX AMCR.N <NA>
.. ... ... ...
500 .SPX DXC.N <NA>
501 .SPX SNPS.OQ <NA>
502 .SPX J.N <NA>
503 .SPX SIVB.OQ <NA>
504 .SPX AVY.N <NA>
[505 rows x 3 columns]
Furthermore I get this error for every single row in the result:
>>> len(err)
505
>>> err[0]
{'code': 415, 'col': 2, 'message': 'Unable to collect data for some field(s).', 'row': 0}
My overall goal is to request the TRBC sector weights of an index, so if there is another way to directly request the sector weights (rather than manually computing them via constituents) that would solve my problem as well.
I've noticed that another person in 2018 had quite a similar problem (see https://community.developers.refinitiv.com/questions/23018/eikon-data-api-trindexconstituentweightpercent-thr.html), hoewever it is not clear what solved the issue back then.
Best Answer
-
This may be related to your Eikon account entitlements. For S&P indices access to the list of constituents is included with base Eikon subscription, while access to weights is fee liable and requires additional entitlements. See if you can view constituent weights for .SPX in Eikon application's Constituents Analysis app. Try the Summary or Index Sector report in Constituents Analysis app. If you see "NP" in the Weights column, this indicates that your Eikon account is not entitled for this data.
0
Answers
-
I just use the base subscription and can confirm that the concrete constituents weights are not shown when looking at the index overview in Eikon Desktop App - so this must indeed be the reason I cannot retrieve them.
However, since I'm actually looking for the current consolidated sector weights of the .SPX, which are actually shown in the index constituents analysis window in the Eikon Desktop App, is there any way to retrieve them via Eikon Data API?
0 -
I'm afraid not. You can download them as an Excel spreadsheet from Constituents Analysis app, but they're not available through Eikon Data APIs.
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
- 685 Datastream
- 1.4K DSS
- 616 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
- 252 ETA
- 556 WebSocket API
- 38 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
- 652 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
- 917 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 中文论坛