I am using the python EIKON api. When I use the function get_news_headlines('NRG', count=100), [where by NRG I mean the "energy market" instead of the company, and similarly I have also tried to use ASIAE for asia energy market] I expect it to return energy related headlines, which should look like what are returned by the News Monitor App. This is not the case, and what returned by the function is completely different from the News Monitor headlines list. I am confused by how the pass the desired parameters to the function.
I have tried all manuals and the online assistants with no clues.
Any help in teaching me how to use it would be nice.
Thank you very much!
get_news_headlines(...) can only get the data from News Wires source.
From my test, the results from get_news_headlines are similar to News Monitor when Sources Selection is News Wires.
headlines = ek.get_news_headlines("NRG", count=20, raw_output=False) headlines
Thanks for the info. It seems that the time index and News Monitor time is off by the amount of the time zone. Now I compared with the shifted results and they are exactly the same, for both NRG and ASIAE. Although the source is restricted to only Newswire news, I can live with that for the moment. Thanks again.