Websocket API - Streaming

alfredo.brito01
edited February 14 in WebSocket API

Hi,

Customer Banco BEST developed a streaming application with Websocket API to subscribe real time data from a RTDS deployed infrastructure.

This is working pretty well, but customer identified that sometimes there are RICs not receiving data being requested to RTDS, mainly related with Indices like .FTSE and .GDAXI ric´s.

In a tests, customer requested five times ric .FTSE and only one of them returned Refresh and Update data.

Any feedback about what could be the reason for that behavior is very welcome.

Please see sample of a request to .FTSE ric:

{

  "ID": 2,

  "Key": {

    "Name": [

      ".FTSE"

    ],

    "Service": "IDN_RDF"

  },

  "View": [

    "TRDTIM_1",

    "TRADE_DATE",

    "SALTIM",

    "SALTIM_MS",

    "ACVOL_1",

    "TRDPRC_1",

    "PCTCHNG",

    "NETCHNG_1",

    "LOW_1",

    "HIGH_1",

    "PRCTCK_1"

  ]

}

Many thanks,

Alfredo

Answers

  • Hello @alfredo.brito01

    Whenever a subscribe request is issued, it will always result in a response message. The response could be the data for the item, or the error message. Most likely, there is some bug in the application code, which is causing them to miss the response message. You can ask the client to -

    1. Use one of the Websockets sample code to replicate the issue
    2. Capture the ADS logs to verify the request and response messages
  • Hello @alfredo.brito01

    The JSON request message looks valid. The WebSocket API is the server-side API, the ADS should send a response message for an item request whether the response is a refresh (data) or status message.

    If an application code already checks for a status messages, but the ADS server does not send it to a consumer, please contact the ADS support team to investigate the issue on the server side.