Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
13 6 4 12

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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
icon clock
10 |1500

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

1 Answer

· Write an Answer
Upvote
Accepted
39.4k 77 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 512.0 KiB each and 1.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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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