For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
13 4 4 11

Error code 400 at call ​ek.get_data

We saw an error code 400 bad request at calling ek.get_data('SCREEN(U(IN(Equity(active,public))), IN(TR.ExchangeMarketIdCode,"XMEX"))', 'TR.CommonName') from Eikon Python Data API yesterday, and a retry works. Can you please tell what is causing to this 400 error code?

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvote
Accepted
39.2k 75 11 27

Most likely the time out from the backend. When the backend times out the request, it responds with this error. The backend can can time out a request for a number of reasons including the request being too broad (in other words you're asking for too much data in a single request), the request processing taking too long because server is busy and so on.
If the request is too broad, try narrowing it or splitting it into multiple requests, but mind also that as a result you may hit requests or response volume based limits.
If the request is not too broad as in your example, simply retry the request as you did.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Do you have any document that presents the possible list of error code or string the Python Data API call get_data and get_timeseries may come across?

See the answer on this thread.

Click below to post an Idea Post Idea