question

Upvotes
Accepted
7 3 2 4

Managing subscriptions when using alerts delivery via AWS SQS

The reference manual we're using to implement a service to fetch news from RDP via AWS SQS, "News Service on Refinitiv Data Platform - User and Design Guide", v2.0, does not specify in any detail how to manage existing news subscriptions. It contains an example of how to create a new subscription and hints at that such a subscription can later be deleted (cancelled) using the ID returned in the response to a subscription request when/if it succeeds.

Hence we have the following questions:

  • Suppose we have created a subscription via a HTTP POST request to /data/news/v1/news-headlines-subscriptions; how exactly do we delete/cancel this subscription using its ID returned in the response?
  • Having an active subscription, is it possible to modify it? Like, say, updating the filter used for selecting which news to alert about? Or is the filter only applied once, when the subscription is created, and cannot be changed for that particular subscription afterwards?

Another related question is: what is the lifetime of an AWS SQS queue created for a news subscription? Does it exist until the subscription is explicitly deleted/cancelled or are there other cases when a queue may cease to exist?

rdp-apirefinitiv-data-platform
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvote
Accepted
9.7k 49 38 60

Hi @khomutov,

Within the API Playground for news messages-services, it outlines how to "Destroy news-headlines subscription information with subscription ID". For example:

https://api.refinitiv.com/message-services/v1/news-headlines/subscriptions?subscriptionID=subscriptionID

Regarding an active subscription, I don't believe there is any way to change it. Once you define your criteria, that is what is delivered. If you need to change your criteria, you will need to create a new queue.

Regarding the lifetime, I don't have the specific details on this - something you may need to raise with Refinitiv Support. I would also suggest you review this tutorial for some reference.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
23k 22 9 14

Hello @khomutov,

You may find helpful, in addition to the suggestions from @nick.zincone.1 , to also review and run example newsAlerts.py that is part of Quickstart and Python tutorials source code, Python starter examples example deck.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea