question

Upvotes
Accepted
3 1 2 1

How to unsubscribe a ric using ETA API

Hi,


I am using ETA (UPA) API library and subscribing to RIC by sending Market Price request (I refereed Consumer.java from sample code to send these request).


I would like to unsubscribe to this RIC and couldnt find any sample code demonstrating that.

Could you please let me know how to unsubscribe a RIC using ETA API?

If there is any sample code in package then please point me to same.


Thanks,

Satish

elektronrefinitiv-realtimeelektron-sdkrrtjavaeta-apielektron-transport-apiunsubscribe
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
Accepted
23k 22 9 14

Hello @Satish.Pawar,

With ESDK ETA Java, find example "consumer"

esdkVersion\Java\Eta\Applications\Examples\src\main\java\com\thomsonreuters\upa\examples\consumer

See it call method "uninitialize()" on exit?

Calls

uninitialize() -> closeDictAndItemStreams() ->marketPriceHandler.closeStreams()

Is an example of unsubscribe,

Hope this helps

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
3 1 2 1

Thanks Zoya. I could able to unsubscribe for single RIC after checking out this code.


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