Can I use WebSocket API to request specific fields?
For a deeper look into our Elektron API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
Can I use WebSocket API to request specific fields?
Yes, the Elektron WebSocket API and ADS support Vieew feature which allow the application requests specific field ids (FIDs) or Field Name for the level 1 data such as the Market Price domain. Once the view request message has been sent, the application will receive only specified fields data from ADS.
Please note that the SNAP_AND_DYNAMIC_VIEW license is required to be deployed in the ADS server.
Hi Wasin,
Does Websocket interface guarantee to fulfil the View request? Or can the ADS ignore and still send all fields / other fields - are per our other APIs?
Thanks.
Hi Umer
I did a quick test with ADS 3.2 (SNAP_AND_DYNAMIC_VIEW license deployed).
If the ADS does not contain SNAP_AND_DYNAMIC_VIEW license, it rejects the View request for both WebSocket and RSSL connections.
I cannot find any documents regarding the View request guarantee for the WebSocket connection.
OK- I was just concerned because as you know, when using our other APIs, the VIEW request is not guaranteed. If the ADS is too busy, it may send more FIDs than requested. So, I am guessing it would be the same for Websocket and if so, we should make this clear in the reply to the question.
i.e. that you should program defensively - in case you get back more FIDs than requested.
Also want to note that the documentation and examples show how to do this -- see the Advanced:View section in the documentation. Each of the languages in the examples package includes an example that sends a Batch/View request.