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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 3 2 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 512.0 KiB each and 1.0 MiB total.

Hello @ashwathguru.s,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

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 512.0 KiB each and 1.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.6k 10 7 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 512.0 KiB each and 1.0 MiB total.

Upvotes
24.6k 54 17 14

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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