For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
11 2 2 3

Eikon Script API(EAP) want to get specific terms of news

Hi

I am trying to get specific terms of news about JPY= -i.g. from 2018-01-10 to 2018-01-16- using date_from and date_to parameters. But whenever I try to get it, only latest news are available.

How can I get news for specific terms? And is it available to get historical data through python?

cf,headlines = ek.get_news_headlines("R:JPY= IN JAPANESE", count=5, date_from='2018-01-10', date_to='2018-01-16')

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythondatahistoricalnews
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
38.1k 71 35 53

From my test, the returned results are ordered by date (versionCreated). The latest date will appear first.

headlines = ek.get_news_headlines("R:JPY= IN JAPANESE", count=100, date_from='2018-01-10T14:00:00', date_to='2018-01-10T15:00:00')
headlines

For the search criteria, it can contain RIC codes, company names, country names and operators (AND, OR, NOT, IN, parentheses and quotes for explicit search…).


news.png (64.8 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Thank you for your reply.

Maybe I should have typed TIME as well.

This problem has been resolved.

Click below to post an Idea Post Idea