What will be the syntax if I use eikon which give similar results as this query rd.news.get_headline

Hi I just want to know what will be the alternatve syntax if someone is using eikon api , How can i get the same results as i am getting with the query rd.news.get_headlines(query = general_text, count=20)

Best Answer

  • Hi @rishav.jindal, I believe the answer you are after can be found on the Developer Portal and GitHub. You can use the RD Library to use the Eikon Data API if you want, as per the Github page:



    import refinitiv.data.eikon as ek
    from IPython.display import HTML

    ek.set_app_key('YOUR APP KEY GOES HERE!')
    ek.get_news_headlines(query = 'AAPL.O', count=10)