question

Upvotes
Accepted
1 1 1 2

Error code 429 | Client Error: Too many requests, please try again later. Wait for 1 second.

A user has the following problem: When he pulls data from Datastream in Python, he gets the following message relatively quickly:

Error code 429 | Client Error: Too many requests, please try again later. Wait for 1 second.

This does not happen when his colleagues run the same script on their account. What could be the cause of the problem?

eikoneikon-data-apipythonworkspacerefinitiv-dataplatform-eikonworkspace-data-apierror-429
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.

EIKOn .... NOT Datastream

Upvotes
Accepted
39.4k 78 11 27

@lars.wiemer

The error message indicates that user attempted to send more than 5 requests per second, which breached the throttling limit for Eikon Data APIs documented in Eikon Data API Usage and Limits Guideline. I can see only one scenario that would produce the behavior the user experienced, i.e. the user must be running several scripts concurrently. Eikon Data APIs methods are synchronous. This means data requests are sent sequentially, not in parallel. It is practically impossible to send more than 5 requests per second from the same script. However, when several scripts are running at the same time, all of them may be sending requests in parallel. I also think the user running several scripts at the same time is likely the reason why other users (who don't run multiple scripts at the same time) don't experience the error, as you mentioned.

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.

Upvotes
27.9k 67 18 14

Hello @lars.wiemer

How many requests did the user send? Based on the Eikon Data API Usage and Limits Guideline document, the current request per second limit is 5 requests per second.

Please check the answers in the following posts for more detail about this issue:

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.

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.