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!
Best Answer
-
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.
0
Answers
-
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 yI can retrieve the data. I did try swap the order of field and it also worked fine.
Here is the output:
0 -
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...
0 -
chavalit.jintamalit, that is output I would expect. I need to investigate a bit more...
0 -
Problem is no longer occurring.... Not sure what the cause has been.
0 -
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.0 -
i've opened a new thread concerning my issue: https://community.developers.refinitiv.com/questions/72579/eikon-data-api-error-requesting-trindexconstituent.html
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 6 Bot Platform
- 17 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
- 370 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛