Hi
I am using EMA java api to get forex spot market data. I was confirmed by support I can get contributor from Fid (3)and dealing code from Fid(78) . However, in updateMsg, those fields were blank.
Thanks.
Code:
OmmConsumerConfig config = EmaFactory.createOmmConsumerConfig(); consumer = EmaFactory.createOmmConsumer( config.host("host:14002").username("xxxx").operationModel(OperationModel.USER_DISPATCH)); OmmConsumerClient eventHandler = this; ElementList batch = EmaFactory.createElementList(); OmmArray array = EmaFactory.createOmmArray(); array.add(EmaFactory.createOmmArrayEntry().ascii("EUR=")); array.add(EmaFactory.createOmmArrayEntry().ascii("GBP=")); array.add(EmaFactory.createOmmArrayEntry().ascii("JPY=")); batch.add(EmaFactory.createElementEntry().array(EmaRdm.ENAME_BATCH_ITEM_LIST, array)); consumer.registerClient(EmaFactory.createReqMsg().serviceName("ELEKTRON_DD").payload(batch), eventHandler);