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.
>> 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.
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.