question

Upvotes
Accepted
26 1 4 7

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 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
25k 87 11 23

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.