ek.get_news_headlines vs rdp.news.get_headlines

Hi,
If I query the news using rdp, I get access denied. Scopes required to access the resource: [trapi.data.news.read]
import refinitiv.dataplatform as rdp
rdp.open_desktop_session(APP_KEY)
rdp.news.get_headlines("AAPL.O", count=10)
If I query the news using the legacy eikon api, I get the latest news
import refinitiv.dataplatform.eikon as ek
ek.get_news_headlines(query='AAPL.O', count=10)
Other rdp content is accessible both ways (timeseries, fundamentals/get_data and streaming)
Is my Eikon account not properly setup for rdp use? How can I get the extra permission trapi.data.news.read?
I use the latest refinitiv dataplatform python package available on pip on my Eikon workstation.
I have Eikon Research & Analyst.
Best Answer
-
RDP is Refinitiv's strategic platform aimed to become a single distribution platform for all Refinitiv content assets. However, at this time RDP does not yet carry all the content available through Eikon platform and RDP Library does not provide full functional parity with Eikon Data APIs library. While the RDP is being developed, some data and capabilities are only available through RDP Library, some are only available through Eikon Data APIs, and some are available through both. This is the reason why RDP Library includes Eikon Data APIs as a module. At this time with an Eikon account (or with RDP Library desktop session) you can only retrieve news headlines using Eikon Data APIs. As @wasin.w suggested, use
import refinitiv.dataplatform as rdp
import refinitiv.dataplatform.eikon as ek
rdp.open_desktop_session('MY_APP_KEY')
ek.get_news_headlines(query="AAPL.O", count=10)0
Answers
-
Hello @laurent84
Do you run the application on your own Jupyter environment or Eikon CodeBook application?
Based on my test, the RDP APIs and Eikon accounts may have different permission. I suggest you contact your Refinitiv representative to verify your RDP account permission.
0 -
I run my application in a standalone python, but reproduced the issue on CodeBook too.
I don't have an RDP account per say, I have access to rdp with my eikon account using rdp.open_desktop_session.
For me it sounds like eikon account rdp permissions are not in sync with overall eikon account permissions.
Who shall I ask to set the proper permissions on an eikon account to access the news with rdp?
This is the scope that is set on my eikon account when I use rdp.open_desktop_session:
trapi.alerts.history.crud
trapi.alerts.preferences.crud
trapi.alerts.publication.crud
trapi.alerts.subscription.crud
trapi.data.get.data.read
trapi.data.historical-pricing.events.read
trapi.data.historical-pricing.summaries.read
trapi.data.quantitative-analytics.read
trapi.sdbold
trapi.search.lookup.read
trapi.search.metadata.read
trapi.search.read
trapi.searchcore.lookup.read
trapi.searchcore.metadata.read
trapi.searchcore.read
trapi.user-framework.application-metadata.raplib
trapi.user-framework.mobile.crud
trapi.user-framework.recently-used.crud
trapi.user-framework.workspace.crudYou can see that trapi.data.news.read scope is missing
But for example I don't have trapi.streaming.pricing.read but still can stream prices, given that rdp desktop_session streams prices from eikon instead of websocket rdp/ads servers
I wonder if rdp desktop_session implementation of news should have the same behaviour.
0 -
Hello @laurent84
I am not sure if the RDP Library for Python get_headlines function can be used with the Desktop Session or not. However, you can use the Eikon subpackage in the RDP library to request News data as the following example.
import refinitiv.dataplatform as rdp
rdp.open_desktop_session('DEFAULT_CODE_BOOK_APP_KEY')
rdp.eikon.get_news_headlines(query="AAPL.O", count=10)Regarding the permission question, you may contact your Refinitiv Account manager or Sale representative to help you verify the permission.
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
- 690 Datastream
- 1.5K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 560 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 281 Open PermID
- 46 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 723 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
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛