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
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛