how to obtain esg ratings of the stoxx europe 600 index

Hello everybody. I would like to download the esg ratings for the stocks that are part of the Stoxx Europe 600 index. I opened the SCREENER app and filtered, for example, for negative screening. But how can I filter for only the stocks present in that index?
Also, is there a way to download the individual time series of the stocks that make up an index? For example, if I need to download the time series of the stocks of S&P 500 (Apple Inc, Microsoft Corp, Amazon, Facebook, J&J and so on) I Do I have to search and download them one by one or is there a way to download them all at once?
I need the .csv files so I can manipulate them in VBA or R software.
Thanks in advance for the help!
Best Answer
-
Hello,
This question references Eikon API, but is posted under RDP. Please move it to right category, or else let us know that you indeed need help with RDP API.
The ESG Score for STOXX 600 index is not pre-calculated by Refinitiv, but it is easy to do this in the Eikon API. Here are the code snippets to do so:
df,err = ek.get_data('0#.STOXX', fields=['TR.TRESGScore'])
print('ESG coverage {}%'.format(df['ESG Score'].count()/len(df)*100))
>>> ESG coverage 99.33333333333333%To get the timeseries data for index constituent:
ek.get_timeseries(df['Instrument'].head().to_list(), fields=['HIGH', 'LOW'], start_date='2020-10-05', end_date='2020-10-09', interval='daily')
Here, I am getting data for a subset, since trying to get timeseries for 600 instruments is throwing an Eikon error.
Also note that, you can directly use Eikon Data API in R language, using the open source R package. It is not officially supported by Refinitiv, but you can search its usage in these forums. Example: https://community.developers.refinitiv.com/questions/35606/r-compatibility-with-eikon-api.html
0
Answers
-
@Gurpreet I apologize for having the wrong section, I have remedied. This is my first time using Thomson Reuters Eikon, I am writing my master's thesis and I need to download that data. I thought it was not necessary to do this via code.
These codes you kindly wrote me where can I copy them? Could you tell me some guides that I can download to learn how to do it? I need those ESG scores and then the adjusted price time series for only a few stocks that I will select (but I can do this from the app by getting the .csv file).
If they are not pre-calculated by Refinitiv, where do they come from?
Anyway thank you so much for replying.
0 -
Regarding adjusted close price, please refer to Eikon Data APIs for Python - Reference Guide provided under section document.
get_timeseries function provides the option to set corax to adjusted or unadjusted . The following post also discusses the corax option and its exception.
Note that Python Pandas library also provides method to_csv to export the data to CSV file, and then you can use it in R or another programming language.
0 -
Thanks so much for the tip.
One last question: Once the ESG data is downloaded, I should divide it into quartiles and create a portfolio with the first quartile. I tried doing this directly on Thomson Eikon, setting equal weights, but I'm not sure if it calculates the portfolio's return series based on dividend-adjusted prices.
If I wanted to do it on the software and not through code how could I do?
0 -
Not sure what you are asking here, but you are free to slice and analyze the data however you want. Choose whatever algorithm suits your need and it can be implemented in the code. If you have any specific API question, I recommend that you start a new post for it.
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 33 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.8K Refinitiv Data Platform
- 625 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 83 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛