I am using RDP libraries to retrieve ESG data via the delivery layer as per the tutorial written here:
However, when I try it with my code, it says:
EndpointError: Error code -1 | Session is not opened. Can't send any request
Not really sure why. Here is my code below (I removed my real RDP login and pwd for security purpose):
import refinitiv.dataplatform as rdp APP_KEY = 'DEFAULT_CODE_BOOK_APP_KEY' RDP_LOGIN = '<MY LOGIN HERE>' RDP_PASSWORD = '<MY PWD HERE>' session = rdp.PlatformSession( APP_KEY, rdp.GrantPassword(username=RDP_LOGIN, password=RDP_PASSWORD) ) endpoint_url = 'data/environmental-social-governance/v1/views/scores-full' endpoint = rdp.Endpoint(session, endpoint_url) response = endpoint.send_request(method=rdp.Endpoint.RequestMethod.GET, query_parameters={'universe': 'ADVANC.BK'})
My environment is in Codebook.