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')

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    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

    image

    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…).

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.