Differentiate between unsolicited even stream close by api and user requsted

mktdata
mktdata Contributor

Hello, we use RFA 8.2 C++ api to consumer market data.

After interest is being registered by a consumer application which registered for `completion event` for particular symbol by calling `registerClient()`, how it can differentiate between unsolicited close by api and user requested [by calling `unregisterClient()` close in processEvent? is there any alternative?


I need to take some action if and only if completion event is due to unsolicited close by api. Is there any alternative?


Currently the problem I am facing with the api is that in `processEvent` when I check for `isEvenStreamClosed` I don't know if even stream is closed by api[unsolicited close] or it is due to application's request[by calling unregisterClient].

I can think of checking it in Status Message but there I can't use `isEventStreamClosed`



Best Answer

  • Gurpreet
    Gurpreet admin
    Answer ✓

    Hello @mktdata,

    Why doesn't you application maintain a simple hashmap of the (instrument/close requested) data. Or it could also append this information into the closure object.