Where to get the hostname, port, username, appId information?

Options

I am trying to run the CSharp example from the below github page :

websocket-api/MarketPriceExample.cs at master · Refinitiv/websocket-api · GitHub

Can you please help me from where to get the hostname, port, username, appId information?

Best Answer

Answers

  • jpatel2
    jpatel2 Newcomer

    Hi @umer.nalla, Thank you for providing the information. The information provided is very helpful.

  • jpatel2
    jpatel2 Newcomer

    Hello @umer.nalla ,

    I am running the below github sample code but I am getting below error when trying to connect to the internal RTDS.

    websocket-api/MarketPriceExample.cs at master · Refinitiv/websocket-api · GitHub

    8/19/2021 8:56:28 AM - Received Log Event (Level: Debug): A request to the server:

    GET /WebSocket HTTP/1.1

    User-Agent: websocket-sharp/1.0

    Host: 159.43.120.70:14002

    Upgrade: websocket

    Connection: Upgrade

    Sec-WebSocket-Key: 1APYw+dESKAudLuJ6GeeQg==

    Sec-WebSocket-Protocol: tr_json2

    Sec-WebSocket-Version: 13


    8/19/2021 8:56:28 AM - Received Log Event (Level: Debug): A response to this request:

    HTTP/1.1 400 Bad Request

    Content-Type: text/html; charset=UTF-8

    Connection: close

    If I try to connect to the using WebSocket API Try it Now Documentation:

    QuickStart | Refinitiv Developers

    I am getting Error during WebSocket handshake: Unexpected response code: 503.

    Any idea or suggestion on the above errors? Thanks.

  • Hi @jpatel2

    The fact that you are getting errors with both the C# example and the TryIt Now document would suggest your RTDS connection details are wrong.

    For one thing, the Websocket Port is normally on 15000 - but I can see you are using 14002 above.

    Please try again with 15000 and if that does not work, check with your market data team they have definitely enabled the Websocket interface on the RTDS and which port they are using.