question

Upvotes
Accepted
38 0 0 0

API RDP and opening routes in company network

Hello,


We have been working on retrieving streaming news from RDP API (see https://community.developers.refinitiv.com/questions/55386/connection-to-streaming-news-works-in-jupyter-note.html?childToView=55486#answer-55486).

On a domestic internet network this does work well. We would like now to run it using the company internet network. Currently, we have opened the following domain adress: https://api.refinitiv.com/ . However, this does not work yet. The connexion with the authentification token seems to work but we are not getting any data afterwards.

After that we realised we forgot to open the url called after the authentification : https://api.edp.thomsonreuters.com

Do we have to open this domain adress in addition to https://api.refinitiv.com/ ?

And are there any other urls that we should open ?

rdp-apiapirefinitiv-data-platformwebsocketsrefinitiv-data-platform-librariesfirewall
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 @simon.corde-e

I can confirm that the RDP library will need to connect to api.edp.thomsonreuters.com in order to perform the authentication.

In addition to this, as you are consuming realtime streaming data it will need to connect to an ERT in Cloud server as well for the realtime data.

I have asked the RDP Library development team to confirm but I expect that it will perform Service Discovery to find a suitable ERT in Cloud server and connect to that also. The exact ERT in Cloud server can vary but the address will be something like

amer-1.pricing.streaming.edp.thomsonreuters.com
emea-1.pricing.streaming.edp.thomsonreuters.com
amer-3.pricing.streaming.edp.thomsonreuters.com 

and so on.

The api.refinitiv.com should also be enabled.

I will try and get back to you once I hear from the development team or they may respond directly here.

Please also continue with ERT in Cloud ticket you may have raised- as there may be additional guidance they can provide - as this is a connectivity issue rather an API issue.

Upvotes
Accepted
38 0 0 0


Hello,


We have been working on our side to check that we had opened the right routes. It appears that this is ok.


We no longer use the RDP library.

We have suceeded to retrieve the streaming news by connecting first to https://api.refinitiv.com:443/auth/oauth2/beta1/token in order to get a token and then directly to the web socket wss://amer-1.pricing.streaming.edp.thomsonreuters.com/WebSocket thanks to the github repository : https://github.com/Refinitiv/websocket-api/tree/master/Applications/Examples/python.



You will find enclosed the python script we use strongly based on the repo.

retrieve_news.txt



Thank you very much for all.


retrieve-news.txt (14.4 KiB)
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
20.3k 73 10 20

Hi @simon.corde-e

As per the tags you have specified this is most likely a corporate firewall / routing type issue.

import logging.config 
.... 
session = rdp.get_default_session("Your App Key here") 
session.set_log_level(logging.DEBUG)

The above will enable logging which may help in diagnosing the issue.

I recommend you raise a ticket for the Elektron Realtime in Cloud product.You can then work with our ERT in Cloud team to help your configure your firewall etc. I recommend you attach any log output from the above when you raise the ticket - in case it helps them.


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