lseg data platform session api

I am experiencing an issue with the LSEG Data Library where my code retrieves data successfully when using Refinitiv Workspace, but when I switch to a platform session (platform.ldp), I receive empty DataFrames for the same requests.
Details:
* Working Setup: Using Refinitiv Workspace, my get_data() requests return the expected data.
* Issue: When switching to a platform session, authentication appears to work, but the same get_data() calls return empty DataFrames.
* Configuration: My lseg-data.config.json file is set up as follows:
{
"logs": {
"level": "debug",
"transports": {
"console": {
"enabled": false
},
"file": {
"enabled": false,
"name": "lseg-data-lib.log"
}
}
},
"sessions": {
"default": "platform.ldp",
"platform": {
"ldp": {
"app-key": "*****",
"username": "****",
"password": "****"
}
}
}
}
Troubleshooting Steps Taken:
* Confirmed that the session initializes successfully.
* Ensured credentials are correct.
* Checked network connectivity.
Could you please confirm whether my account has the necessary entitlements for API access via platform.ldp? Also, are there any additional configurations required to ensure proper data retrieval in a platform session?
Best Answer
-
This indicates your account doesn't have permission to access news on the data platform.
Please contact your LSEG account team or Sales team directly to verify the account's permission.
0
Answers
-
Hi @valstar ,
Could you print the log and post it here so we can know more information.
To enable console log, simply change the value of logs.transports.console.enabled to true
{
"logs": {
"level": "debug", "transports": {
"console": {
"enabled": true
},0 -
Hello @valstar
In my experience, this usually happens when the user account does not have the relevant permissions to request the real-time data from the Platform. Desktop and Platform are different products and user's entitlements could be different in both of these.
To verify, please run the platform session with debug enabled as described by @raksina.samasiri. You might see a message like:
"State": {"Stream": "Closed", "Data": "Suspect", "Code": "NotEntitled", "Text": "A21: DACS User Profile denied access to vendor\n"}}]
1 -
Hello Gurpreet
Enabling the debug to console I don't get that exact state piece that you posted here, but I get these ones when I make requests, and example below of an attempt on a request to ld.news.get_headlines() which works fine when running the refinitive workspace and not using platform.
ScopeError Traceback (most recent call last)
[ … ]ScopeError: Insufficient scope for key=/data/news/v1/headlines, method=GET.
Required scopes: {'trapi.data.news.read'}
Available scopes: {'trapi.user-framework.mobile.crud', 'trapi.sdbold', 'trapi.data.get.data.read', 'trapi.data.wealth-clients.wfdca', 'trapi.user-framework.recently-used.crud', 'trapi.data.average-volume-analytics.ava_read', 'trapi.search.explore.read', 'trapi.commodities.yesenergy.read', 'trapi.data.historical-pricing.summaries.read', 'trapi.synthetic.crud', 'trapi.cfs.claimcheck.read', 'trapi.messenger', 'trapi.data.api.msr_read', 'trapi.platform.iam.guiss', 'trapi.search.lookup.read', 'trapi.searchcore.read', 'trapi.userdata.lists.write', 'trapi.streaming.synthetic.read', 'trapi.metadata.nsa.read', 'trapi.search.read', 'trapi.alerts.preferences.crud', 'trapi.platform.iam.groups', 'trapi.graphql.subscriber.access', 'trapi.data.symbology.read', 'trapi.user-framework.workspace.crud', 'trapi.research-analytics.fx-impact-intelligence', 'trapi.auth.cloud-credentials', 'trapi.searchcore.lookup.read', 'trapi.tradefeedr.basic.read', 'trapi.search.metadata.read', 'trapi.userdata.lists.read', 'trapi.userdata.portfolio-management.read', 'trapi.data.historical-pricing.events.read', 'trapi.alerts.publication.crud', 'trapi.data.symbology.advanced.read', 'trapi.data.portfolios.write', 'trapi.streaming.pricing.read', 'trapi.searchcore.metadata.read', 'trapi.user-framework.application-metadata.raplib', 'trapi.data.wealth-clients.advisor_dashboard', 'trapi.alerts.history.crud', 'trapi.data.portfolios.read', 'trapi.alerts.subscription.crud', 'trapi.data.benchmark.bmk_read', 'trapi.metadata.read', 'trapi.streaming.prcperf.read', 'trapi.data.quantitative-analytics.read', 'trapi.frtb.sentimarization', 'trapi.platform.iam.acl_service'}
Missing scopes: {'trapi.data.news.read'}0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛