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
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
Could you try increasing the logging level for Eikon Data APIs library by executing
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.
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.