question

Upvotes
Accepted
205 6 12 26

Publisher code and config changes needed to close consumer subscription

Hello, we are using RFA 8.1 C++ API to consume Level 1 and Level 2 market data. Could you please share the code changes and configuration adjustments needed on the Publisher[Testserver/TREP demo tool] side to close active subscriptions by consumers?

treprfa#productrfa-apic++
icon clock
10 |1500

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

Hi @mktdata ,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thank you,

AHS

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thank you,

AHS

Upvotes
Accepted
205 6 12 26

Hi @Gurpreet we have both examples interactive and non interactive. Can you please elaborate how we can reproduce above mentioned scenarios with help of interactive provider.

icon clock
10 |1500

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

@mktdata,

I am not aware of any means to send the name change of an instrument. To do so, you will have to close the previous active subscription - and your consumer will have to somehow discover the new RIC.

To close an active subscription from the provider - you application will have to send a CLOSED status message. You might choose to include the new RIC name in the status text. There are examples of status message in the provider examples.

Upvotes
22.2k 59 14 21

Hi @mktdata,

Can you please clarify your question. Are you asking if the testserver - a tool provided with RTMDS infrastructure can actively close a subscription (without the unsubscribe request from consumer)?

testserver it is a pre-compiled binary and doesn't allow this functionality. You might be able to use similar publisher examples from the RTSDK - EMA or ETA and simulate the publisher functionality after code changes.


icon clock
10 |1500

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

Upvotes
205 6 12 26

Hi @Gurpreet we have sample RFA 8.1 C++ API which contains sample publisher example code. Could you please provide api names / code change required in publisher side to reproduce following scenarios,

1) To close active consumer subscription.

2) Name change of actively subscribed RIC.

icon clock
10 |1500

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

Hi @mktdata​,

Which example is it based on? Is it an interactive or NI provider?

The QuickStartProvider example packaged in the RFA SDK package can answer some of your questions.


Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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