Python Refinitiv module missing scope
Im working on retrieving Refinitiv data using my local Python IDE.
I managed to install the refinitiv module and configure a json file - but some scope is missing:
What is the problem here?
Python code:
import os
import refinitiv.data as rd
os.environ["RD_LIB_CONFIG_PATH"] = "[Local Path]"
rd.open_session()
df = rd.get_data(universe ='EUR=',fields = 'BASE_CCY')
Error message:
Traceback (most recent call last):
File "C:\Users\jesv\AppData\Roaming\JetBrains\PyCharmEdu2022.2\scratches\Refinitiv.py", line 21, in <module>
df = rd.get_data(universe ='EUR=',fields = 'BASE_CCY')
File "C:\Users\jesv\PycharmProjects\pythonProject\lib\site-packages\refinitiv\data\_access_layer\get_data_func.py", line 126, in get_data
raise RDError(-1, except_msg)
refinitiv.data._errors.RDError: Error code -1 | Error code -1 | Insufficient scope for key=/streaming/pricing/v1/, method=GET.
Required scopes: {'trapi.streaming.pricing.read'}
Available scopes: {'trapi.alerts.preferences.crud', 'trapi.alerts.history.crud', 'trapi.data.historical-pricing.summaries.read', 'trapi.synthetic.crud', 'trapi.search.explore.read', 'trapi.user-framework.recently-used.crud', 'trapi.user-framework.application-metadata.raplib', 'trapi.searchcore.read', 'trapi.streaming.prcperf.read', 'trapi.user-framework.mobile.crud', 'trapi.data.get.data.read', 'trapi.user-framework.workspace.crud', 'trapi.search.lookup.read', 'trapi.frtb.sentimarization', 'trapi.searchcore.metadata.read', 'trapi.searchcore.lookup.read', 'trapi.streaming.synthetic.read', 'trapi.alerts.publication.crud', 'trapi.sdbold', 'trapi.graphql.subscriber.access', 'trapi.auth.cloud-credentials', 'trapi.alerts.subscription.crud', 'trapi.search.read', 'trapi.data.quantitative-analytics.read', 'trapi.data.historical-pricing.events.read', 'trapi.search.metadata.read'}
Missing scopes: {'trapi.streaming.pricing.read'}
Json file:
Note: I havent filled "url" : "YOUR DEPLOYED HOST:PORT GOES HERE!" or "username" : "YOUR DACS ID GOES HERE!",
{
"logs": {
"level": "debug",
"transports": {
"console": {
"enabled": false
},
"file": {
"enabled": false,
"name": "refinitiv-data-lib.log"
}
}
},
"sessions": {
"default": "platform.rdp",
"platform": {
"rdp": {
"signon_control":true,
"app-key": "[My_KEY]",
"username": "[My_user_name]",
"password": "[My_password]"
},
"deployed": {
"app-key":"[My_KEY]",
"realtime-distribution-system": {
"url" : "YOUR DEPLOYED HOST:PORT GOES HERE!",
"dacs" : {
"username" : "YOUR DACS ID GOES HERE!",
"application-id" : 256,
"position" : ""
}
}
}
},
"desktop": {
"workspace": {
"app-key": "[My_KEY]"
}
}
}
}
Best Answer
-
Thank you for reaching out to us.
The message indicates that your account doesn't have permission to access the streaming pricing service.
Missing scopes: {'trapi.streaming.pricing.read'}
The library gets the data of the real-time fields (no TR. prefixed) from the streaming pricing service.
Please contact your Refinitv account team or sales team to verify the permission.
0
Answers
-
Any comment here please0
-
Any comment here - please0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 370 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛