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 fieldsversionCreatedtextstoryIdsourceCode
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)
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.