EMA API v3.5.0.L1 - VIEW not working

Even if we pass the view to the consumer, it returns all the fields. Our code is:

ElementList view = EmaFactory.createElementList();
OmmArray array = EmaFactory.createOmmArray();
array.fixedWidth(2);
array.add(EmaFactory.createOmmArrayEntry().intValue(22)); // BID
array.add(EmaFactory.createOmmArrayEntry().intValue(25)); // ASK
array.add(EmaFactory.createOmmArrayEntry().intValue(68)); // MATUR_DATE
view.add(EmaFactory.createElementEntry().uintValue(EmaRdm.ENAME_VIEW_TYPE, 1));
view.add(EmaFactory.createElementEntry().array(EmaRdm.ENAME_VIEW_DATA, array));
String instrumentCode = "EUR1M="
consumer.registerClient(reqMsg.serviceName("--").name(instrumentCode).payload(view).interestAfterRefresh(false), appClient);

Best Answer

  • umer.nalla
    umer.nalla LSEG
    Answer ✓

    Hi @anshul.gupta2

    If you have tested using the example360__MarketPrice__View and it does not work, then the most likely explanation is that the server you are connecting does not have the licence for "Snapshot and Dynamic View Capability".

    You can confirm this by interestAfterRefresh(true) and see if it works.

    If the above works and false value does not work, then please speak to your Market Data team - to see if they have a different server with the Snapshot and Dynamic View Capability licence.

    If they are not sure, please post back here and I can try and get your Refinitiv account team to reach out to them.

Answers