Error in retrieve timeseries

i'm trying to pull data through api. here is my python code:
start, end = '2020-01-01','2021-06-01'
a = ek.get_timeseries('AAPL.O', 'Close', start, end)
Shows AttributError:'NoneType' object has no attribute 'status_code'
can anyone help - is this a proxy issue? thx
Best Answer
-
So far what I see is that you use a relatively old version of Eikon (v4.0.51). The most recent version of Eikon is v4.0.54. At the same time you use a relatively new version of EDAPI library. I'm pretty confident we never tested this combination of Eikon version and the version of EDAPI library. This said, I cannot definitively say that they don't work together. The output from EDAPI logger you provided suggests EDAPI library successfully established the handshake with Eikon API Proxy. For further troubleshooting it would be very helpful to get the output from EDAPI logger when you execute ek.get_timeseries method after setting ek.set_log_level(1). And another thing that would be helpful is the SxS log file. I appreciate you already provided one. Unfortunately, the one you provided was created with default trace level. What we need is the log file created with maximum trace level. For instructions on how to configure the trace level for Eikon logs see chapter "3. Verify that Eikon Desktop is running properly and APIPROXY service is enabled" in the article titled "Eikon Data API(Python) Troubleshooting". After configuring the trace level in Eikon logs, make sure to click Configure button in the bottom right corner of Configuration Manager window. Then restart Eikon, reproduce the problem of ek.get_timeseries raising an exception, and then grab the SxS log file.
Another thing you could try is downgrade the version of EDAPI library, and see if that resolves the problem. To downgrade EDAPI library run
pip install eikon==1.1.2
0
Answers
-
@KarenLi2004 This is indicative of lack of Eikon connectivity - can you close and restart Eikon and then try the code again - code works fine my end. Let us know how you get on.
0 -
Thanks Jason. still get the same error msg. my desktop Eikon and Excel add-on connection is fine. wanted to confirm if this is due to some proxy issue? is there anyway i can set up the proxy for eikon connection? thx
0 -
Could you try increasing the logging level for Eikon Data APIs library by executing
ek.set_log_level(1)
Then reproduce the issue and share the output. I expect to see a more verbose output, which hopefully will point to the root cause of the issue.
0 -
Hello @KarenLi2004
Did you try the steps in the Eikon Data API troubleshooting guide https://developers.refinitiv.com/en/article-catalog/article/eikon-data-api-python-troubleshooting-refinitiv article yet?
0 -
yes, i followed the troubleshooting steps.
here is set_log_level(1) output:
0 -
and other screenshots:
0 -
log files as below. no APIProxy file can be found
0 -
The output from http://localhost:9060/api/status should look like this:
I have a PowerShell script (CheckEikonDataAPI16.ps1.txt)that could be used to verify the status of the Eikon Data API Proxy. You may need to restart Eikon.
Please follow the steps in this thread to run the script.
0 -
Unable to configure the higher trace level. after choose '4-Debug' under 'Thomas Reuters Desktop' Trace level, i cannot click 'configure' to activate it. here is the screenshot:
0 -
0
-
0
-
Thanks Alex/team! The error is indeed solved by changing EDAPI version. Will upgrade Eikon desktop and api soon.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛