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
1 0 0 0

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.

python api
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.

Hello @waleed.al-bayyari

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS


Hello @waleed.al-bayyari ,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

-AHS

1 Answer

· Write an Answer
Upvotes
Accepted
22k 58 14 21

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.



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.

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.