question

Upvotes
Accepted
26 1 2 5

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-sdkrrtema-apielektron-message-apieikon-for-officebatch-request
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
20.3k 73 10 20

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea