Messages without Name field in EMA

SquadTreasury
SquadTreasury Newcomer
edited 8:44AM in EMA

Hi all,

We differentiate messages received from EMA based on the name(RIC) field contained within the message.

UpdateMsg streamId="420" domain="MarketPrice Domain" updateTypeNum="0" seqNum="44766" doNotConflate name="CNH=" serviceId="600" serviceName="IDN_RDF" Payload dataType="FieldList" FieldList FieldListNum="0" DictionaryId="0" FieldEntry fid="22" name="BID" dataType="Real" value="7.1028" FieldEntry fid="393" name="PRIMACT_1" dataType="Real" value="7.1028" FieldEntry fid="25" name="ASK" dataType="Real" value="7.1032" FieldEntry fid="275" name="SEC_ACT_1" dataType="Real" value="7.1032" FieldEntry fid="875" name="VALUE_DT1" dataType="Date" value="17 SEP 2025 " FieldEntry fid="1010" name="VALUE_TS1" dataType="Time" value="05:44:37:000:000:000" FieldEntry fid="831" name="CTBTR_1" dataType="Rmtes" value="2" FieldEntry fid="836" name="CTB_LOC1" dataType="Rmtes" value="2" FieldEntry fid="841" name="CTB_PAGE1" dataType="Rmtes" value="2" FieldEntry fid="3" name="DSPLY_NAME" dataType="Rmtes" value="2" FieldEntry fid="78" name="OFFCL_CODE" dataType="Rmtes" value="2" FieldEntry fid="105" name="BCKGRNDPAG" dataType="Rmtes" value="2" FieldEntry fid="826" name="DLG_CODE1" dataType="Rmtes" value="2" FieldEntry fid="1011" name="VALUE_TS2" dataType="Time" value="05:44:37:000:000:000" FieldEntry fid="1012" name="VALUE_TS3" dataType="Time" value="05:44:36:000:000:000" FieldListEnd PayloadEnd UpdateMsgEnd


However, we observe that the name field is not transmitted in many messages similar to the example below. What is the cause of this behavior? How can we effectively handle this scenario?

UpdateMsg streamId="15" domain="MarketPrice Domain" updateTypeNum="0" seqNum="63998" doNotConflate Payload dataType="FieldList" FieldList FieldListNum="0" DictionaryId="0" FieldEntry fid="22" name="BID" dataType="Real" value="3.7507" FieldEntry fid="393" name="PRIMACT_1" dataType="Real" value="3.7507" FieldEntry fid="25" name="ASK" dataType="Real" value="3.7509" FieldEntry fid="275" name="SEC_ACT_1" dataType="Real" value="3.7509" FieldEntry fid="875" name="VALUE_DT1" dataType="Date" value="16 SEP 2025 " FieldEntry fid="1010" name="VALUE_TS1" dataType="Time" value="21:41:50:000:000:000" FieldEntry fid="831" name="CTBTR_1" dataType="Rmtes" value="4Y6M" FieldEntry fid="836" name="CTB_LOC1" dataType="Rmtes" value="4Y6M" FieldEntry fid="841" name="CTB_PAGE1" dataType="Rmtes" value="4Y6M" FieldEntry fid="3" name="DSPLY_NAME" dataType="Rmtes" value="4Y6M" FieldEntry fid="78" name="OFFCL_CODE" dataType="Rmtes" value="4Y6M" FieldEntry fid="105" name="BCKGRNDPAG" dataType="Rmtes" value="4Y6M" FieldEntry fid="826" name="DLG_CODE1" dataType="Rmtes" value="4Y6M" FieldEntry fid="1011" name="VALUE_TS2" dataType="Time" value="21:41:49:000:000:000" FieldEntry fid="1012" name="VALUE_TS3" dataType="Time" value="21:41:48:000:000:000" FieldListEnd PayloadEnd UpdateMsgEnd

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @SquadTreasury

    Thank you for reaching out to us.

    The item name in an update message is optional.

    I found the MsgKeyInUpdates configuration in the Consumer.

    image.png

    The default value is 1 so update messages should contain item names.

    However, instead of relying on the MsgKeyInUpdates configuration, you can try the following methods to solve this problem.

    1. Typically, each item has a unique handle, allowing the application to implement a mapping between handles and item names. The application can map a handle to an item name by parsing a refresh message
    2. Or, if the application doesn't use batch requests. The application can set a closure with an item name and get a closure (item name) through the OmmConsumerEvent passed in the callback methods

    If you have any further question, please provide the following information.

    1. The version of EMA that you are using
    2. EMA configurations or EMA configuration file used by the application
    3. Is it EMA C++, Java, or C#?