Websocket connection to ADS

Options
User22900202
User22900202 Newcomer
edited 3:16AM in WebSocket API

I am trying to connect to Refinitiv Real-Time Distribution System to extract time-series data on sector ETF sentiment score and relevancy.

I am following this tutorial ( https://developers.lseg.com/en/api-catalog/real-time-opnsrc/websocket-api/tutorials#connect-to-refinitiv-real-time-distribution-system. ) but running into an issue when defining the ADS address:

ws_address = "ws://{}:{}/WebSocket".format(hostname, port)
...

Where can I get a valid hostname and port?

Answers

  • Hello @User22900202

    If your org has Real-Time Distribution System, then the ADS hostname and the port will be provided by your market data administrator.

    Please note Websocket can only provide the real time streaming data. You will not be able to get the historical time series data from it.