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-apipythonworkspacerefinitiv-dataplatform-eikonworkspace-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.

1 Answer

· Write an Answer
Upvote
Accepted
27.6k 67 18 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.