question

Upvotes
Accepted
3 0 1 2

Python API data download stuck after many concurrent requests

I need to download a lot of data, which I perform in individual request (one instrument at a time), in order to prevent errors. However, after a while, my program is stuck without error message. It seems that the Datastream Python API cannot download more data, but also does not throw any error message.

I already built in a pause time of 2 seconds between the requests. Is there a data download limit per unit time?

datastream-apidsws-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.

Upvotes
Accepted
39.4k 77 11 27

The limits for Eikon Data APIs data retrieval that @zoya.farberov mentioned do not apply to data retrieval from Datastream Web Services (DSWS) that @iris.koks is using.

The limits that DSWS imposes for desktop users are documented in "Datastream Web Service usage stats and limits for Desktop users" guide. From the symptoms @iris.koks describes it doesn't look like the problem is the data retrieval limits, however it's worth verifying following the procedure described in the guide.

Underneath the Python library there's RESTful Web service providing the data. Python library generates HTTP requests to this service. There are numerous reasons why an HTTP request may fail. One way to troubleshoot it is to use Fiddler to capture HTTP requests sent to Datastream Web Service, identify the request that corresponds to the last API call from your script and inspect the status of the request and any additional info Fiddler provides.

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
32.2k 40 11 20

Hello @iris.koks,

Please find Eikon Data API Usage and Limits Guideline document, perhaps review Requests per Day as well as Response Volume Per Day, but other limits may also be of relevance if you are downloading a lot of data,

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.