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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 1 1

How to connect to websocket API using ADS to get TREP data ?

treprdp-apiwebsocketsrrtoADS
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvote
Accepted
7.6k 15 6 9

@ashwathguru.s

You can download

WEBSOCKET API TRY IT NOW! DOCUMENTATION

from

https://developers.refinitiv.com/elektron/websocket-api/downloads


It contains the web UI tool to test connecting to your ADS and it also provides details about JSON request and response messages you need to use in your app.

We also provide an example on GitHub

https://github.com/Refinitiv/websocket-api


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Hi,

Thank you for your input. I did try this. I tried running the Examples given also (market_price.py). It throws "connection refused". I am using the right port number and ADS username given by the market team

@ashwathguru.s

Did you get the message mentioned in the below post?

https://community.developers.refinitiv.com/questions/43635/websocket-connection-refused-by-target-machine.html


If it's the same one it could be an issue from the version of ADS you currently use, please confirm with your market data team.

Anyway, you can also try the web UI from WebSocketsAPI_TryitNow_Doc to test the connection at the first step. If it's the supported version of ADS and the port is open, you should get a message Connected! like the following screen shot.

connected.jpg (125.7 KiB)
Upvotes
9.5k 10 5 7

Hello @ashwathguru.s

You need TREP 3.2 or higher which supports WebSocket API as well.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
11.5k 16 7 10

Hello @ashwathguru.s

To connect to TREP, you need TREP (ADS server) version 3.2.1 and above with the WebSocket enable. I suggest you check with your local Market Data team to verify your TREP version/configuration.

In the mean time, I suggest you check the following Elektron WebSocket API Quick Start and Tutorials:

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea