For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
36 9 10 23

How to identify if all the subscribed symbols in the OmmArray has received refresh message? How to exit after receiving refresh message of all the subscribed symbols?

elektronrefinitiv-realtimeelektron-sdksubscriptionrefresh
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
32.2k 40 11 19

Hello @yajnasteju,

If you require a streaming update,

I would take a generic approach, not specific to Elektron, rather analogous to other use cases for asynchronous processing of multiple parallel requests. I would keep a map of requested symbols, and mark completion on each receipt of either data refresh or negative status. Once all the responses have been received, I would unitialize the consumer and exit.

If you are only looking for a single refresh for each symbol, I would consider a snapshot request, interest after refresh = false.

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.