Fetch news associated with RIC codes using RDP News API on T+1 basis

Hi,
We are currently managing a list of approximately 2000 RIC codes and are looking to streamline the process of retrieving related news for each code, on a T+1 basis. Our goal is to identify and fetch news from the prior day that is related to each RIC code.
We have not been able to find a working solution using the data/news/v1 API. One approach we considered involved fetching all headlines using the headlines endpoint with the available date range filter, then using the storyId of each headline to access the full news content, and finally for each story, we'd filter based on the RIC codes - including the ones that exist in our list and discarding the ones that does not exist. However, this method seems extremely inefficient and unlikely to be the best and only method out there.
Do you have any insights or recommendations on best practices for this or other more efficient ways within the API to fetch news with specific RIC codes for the previous day's coverage?
We appreciate all the help we can get, thank you in advance team.
Best Answer
-
Hi @philip.user ,
Have you had a look at the Refinitiv Data (RD) Library for Python? It offers functionalities such as the below; let me know if it helps:
import refinitiv.data as rd
rd.open_session()
df = rd.news.get_headlines("LSEG.L", start="2020-01-01", end="2024-01-01", count=3)
display(df)0
Answers
-
Hi Jonathan,
Yes we had a look at the Library for python but our application is 100% Java. That's why we assumed we could not use those endpoints but only the ones in RDP News API. We haven't been able to find an equivalent library or functionalities within the RDP News API for Java.
Do you know if there is a similar library available for Java? Alternatively, is there a recommended method for Java applications to have the same options?0 -
Hi @Regulatory , I'm afraid that we do not have a JAVA library; however, in these cases, I investigate the Python Library behavior and try and replicate it. I suggest using the logs, as shown in [this article](https://developers.lseg.com/en/article-catalog/article/troubleshooting-ipa-and-the-data-library-api-in-python) (in the "Switching `Logs` On" section). There you will be able to see the API calls and JSON messages sent and received to replicate it in JAVA.
Let me know if this helps.
0 -
Thanks for the suggestion. Just to confirm, we should still follow the same solution design the process of first fetching headlines by RIC codes, then get each storyId to retrieve the full stories from the storyId endpoint? It seems a bit indirect, but it sounds like this is the recommended method? (It would be the same solution design using python as well)
Thank you so much for the guidance.0 -
@philip.user , yes, this is the advised workflow.Hi0
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
- 684 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
- 249 ETA
- 554 WebSocket API
- 37 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
- 643 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 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 中文论坛