Python code needed to filter news related to FX in English language only

The code user is typing is:

# getting the news

news_curr = ek.get_news_headlines(ftr, # + 'AND Language:LEN',

date_from=date_from,

date_to=date_to,

count=100)


Which comes back with zero results. Please assist.

Tagged:

Best Answer

  • Gurpreet
    Gurpreet admin
    Answer ✓

    Hi @waleed.al-bayyari

    What is the ftr, date_from and date_to in the query? It is obviously an incorrect combination or invalid query. They can try something like this -

    ek.get_news_headlines("FX IN ENGLISH", count=10)


    For content questions, please direct users to raise a service ticker at my.refinitiv.com. We have little content knowledge.