What are the parameters we need to pass in the following code snippet?
What we are trying to read is complete deal info to java code,
<FS>332<US>tag<GS>TCID # INFO<FS>
consumer.registerClient( EmaFactory.createReqMsg() .serviceName("ELEKTRON_AD") .name("BB.TO"), eventHandler );
Can someone please help on this? Am looking for an example for Reading Ticket Output Feed. Please help
EMA Java can be used to retrieve real-time data from ELEKTRON service (ELEKTRON_AD). Please see the sample market price data for BB.TO in the attached file (data.txt). The data is in field list. I couldn't find Ticket Output Feed in the returned field list.
For Ticket Output Feed, it could be from Transaction Product, such as Dealing. <FS>332 is not used by real-time data.
You should contact your Thomson Reuters account team for further assistance regarding TOF or contact the Dealing support team via http://my.thomsonreuters.com/ContactUsNew
Hi @varma
Reading between the lines, I am guessing that you want code to subscribe to the DealTicket TCID#INFO record and then consume each new ticket that is issued on the Dealticket #INFO record.
Firstly, I recommend you work through the first few steps of our EMA Java tutorials - up to the step 'EMA Consumer - Parsing and Decoding MarketPrice data' - to get a basic understanding of how EMA Consumer works.
You will note in the tutorial that you call registerClient with the RIC that you wish to subsrcibe to.
OmmConsumerClient infoEventHandler = this; consumer.registerClient( EmaFactory.createReqMsg() .serviceName("ELEKTRON_AD") .name("TCID#INFO"), infoEventHandler );
This will result in the OnRefreshMsg invoked initially and then OnUpdateMsg invoked as and when new DealTicket records are generated on TOF.
From the OnRefreshMsg and OnUpdateMsg you would then call the decode method which iterates through the FieldList and extracts the LATESTID field (as well as others you require). Each time you get a new LATESTID field you would then call registerClient again - using the LATESTID as the RIC code - but this time you would only want a snapshot - not a streaming request so you would set the interestAfterRefreshFlag to false
consumer.registerClient( EmaFactory.createReqMsg() .serviceName("ELEKTRON_AD") .name(latestTicketID) .interestAfterRefresh(false), //snapshot _ticketEventHandler );
NOTE the following:
(JAVA) Does using interestAfterRefresh(false) remove the need for deregistering items with Elektron?
Auto listener occupies 70-100% of CPU as we are waiting for the update(Consumer.dispatch)
EMA - How do I reset view to get all fields?
Where can I find details on the EMA instrument update message types?
Timestamp delay between EMA Java based App and rmdstestclient when subscribing the same universe.