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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
9 3 6 9

How to request or control data-consuming containing Fids instead of FieldNames using Websocket

Can somebody please tell me, how I can subscribe data to get fids instead of fieldnames in the fieldlist of an refresh- , update message or in a view, when using websocket api. In the forum here I only found, that in case of posting by websocket api this is not supported by ADH.




#productwebsocketsfieldsconfigurationrequest
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.

@Reinhold.Blank

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.2k 251 52 74

@Reinhold.Blank

Thanks for reaching out to us.

I checked and found that you can use FIDs in view requests but the responses still use field names.

{
    "ID": 4,
    "Key": {
        "Service": "ELEKTRON_DD",
        "Name": "JPY="
    },
    "View": [
        22,
        25
    ]
}

The response is:

 {
        "ID": 4,
        "Type": "Update",
        "UpdateType": "Unspecified",
        "DoNotConflate": true,
        "Key": {
            "Service": "ELEKTRON_DD",
            "Name": "JPY="
        },
        "SeqNumber": 2398,
        "Fields": {
            "BID": 134.17,
            "ASK": 134.18
        }
    }

The response is sent from the server (RTDS). You may need to contact the RTDS support team to verify if there is any configuration in RTDS that can change this behavior. As I know, with the WebSocket/JSON connection, the field names are used in the response.

WebSocket posts are supported by RTDS.

I hope that this information is of help.

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.