Hi Team, one of my client is facing a problem of missing data for News flash query (through API) in

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?

Best Answer

Answers

  • Hi @Harish Toshniwal

    So that we can try and help, please provide the code snippet etc that the customer is using to request the News.


  • Hi, as required, please find the code here:


    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)

  • 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?

  • Hi @Harish Toshniwal

    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)