question

Upvotes
Accepted
24 1 0 6

EMA consumer handling of messages with StreamState ==OmmState.StreamState.CLOSED_REDIRECTED

How should an EMA consumer handle a MarketPrice Status message received with the state component publishing StreamState == OmmState.StreamState.CLOSED_REDIRECTED?


Could you please provide a RIC that results in 'StreamState.CLOSED_REDIRECTED' for testing purposes.

elektronrefinitiv-realtimeema-api#product
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

· Write an Answer
Upvotes
Accepted
79.2k 251 52 74

@xinjames.chen

Thank you for reaching out to us.

The OmmState.StreamState.CLOSED_REDIRECTED is quite rare. It indicates that the current stream is closed and has new identifying information. The user can issue a new request for the data using the new message key data from the redirect message.

However, the data feed may or may not use this feature.

The easiest way to replicate this message is using a Provider application. You can modify the IProvider100 example to publish this message. The code looks like this:

    event.getProvider().submit(StatusMsg()
        .domainType(MMT_MARKET_PRICE)
        .state(OmmState::ClosedRedirectedEnum, OmmState::SuspectEnum, OmmState::NoneEnum, "Rename")
        .name("NEW_RIC.BK")
        .nameType(INSTRUMENT_NAME_RIC),
        event.getHandle());

Then, the consumer will get this message.

StatusMsg
    streamId="5"
    domain="MarketPrice Domain"
    state="Redirected / Suspect / None / 'Rename'"
    name="NEW_RIC.BK"
    nameType="1"
    serviceName="DIRECT_FEED"
StatusMsgEnd

After that, the consumer needs to call the registerClient method to subscribe to this new item.

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.