I am trying to get daily close price data using RIC list and the eikon get_data api is only able to

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?

Best Answer

  • @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'})

Answers