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
annotation-2021-06-16-104146.png


Best Answer

  • Alex Putkov.1
    Alex Putkov.1 ✭✭✭✭✭
    Answer ✓

    @KarenLi2004

    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

Answers