question

Upvotes
Accepted
3 3 3 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 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
32.2k 40 11 20

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 512.0 KiB each and 1.0 MiB total.

Upvotes
3 3 3 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 512.0 KiB each and 1.0 MiB total.

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.