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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 3 4

What are the thresholds for API calls via the Python API for Eikon

Hi,

We are trying to extract close prices for some indices via the python API but are repeatedly getting timeout issues. Is there any thresholds for python API.

our inputs are 15 days gap between start and end date. passing around 200 list of RICS.

ek.get_timeseries(listOfRICs,'*',start_date = startDate,end_date=endDate,interval='daily',raw_output=True)

Thanks.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythontime-seriesthreshold
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.

Upvotes
Accepted
39.2k 75 11 27

Hi Uday,

Eikon API Proxy throttles requests to the max rate of 3 per second. If you're sending a single request for 188 RICs you won't be affected by the throttling at all. If you send multiple requests in quick succession you will be affected by throttling, but I don't think the throttling would result in the timeout errors you experienced. On my end I have no problem at all retrieving timeseries of the last 15 daily close values for 188 RICs in a single request. I can also request timeseries in a loop. When I do that the requests are queued by the Eikon API Proxy and sent upstream at the rate of 3 requests per second. I have not experienced any timeout errors while doing this.
Can you provide more details on the patterns of the timeout errors you've seen? Are you able to retrieve any timeseries at all? Do you always get a timeout whenever you request timeseries? Or does this only happen under certain conditions?

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.

Upvotes
166 10 17 21

The output is currently limited at 3,000 (shared limit), so your list of 200 RICs will only get you 15 rows.

Please also see the following questions:

https://community.developers.refinitiv.com/questions/15616/eikon-scripting-api-issues-with-timeseries.html

https://community.developers.refinitiv.com/questions/6355/bug-in-get-timeseries.html

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.

Upvotes
1 1 3 4

Hi Joris,

Thanks for your reply, But we are not crossing 3000 definitely.

we are passing exactly 188 RIC id's in list and 15 days gap between start and end date always.

Max number should be 2820.

Is there any time interval also between each request or specific number of requests in an interval.

Thanks,

Uday

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.

Click below to post an Idea Post Idea