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.




Best Answer

  • Jirapongse
    Answer ✓

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