Hi Team, one of my client is facing a problem of missing data for News flash query (through API) in eikon. News items prior to April 2021 were not fetched in the query. Please help us to resolve.
Can anyone help?
Upgrade from Eikon -> Workspace. Learn about programming differences.
For a deeper look into our Eikon Data API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
Hi Team, one of my client is facing a problem of missing data for News flash query (through API) in eikon. News items prior to April 2021 were not fetched in the query. Please help us to resolve.
Can anyone help?
So that we can try and help, please provide the code snippet etc that the customer is using to request the News.
Here is the code:
import eikon as ek
ek.set_app_key('Enter your key here')
news = ek.get_news_headlines('Iron Ore IN INDIA AND Language:LEN',
date_from='2019-01-01',
date_to='2019-01-08',
count=100)
Just to add - client would like to get data using this criteria for 3 years what is the best way to fetch this data on a one time basis?
Hello @Harish Toshniwal ,
Thank you for your participation in the forum.
Is the reply below satisfactory in resolving your query?
If yes, please click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
-AHS
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS
Hello @Harish Toshniwal ,
The depth of news available for retrieval via Eikon Data API, as per current Eikon Data API Usage and Limits Guideline is 15 month, this could be the cause.
My colleague Zoya's reply regards the 15-month window is the one that applies.
If I test with different dates, I can get news up to 15months before today - anything earlier returns zero news stories.
For example, the following returns some stories:
news = ek.get_news_headlines('Iron Ore IN INDIA AND Language:LEN', date_from='2021-03-04', date_to='2021-03-08', count=100)
but the following returns nothing:
news = ek.get_news_headlines('Iron Ore IN INDIA AND Language:LEN', date_from='2021-03-01', date_to='2021-03-07', count=100)