Hi,
I was wondering how I can get ESG data for the last 19 years for firms headquartered in the US using Python API.
Best,
Mahdieh
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
Hi,
I was wondering how I can get ESG data for the last 19 years for firms headquartered in the US using Python API.
Best,
Mahdieh
hi @mahdiehvg ,
Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text on the left side of the appropriate reply? This will guide all community members who have a similar 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
Hi @mahdiehvg,
The code snippet shown by Wasin will get you the historical ESG data for any instrument. If you don't already have a list, and need to find the companies headquartered in the US, then you can search for those using the screener query, by specifying the filter item: TR.HeadquartersRegion. See this article on how to use screener in python.
Hello @mahdiehvg
You can use the RD Library to get historical ESG data.
Example Code:
rd.get_history(universe="LSEG.L", fields=["TR.TRESGScore","TR.TRESGCScore","TR.TRESGCControversiesScore"], interval="1Y", start="2002-01-01", end="2022-10-01")
Result:
Hope this helps