EikonError: Error code 400 | Backend error. 400 Bad Request for data item "TR.ConsHoldPctPortfolio
I tried to send again a request including the "TR.ConsHoldPctPortfolio" variable, but it seems that the Eikon API still cannot return the required data (specifically for that variable). I tested this several times over the last 3 hours.
I tried replicating using the additional syntax, but to no avail. Could you please provide the complete syntax using Eikon API? (Please note that Client only have access to EIkon API, they don't have RDP API)
Here's my Code:
import refinitiv.data as rd
rd.open_session
config = rd.get_config()
config.set_param('apis.data.datagrid.underlying-platform', 'rdp')
df = rd.get_data(universe='LSEG.L',
fields='TR.ConsHoldPctPortfolio')
Best Answer
-
The client can also open two sessions, one going to RDP another the default udf by using the content layer of the library, see below:
import refinitiv.data as rd
from refinitiv.data.content import fundamental_and_referencesession_1 = rd.session.Definition().get_session()
session_2 = rd.session.Definition().get_session()
config_session_1 = session_1.config
config_session_1.set_param('apis.data.datagrid.underlying-platform', 'rdp')session_1.open()
session_2.open()After defining, modifying and opening the sessions, we can pass the respective session object to the get_data function as below:
response = fundamental_and_reference.Definition(
universe='LSEG.L',
fields='TR.ConsHoldPctPortfolio'
).get_data(session_1)
response.data.dfresponse = fundamental_and_reference.Definition(
universe='LSEG.L',
fields='TR.Revenue'
).get_data(session_2)
response.data.dfHope this helps.
Best regards,
Haykaz
1
Answers
-
Hi @kristinekae.malig ,
Please try calling open session after the config set up. First run the following cells:
import refinitiv.data as rd
config = rd.get_config()
config.set_param('apis.data.datagrid.underlying-platform', 'rdp')
rd.open_session()Only then, you can try on separate cell, call:
df = rd.get_data(universe='LSEG.L', fields='TR.ConsHoldPctPortfolio')
dfNow it will use RDP service.
Hope this helps.
Best regards,
Haykaz
0 -
hi @aramyan.h I still got the same error -- pls see the screen shot below,
0 -
Hi, please try as shown below after restarting your kernel:
0 -
@aramyan.h thanks! it worked! -- So for this data item only, the client needs to do the ff syntax first to be able to download the data?
import refinitiv.data as rd
config = rd.get_config()
config.set_param('apis.data.datagrid.underlying-platform', 'rdp')
rd.open_session()
0 -
yes, that's correct
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 中文论坛