News Retrieval RDP
Hi all,
I retrieve some news via RDP api like this:
...
query = 'EQMEVN'
news.headlines.Definition(query=query, count=100).get_data().data.df
...
So I get this the list of news as expected:
>>> news.headlines.Definition(query=query, count=100).get_data().data.df
headline storyId sourceCode
versionCreated
2024-02-27 09:59:36.000 UPDATE 3-Dubai to sell 25% stake in public par... urn:newsml:reuters.com:20240227:nL2N3FC0AX:6 NS:RTRS
2024-02-27 08:58:43.000 RPT-BREAKINGVIEWS-Top JPMorgan banker spots va... urn:newsml:reuters.com:20240227:nL3N3FC278:2 NS:RTRS
2024-02-27 08:35:14.233 INDIA'S NIFTY PSU BANK INDEX <.NIFTYPSU> FALLS... urn:newsml:reuters.com:20240227:nP8N3ET0DA:1 NS:RTRS
2024-02-27 08:31:39.000 BUZZ-UK's Croda top FTSE 100 loser on lower pr... urn:newsml:reuters.com:20240227:nL3N3FC21H:1 NS:RTRS
2024-02-27 08:30:36.620 INDIA'S NIFTY OIL AND GAS INDEX <.NIFOILGAS> E... urn:newsml:reuters.com:20240227:nP8N3ET0D9:1 NS:RTRS
... ... ... ...
2024-02-26 04:29:20.110 INDIA'S NIFTY IT INDEX <.NIFTYIT> FALLS, LAST ... urn:newsml:reuters.com:20240226:nP8N3ET0CW:1 NS:RTRS
2024-02-26 04:04:39.000 UPDATE 2-S.Korea unveils reform steps to tackl... urn:newsml:reuters.com:20240226:nL2N3FB014:8 NS:RTRS
2024-02-26 02:37:56.000 SINGAPORE STOCKS <.STI> FALL AS MUCH AS 1% TO ... urn:newsml:reuters.com:20240226:nL3N3FB0NF:1 NS:RTRS
2024-02-26 02:37:48.000 BRIEF-グリーンブルックTMS、ナスダック上場廃止を発表 urn:newsml:reuters.com:20240226:nL6N3FB00I:1 NS:RTRS
2024-02-26 02:29:49.000 《圖表新聞》全球股票基金出現資金外流,因通脹擔憂削弱降息預期 urn:newsml:reuters.com:20240226:nL6T3FB01Q:1 NS:RTRS
But as you see, the rdp retrieves only news with this small orange sign:
But the other news are missing. Even if I take a StoryID of a missing news...
... I cannot retrieve it via api:
storyID = 'urn:newsml:newsroom.refinitiv.com:20240227:nNRArwz5ji:1'
news.story.Definition(storyID).get_data()
I get "News not found". With the news, which appear in the headlines() call, this works as expected.
Pls advise.
Best Answer
-
As the RD Platform session is taking data from RDP API and I can also reproduce this issue with RDP REST API. Hence, I raised ticket number 13373340 on behalf of you and the team is going to investigate and contact you to assist on this.
0
Answers
-
Thank you for reaching out to us.
I can see those headlines that the order may be different from LSEG Workspace.
response = news.headlines.Definition(query="EQMEVN", count=100, date_to="2024-02-27T01:00:00.000").get_data()
response.data.df[response.data.df["sourceCode"]=="NS:NEWJAP"]For the story:
The storyId for that news is "urn:newsml:newsroom:20240227:nNRArwz5ji:0".
response = news.story.Definition("urn:newsml:newsroom:20240227:nNRArwz5ji:0").get_data()
response.data.story.content.text0 -
Dear @Jirapongse
Thank you for looking into my issue.
You are writing, that you can see the news...... but I cannot. Does that mean my authorizations are limited?
I tried to use the storyID you provided:
storyID = 'urn:newsml:newsroom:20240227:nNRArwz5ji:0'
HTML(rd.news.get_story(storyID, format=rd.news.Format.HTML))... it gives me an error message: "Error code 503 | Error while calling the NEP backend: sid urn:newsml:newsroom:20240227:nNRArwz5ji:0 is invalid", while if storyID contains "refinitiv.com", it says "Error code 404 | Error while calling the NEP backend: Story not found"
storyID = 'urn:newsml:newsroom.refinitiv.com:20240227:nNRArwz5ji:1'
HTML(rd.news.get_story(storyID, format=rd.news.Format.HTML))Do you have ideas?
0 -
Thank you for reaching out to us.
Are you using the platform.rdp session?
I got the following output if I ran the following code.
This is the output from News Monitor.
Regarding the storyId, I got the same error if I used the platform.rdp session.
0 -
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 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
- 367 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
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛