I'm trying to run the market_price_edpgw_service_discovery.py example from here https://github.com/Refinitiv/websocket-api/tree/master/Applications/Examples/EDP/python I pass the machine id and password on the command line as --user and --password respectively. The script successfully receives a token:
EDP-GW Authentication succeeded. RECEIVED: { "access_token":, "expires_in":"300", "refresh_token":"4ea872a3-****-c53c19a531aa", "scope":"", "token_type":"Bearer" }
Subsequently it attempts to get a set of hosts from a service discovery URL:
Sending EDP-GW service discovery request to https://api.edp.thomsonreuters.com/streaming/pricing/v1/
Which results in this error:
EDP-GW service discovery result failure: 403 Forbidden Text: {"error":{"id":"159b5daf-9260-4626-a46e-72565a35500d","code":"insufficient_scope","message":"access denied. Scopes required to access the resource [trapi. streaming.pricing.read]","status":"Forbidden"}}
Failed to retrieve endpoints from EDP Service Discovery. Exiting...
Any idea what is going on here? If I comment out the service discovery and websocket code, the authentication code successfully refreshes its token every 5 minutes as expected.
I believe I am on a kind of trial setup at the moment, while contracts are being finalised, if that makes a difference.