Hi,
I am trying to pull real time data via Eikon API using python. But I am getting an error message that states Access denied, although I am running my Eikon desktop parallelly. Can you suggest ways to fix it.
SourceCode:
ErrorMessage:
@donia.augustine
Thank you for reaching out to us.
Accoring to the error, the account doesn't have permission to access this service due to lack of the 'trapi.data.pricing.read' scope.
Please contact the helpdesk team via MyRefinitiv or your Refinitiv account team or sales team to verify the account's permission.
Hi @donia.augustine ,
rd.open_session() relies on your configuration file for refinitiv-data lib. Missing 'trapi.data.pricing.read' scope indicates that you're opening a platform session without using your Desktop application (Eikon or Workspace). If you configured platform session as default (with your user account ?). Example of refinitiv-data.config.json content:
{ "sessions": { "default": "platform.prod", "platform": { "prod": { "username": "<login>", "password": "<password>", "signon_control": true }, …
In this case, this is normal.
I'll suggest to remove "default" and let the default config to pick-up "desktop.workspace" initialize your session as below to specify a desktop session.
rd.open_session(name="desktop.workspace", app_key="632***********************")