I'm building a script in python that listen to events using the get_streaming functionality, and for that I need to know the list of RICs to subscribe to. I already tried some chains, but could'nt find any that gives me the same list of instruments that the EM app provides.
Is that a way that I can retrieve all this at once or I need to use multiple requests? Any suggestions on that?
Thank you in advance!
Hi @diego37 we do not support the chains workflow anymore for economics. The best approach here would be to use Eikon search as explained by Jason. We do add new indicators to the coverage but it not by the hundreds every month. So once you have used Eikon search or even the EM app to gather the full list of RICs, you can split your Python code to first use the real time data for the entire universe and filter for everything that is scheduled for future. ECI_ACT_DT > Today
Then use that filtered list for your pupose...
So adapting from the code Jason wrote, something like below:
data, err = ek.get_data([YOUR_LIST_OF_RICS],['ECI_ACT_DT'])
rics_to_use = data[data['ECI_ACT_DT']>= date.today()]
where "YOUR_LIST_OF_RICS" is the RICs you have saved in a file and retrieved as a list.
Hi @diego37 I wrote an article (ipynb available) about working with Economic Indicators in Eikon - I think you may find it of use. Please look at that and if you have any follow up questions just get back to me here. I hope this can help.