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

Best Answer

  • zoya faberov
    Answer ✓

    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

Answers

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