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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonnewsmrnsentiment
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

Upvote
Accepted
11.5k 16 7 10

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea