C++, why view request can not work for EMA?

OmmConsumer consumer(OmmConsumerConfig().host("********").username("reutersQuoteSource"));

consumer.registerClient(ReqMsg().serviceName("******").name("EUR=")

.payload(ElementList().addUInt(ENAME_VIEW_TYPE, 1)

.addArray(ENAME_VIEW_DATA, OmmArray().fixedWidth(2).addInt(22).addInt(25).complete()).complete()), client);


I limit just 2 fids in OmmArray, but I see the decode with still return all of the fids

Best Answer

  • umer.nalla
    Answer ✓

    Hi @he.wu

    It is possible the ADS host you are connecting to does not support Views (OR the server is presently too busy to filter the Fields for you - as it would impact its ability to serve other consumers).

    Please check with your Market Data team to confirm if the ADS host you are connecting to supports Views.

    You can also enable XmlTrace to see what is happening behind the scenes in terms of requests and response - please see the section on XML Trace in the following article

    Enterprise Message API (EMA) - Configuration Overview | Refinitiv Developers