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 /
avatar image
REFINITIV
Question by Joris.Hoendervangers · Jan 10, 2018 at 10:29 AM · eikon data apiconstituents

Eikon Data API - TR.IndexConstituentWeightPercent throws an error

The field "TR.IndexConstituentWeightPercent" throws an error:

eikon.get_data('.SPX', ['TR.IndexConstituentRIC', 'TR.IndexConstituentWeightPercent'])

Retrieving only 'TR.IndexConstituentRIC' does work.

Also, the the Excel formula with TR.IndexConstituentWeightPercent does work:

=TR(".SPX","TR.IndexConstituentRIC;TR.IndexConstituentWeightPercent")

Any suggestions? Thanks!

weights.jpg (28.9 KiB)

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 Zhenya Kovalyov · Jan 10, 2018 at 10:40 AM

It seems like an issue on your side:

Could you send me your UUID and also the exact time when the request was executed, and I will escalate this.


screen-shot-2018-01-10-at-153735.png (89.2 KiB)
Comment

People who like this

0 Show 4 · 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
Joris.Hoendervangers · Jan 10, 2018 at 10:52 AM 0
Share

Thanks! I've e-mailed my UUID and the timestamp. Updating the Python package to the latest version didn't help. I'm running Python 3.6.0 on Windows. Running Python from the command line rather than Jupyter/iPython also doens't help...

avatar image
REFINITIV
Joris.Hoendervangers · Jan 11, 2018 at 08:04 AM 0
Share

Problem is no longer occurring.... Not sure what the cause has been.

avatar image
gabriel.g · Feb 01 at 02:00 AM 0
Share

I'm currently experiencing the same behaviour with the ek requests that are stated above and below (post from @chavalit.jintamalit). The constituents RICs are successfully returned, but the weight fields don't have any value and the error object contains a 'code 415' element for each row.

Any idea what the problem could be? Actually my goal is to request the TRBC sector weights of an index, so if there is a shortcut to directly request the sector weights that would solve my problem as well.

avatar image
gabriel.g gabriel.g · Feb 01 at 12:05 PM 0
Share

i've opened a new thread concerning my issue: https://community.developers.refinitiv.com/questions/72579/eikon-data-api-error-requesting-trindexconstituent.html

avatar image
REFINITIV
Answer by chavalit.jintamalit · Jan 10, 2018 at 10:37 AM

Here is my sample code:

import eikon as ek
ek.set_app_id('your_app_id')
y = ek.get_data('.SPX', ['TR.IndexConstituentWeightPercent','TR.IndexConstituentRIC'])
print y

I can retrieve the data. I did try swap the order of field and it also worked fine.

Here is the output:


capture.png (51.1 KiB)
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
Joris.Hoendervangers · Jan 10, 2018 at 11:02 AM 0
Share

Thanks @chavalit.jintamalit, that is output I would expect. I need to investigate a bit more...

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 >
8 People are following this question.

Related Questions

Eikon Data API - Error requesting TR.IndexConstituentWeightPercent

Value chains

How do I get quarterly net income from the Eikon Api?

How can I pull information via the EIKON API without the use of a monitor?

get_timeseries - Historical fields inconsistencies (interval = TAS)

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges