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

sentiment scores

Hi


How can I generate a reliable sentiment score for a watchlist of stocks?

so far I've used TextBlob and generated polarity scores but I'm sure this API can provide something more reliable


Also, how can I see all the metafields that are supposed to be provided after news retrieving? I understood that over 90 fields are provided with the machine-readable news API


i used this code and got only 5 fields

versionCreatedtextstoryIdsourceCode


df = ek.get_news_headlines('R:UBER.K R:BYND.O MU.O CYBR.O TLRY.O AND Language:LEN', date_to = today, count=100)
df.head(50)
eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apinewsmrnsentiment
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 @orieeeams

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

If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

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
Upvote
Accepted
24.7k 54 17 14

Hello @orieeeams

Regarding the news metafields, it is an expected behavior of the get_news_headlines function that returns only 5 fields (Index, version_created, text, story_id and source_code) based on Eikon Data API Reference Guide.

You can use raw_output = True parameter in the function to get a raw json format which give you more information regarding each news headline but it does not contains all metafields.

If you want all MRN fields, you need to use other APIs such as Elektron API to consume MRN data.


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.