If you want to convert the incoming payload to JSON then you will need to parse / iterate through the payload and convert to JSON yourself - we do not provide JSON conversion helpers with EMA.
Not sure what your implementation requirement is exactly - but if all you want to do is convert streaming data to JSON format then you could consider using our Websocket API instead - this uses JSON messages as the data format and therefore may be more suitable i.e. you send JSON message requests to the server and it responds with a JSON payload.
You will find examples in various programming languages on the Download tab.
Full JSON message format documentation is available here.
Hi, thank you for your input. I am new here. Just want to confirm if the content of the data fetched through EMA and websocket API is the same,is it the same ?
Assuming you are consuming the data from the same service name on the same server the data should be the same.
A few points worth being aware of:
All realtime data on Elektron Realtime in Cloud is conflated - Full Tick is not supported - regardless of which API is used to consume the data. Essentially the current conflation rate is all trade type events + 3 quotes a second if no trades take place.
If, however, you are consuming data from an internal ADS then the tick rate will be determined by how your Market Data team has configured the particular service you are consuming from - this is independent of the API choice.
If you are consuming data from an internal ADS, please note that the ADS version must be version 3.2.1 and above.
Hi @ashwathguru.s , I am also using EMA and want the output data in JSON format. Were you able to convert your data into JSON ? If yes, then can you share the example code ?