Websocket for /data/news/beta1/headlines

I can now call the endpoint for /data/news/beta1/headlines from my python code. In order to make it real-time, do I need other credentials or any other things to use a web socket for this endpoint?
I tried my credentials on the Python Elektron Real-Time Examples https://github.com/Refinitiv/websocket-api/tree/master/Applications/Examples/EDP/python but it didn't work. I'm quite confused about what I need in order to use web socket for news to make it Real-Time, not to only get news whenever I call the endpoint.
Best Answer
-
>> 2. The 6th part for close open subscription in the tutorial says that:
"EDP will continue to push events into the queue, which will
automatically expire after 24 hours if not processed." Can I know how
should I process so that EDP won't expire after 24 hour?The Part 4 of tutorial explains how to poll and remove the messages from the queue. Its is the message already pushed into the queue which expire (if not removed), and not the EDP itself.
0
Answers
-
Hi @hsss, The /data/news/beta1/headlines is a REST endpoint and does not offer streaming data. You can invoke it periodically to get the latest headlines, but not connect to it using websockets.
If the interest is in getting streaming news, then the News Alerts service is better suited for the purpose. Please follow this tutorial on using the alerts for news.
0 -
Thanks for the reply!
I have two questions left after following the tutorial.
1.For the subject code for alert registration, can I put words like "Financials" or some random words that I want to search on in there?
2. The 6th part for close open subscription in the tutorial says that: "EDP will continue to push events into the queue, which will automatically expire after 24 hours if not processed." Can I know how should I process so that EDP won't expire after 24 hour?
Thanks!
0 -
Hello @hsss
Regarding the first question, you can find more detail about the "Filter" attribute and supported query in the following sections of News API User and Design Guide document.
- section 2.2 NEWS Coding
- section 3.6.1.2.Create Alert Subscription
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
- 695 Datastream
- 1.5K DSS
- 631 Eikon COM
- 5.2K Eikon Data APIs
- 12 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 4 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 562 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
- 736 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
- 96 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛