Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by gabriel.g · Feb 01, 2021 at 12:04 PM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikonindexconstituents

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.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov.1 · Feb 01, 2021 at 05:16 PM

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.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by gabriel.g · Feb 01, 2021 at 07:55 PM

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?

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Alex Putkov.1 ♦♦ · Feb 01, 2021 at 07:58 PM 0
Share

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.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
10 People are following this question.

Related Questions

ETF constituent changes

Using API to pull the historical index constituents during a period of time

How to get list of leaver companies of the ASX 100 using the Python API?

Can't get constituents of Russell index

How can I get the index constituents with float shares and Total Shares via API COM at any given date ?

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges