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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
13 2 0 2

How to get the true parameters in EIKON DATA API (get_news_headlines)

I want to use EIKON DATA API(get_news_headlines) for get the cocoa news, but i can't find the right parameters which i should use.The example your web page given me can't help me fix this problem.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
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

You can use topic code COC to get headlines about Cocoa. The query is:

headlines = ek.get_news_headlines("COC", count=100)
headlines

If you need headlines in English, you can add "LEN" query.

headlines = ek.get_news_headlines("COC AND LEN", count=100)
headlines

I suggest using the News Monitor application in Eikon to create a headlines query to be used with the get_news_headlines method.

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.

Click below to post an Idea Post Idea