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

question

Upvotes
Accepted
11 3 3 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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apidatahistoricalnews
icon clock
10 |1500

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

1 Answer

· Write an Answer
Upvotes
Accepted
81.4k 267 53 76

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 512.0 KiB each and 1.0 MiB total.

Thank you for your reply.

Maybe I should have typed TIME as well.

This problem has been resolved.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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