question

Upvotes
Accepted
3 4 5 7

RFA Market data

Dear Team,

Below is the scenario,

I am using "starterConsumer" sample for retrieving the market data from Reuter. I am going to subscribe for some Reuter codes and I am able to get the data. This is fine for me.

Now, requirement is This one subscription is going on and I want to subscribe for another Reuter codes. Is to possible to achieve this without disturbing previous subscription by using "StarterConsumer" sample.

Please advice.

Thanks and Regards,

Vaibhav Korade.

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

1 Answer

Upvotes
Accepted
24.5k 86 10 22

Hi @vaibhav.korade

I assume from your previous posts that you are using the .NET version of RFA.

If this is the case, please refer to the README file that comes with the StarterConsumer example.

You will note that in the README file, as well as the itemName parameter, there is also the itemList parameter which you can specify in the StarterConsumer.cfg file.

itemList : (Default = "") - A comma separated RIC List to be used to request. The ItemList is not used if the parameter is not specified or empty.

In the code, if you then refer to the StarterConsumer.Run() method you will see how it uses the itemList to call the SendItemRequest() method multiple times as per the content of itemList parameter.

As you follow the code, you will note that SendItemRequest is the method, that forms the item request message - ReqMsg - and then calls OMMConsumer.RegisterClient() to register your interest in events related to that item.

As well as studying the StarterConsumer code, I recommend you spend some time with the RFA .Net tutorials which should help explain the basics quite well in a short period of time.

Robust Foundation API .Net Tutorial

I hope this helps.

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.