I am getting lot of Eikon errors while requesting data via python API.
I get lot of eikon errors listed below while requesting data from Eikon Python API.
Listed below few examples where I am requesting data from Eikon :
1) ek.get_data(["0#.SPX"],[{'TR.CompanyMarketCap':{'sort_dir':'desc'}}])
2) ek.get_timeseries(df_data['Instrument'].iloc[10:20].to_list(), start_date =datetime.today()+timedelta(-548) ,end_date = datetime.today(),fields = "CLOSE")
Below is the error message whenever it throws error. Error does not come on every request I make, but error causing or hampering during production hours (due to error I had to reload the full model from start to achieve the desired output).
I use both ways to import eikon (either import refinitiv.dataplatform.eikon as ek OR import eikon as ek). Error come both cases.
Error message :
"raise EikonError(int(server_response['ErrorCode']), error_message)
eikon.eikonError.EikonError: Error code 2504 | UDF Core request failed. Gateway Time-out."
Best Answer
-
Hi anonymous user ,
Sorry to hear that you're facing this issue. Regarding the error code 401, could you please double-check that you are running your python code on the same physical machine where your Eikon/Workspace is running. Eikon proxy is part of your desktop.
See Eikon Data API Quick Start guide for Windows on how to create your valid API Key.
If the issue persists, review article Eikon Data API(Python) Troubleshooting | Refinitiv for the steps to troubleshoot.
Hope that this information is of help
1
Answers
-
anonymous user
Thanks for reaching out to us.
I tested the code several times and I can get the data properly.
According to the error message, it could be a problem in the Eikon process or the request may be timeout.
You can enable logging in the API by using the following code to verify which request message that causes this exception.
ek.set_log_level(1)
The output looks like this:
You may need to contact the Eikon support team directly via MyRefinitiv to verify if there is any issue in Eikon.
I hope that this information is of help.
0 -
That doesn't help. I am getting errors. Below is new line on the error for same kind of request (i.e, ek.get_..........)
eikon.eikonError.EikonError: Error code 401 | Eikon Proxy not running or cannot be reached. Please read the documentation on troubleshooting
0 -
Adding to above, below code given the error.
df_marketcap, _ = ek.get_data(["0#.STOXX50E"],[{'TR.CompanyMarketCap':{'sort_dir':'desc'}}])
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 中文论坛