How to capture streaming data for particular symbol. Please provide sample code in EMA java?

How to capture streaming data for particular symbol. Please provide sample code in EMA java?

Best Answer

Answers

  • Hi @priyanka.mundargi

    Most of the EMA Java Consumer examples consume and process streaming data - with the exception of a few like the Snapshot example / offstream posting example etc.

    The simplest example is example100__MarketPrice__Streaming. A slightly more advanced example is example200__MarketPrice__Streaming

    The above examples can be found in series100 and series200 subfolders of Ema\Src\examples\java\com\thomsonreuters\ema\examples\training folder when unpack the ElektronSDK.

    However, if you have not already done so, I would strongly recommend you work through the Quick Start and some of the Tutorials for EMA Java.

  • Yes. i have implemented it in same way, But i need data for securities which are withing the symbols. Ho can we do that?

  • Please explain in more detail what it is you need to do with examples what you are initially consuming and what you mean by securities within the symbols.

  • assume i have got data for Symbol <ABCDEF> in below format : FieldEntry fid="000" name="LONGLINK1" dataType="Ascii" value="XXX1" FieldEntry fid="001" name="LONGLINK2" dataType="Ascii" value="XXX2" FieldEntry fid="002" name="LONGLINK3" dataType="Ascii" value="XXX3" and xxx1,XXX2,XXX3 are securities related to Symbol <ABCDEF>. right now am not getting data for xxx1,XXX2,XXX3 securities. Am using below snippet to register client: consumer.registerClient(EmaFactory.createReqMsg().serviceName("XYZ").payload(batch),appClient); Should i be using someting else?

  • Hi @priyanka.mundargi

    Looks like you are consuming a Chain RIC - please refer to the articles on Chains starting with Simple Chain objects for EMA - Part 1

    Prior to that I would recommend you work through the standard Tutorials to get a better high level understanding of how EMA Java works - this will definitely help more sense of things.

  • there are so many documents. Am confused from where to start?

  • Hello @priyanka.mundargi ,

    This symbol that returns links instead of prices is a "chain".

    Please refer to @Umer Nalla answer below to learn about chain processing.