Phyton API - ScopeError: Insufficient scope for key

I am doing PhD at ESCP Paris.

I want to retrieve ownership data for one of my research. I am using the LSEG data library for Python, following the tutorial on GitHub ()

However, when running the get_data() method, I got the error message:

ScopeError: Insufficient scope for key=/data/ownership/v1/views/consolidated/breakdown, method=GET.

Required scopes: {'trapi.data.ownership.basic'} OR {'trapi.data.ownership.adv'} OR {'trapi.demo-access'}

Available scopes: {'trapi.streaming.prcperf.read', 'trapi.frtb.sentimarization', 'trapi.auth.cloud-credentials', 'trapi.data.historical-pricing.events.read', 'trapi.user-framework.recently-used.crud', 'trapi.search.explore.read', 'trapi.search.lookup.read', 'trapi.data.benchmark.bmk_read', 'trapi.streaming.pricing.read', 'trapi.streaming.synthetic.read', 'trapi.alerts.publication.crud', 'trapi.user-framework.mobile.crud', 'trapi.search.read', 'trapi.data.average-volume-analytics.ava_read', 'trapi.sdbold', 'trapi.alerts.subscription.crud', 'trapi.searchcore.read', 'trapi.graphql.subscriber.access', 'trapi.data.get.data.read', 'trapi.synthetic.crud', 'trapi.search.metadata.read', 'trapi.data.historical-pricing.summaries.read', 'trapi.alerts.preferences.crud', 'trapi.commodities.yesenergy.read', 'trapi.data.quantitative-analytics.read', 'trapi.platform.iam.guiss', 'trapi.searchcore.lookup.read', 'trapi.user-framework.workspace.crud', 'trapi.platform.iam.acl_service', 'trapi.user-framework.application-metadata.raplib', 'trapi.alerts.history.crud', 'trapi.searchcore.metadata.read'}

Missing scopes: {'trapi.data.ownership.basic'} OR {'trapi.data.ownership.adv'} OR {'trapi.demo-access'}

Could you help providing the required scope: {'trapi.data.ownership.basic'} OR {'trapi.data.ownership.adv'} OR {'trapi.demo-access’}?

Please let me know if you need further information.

https://github.com/LSEG-API-Samples/Example.DataLibrary.Python/blob/1d2cb8e487b719cc3e43da1d963a3a477cd32bf2/Examples/2-Content/2.10-Ownership/EX-2.10.01-Ownership-Consolidated.ipynb

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Carlo_Arcega

    Thank you for reaching out to us.

    Please check the answer on this discussion.

    The moderator of this forun can't grant permission to users to access ownership data. Please contact the account team or product team directly.