For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
78.9k 250 52 74

Can I use WebSocket API to request specific fields? (from WebSocket API Webinar Nov 29)

Can I use WebSocket API to request specific fields?

treprdp-apiwebsocketsrrto
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
24.7k 54 17 14

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

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).

  • WebSocket API: I always get the specfic fields response from the ADS server for both Field names and FIDs View requests.
  • RSSL Connection (with RFA Java): I get all fields return from the ADS server when I request for Field Name View request message.

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.

Upvotes
361 1 4 3

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.