question

Upvotes
Accepted
22 3 3 11

EMA consumer handling of messages with StreamState ==ommstate.ClosedRecover

What is the difference between StreamState ==ommstate.Closed and StreamState ==ommstate.ClosedRecover?

How should an EMA consumer handle a MarketPrice Refresh or MarketPrice Status message received with the state component publishing StreamState ==ommstate.ClosedRecover?

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-api
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.

Assigned to @Warat B.

1 Answer

· Write an Answer
Upvotes
Accepted
4.4k 10 6 9

ommstate.Closed means data is not available and is not likely to become available.

An example for Closed state is when you request invalid name. Data will not be available unless you change the name.

ommstate.ClosedRecover means data is currently not available but can be recovered at a later time.

By default, an EMA consumer should never received this status because TREP will attempt to recover data on EMA’s behalf.

To received closed recover status, EMA consumer must override the default login request by using the OmmConsumerConfig.addAdminMsg().

And If you wish to handle it, then you could just treat it as a closed status but EMA consumer can attempt to re-request at a later time using the same request message.

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.

Thanks!

what config in login msg will override the default behavior and allow reception of ClosedRecover into the application? Is it SingleOpen = 0?

Yes, it is SingleOpen. But I advise against turning SingleOpen off. It usually better to let TREP recover the data.

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.