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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 0 2

I am trying to get daily close price data using RIC list and the eikon get_data api is only able to return result for 2000 odd rics and throws Backend error 400 Bad Request for remaining.Is there a way to get close price data for some 6000 rics?

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonricspricingerror-400
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

@kswamy
If you're requesting all 6K RICs in a single call, consider splitting the list into slices of say 1K RICs each. I have no problem on my end executing the following, where rics is a list of over 10K unique stock RICs.

for i in range(10):
	ek.get_data(rics[i*1000:(i+1)*1000],['TR.PriceClose.date','TR.PriceClose'],{'SDate':'-5D','EDate':'0'})
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.9k 6 9 16

Hello @kswamy,

This '400 Bad Request' was also explained in this 400 Bad Request - catch/retries and chunking don't help thread.

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