question

Upvotes
Accepted
26 3 5 11

As there any mechanism where i can request data items at runtime in a same batch file or stream .and also remove a particular item at runtime in a batch request or stream while receiving other data item values ?

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-apieikon-for-officebatch-request
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.

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,

AHS

Hello @rkumar

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so, please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,

AHS

@rkumar
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
-AHS

1 Answer

· Write an Answer
Upvotes
Accepted
25.3k 87 12 25

Hi @rkumar

Once you have created an OmmConsumer and connected etc, you should be able to call registerClient to request your required instruments as and when you need to do so. Our examples just happen to call registerClient in the main() method as they are simple examples.

These registerClient calls can be for individual item requests or as Batch requests -as demonstrated in example370__MarketPrice__Batch.

Each item you successfully subscribe to will be allocated a unique handle - which can be obtained from the OmmConsumerEvent which is passed into the callback handlers. You can then use this handle to close an individual item as and when required - by calling unregister with the handle. You can see this in the example 300__MarketPrice__Close.

The examples mentioned above can be found in subfolders of the ema\examples\training\consumer\series300 folder in the Elektron-SDK package.

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.