RDP Python query

I am trying to make use of the RDP python libaries (https://developers.refinitiv.com/refinitiv-data-platform/refinitiv-data-platform-apis/learning?content=38563&type=learning_material_item)


I have successfully put in my credentials and obtained my token, however when I run any query (eg timeSeries.py) I receive the following error:

(base) C:\Users\u6069419>C:/Users/u6069419/AppData/Local/Continuum/anaconda3/python.exe "c:/Users/u6069419/Documents/RDP Libraries/timeSeries.py"

Getting OAuth access token...

Reading the token from: token.txt

Token expired, refreshing a new one...

Saving the new token

Invoking data request

Unable to get data. Code 403, Message: {"error":{"id":"06474bb7-8def-457e-a3ad-d92426c10463","code":"insufficient_scope","message":"access denied. Scopes required to access the resource [trapi.data.historical-pricing.summaries.read]","status":"Forbidden"}}


Can you advise what this problem signifies? I am running the code within Visual Studio Code python terminal


Thank you

Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    Hi @jack.coppinger1,

    Your credentials do not provide you the permissions to view this data. You will need to request to update your credentials. I would suggestion you open a Refinitiv Support ticket and they will guide you with the proper procedures to request for access.

Answers