Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • WebSocket API /

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by pradeep.badoni · Aug 20, 2021 at 03:13 PM · websocketsrrtorefinitiv-realtime-optimised

Real-Time - Optimized: Change in Service Discovery Request for WebSocket API - Ticket 13104

Hi Team,

I got an notification (https://my.refinitiv.com/content/mytr/en/pcnpage/13104.html?utm_source=Refinitiv&utm_medium=email&utm_campaign=Change_Notification&utm_content=PCN) today from Refinitiv where they have suggested to change the Service Discovery method code from:

1629471657684.png

To:

1629471721920.png

Looks like this change is applicable from 2nd Sep 2021.

Questions:

What happened if we don't make these changes before 2nd Sep 2021? Will the Refinitiv WebSocket API application stop working?

How to test these changes? I made the required changes but after making the changes my service stop working as I am not able to find any host and it's port.

1629471657684.png (409.2 KiB)
1629471721920.png (304.1 KiB)

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by nick.zincone · Aug 23, 2021 at 02:02 PM

Hi @pradeep.badoni

The current list of available regions, and the endpoins they map to, when using the streaming discovery service are:

  • ap-southeast-1a
    • apac-1-t3.streaming-pricing-api.refinitiv.com Port:443
  • ap-southeast-1a,ap-southeast-1b
    • apac-3-t3.streaming-pricing-api.refinitiv.com Port:443
  • ap-southeast-1b
    • apac-2-t3.streaming-pricing-api.refinitiv.com Port:443
  • eu-west-1a
    • emea-1-t3.streaming-pricing-api.refinitiv.com Port:443
  • eu-west-1a,eu-west-1b
    • emea-3-t3.streaming-pricing-api.refinitiv.com Port:443
  • eu-west-1b
    • emea-2-t3.streaming-pricing-api.refinitiv.com Port:443
  • us-east-1a
    • amer-1-t3.streaming-pricing-api.refinitiv.com Port:443
  • us-east-1a,us-east-1b
    • amer-3-t3.streaming-pricing-api.refinitiv.com Port:443
  • us-east-1b
    • amer-2-t3.streaming-pricing-api.refinitiv.com Port:443
  • us-east-2a
    • us-east-2-aws-1-lrg.optimized-pricing-api.refinitiv.net Port:443
  • us-east-2a,us-east-2b
    • us-east-2-aws-3-lrg.optimized-pricing-api.refinitiv.net Port:443
  • us-east-2b
    • us-east-2-aws-2-lrg.optimized-pricing-api.refinitiv.net Port:443
Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
pradeep.badoni · Aug 23, 2021 at 02:11 PM 0
Share
Thanks @nick.zincone.1

Appreciated.

avatar image
REFINITIV
Answer by nick.zincone · Aug 20, 2021 at 09:07 PM

Hi @pradeep.badoni

Did you change the value of your location (_region) according to the instructions, i.e.

"Some example WebSocket code have been using the location variable as ‘amers’ or ‘emea’. This should be changed to specify an AWS region such as “us-east-1” or “eu-west-1”."

Comment

People who like this

0 Show 4 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
pradeep.badoni · Aug 21, 2021 at 03:25 AM 0
Share

Hi @nick.zincone.1

Are we saying that we also need to change the value of region?

Currently we have created drop-down for region in my service configuration where user can choose a region where they want to connect. Currently we just have three option here.

1629516272385.png

For this new change, do we have list of all given regions? so that I can add them in the drop-down list so that user can choose what region they want to connect.

Thanks

Pradeep B

1629516272385.png (3.9 KiB)
avatar image
REFINITIV
nick.zincone ♦♦ pradeep.badoni · Aug 23, 2021 at 12:30 PM 0
Share
Hi @pradeep.badoni

Yes, the intention of the notification was to allow for a more granular selection of the streaming endpoint. You can perform this selection any way you wish. However, if you inject the selection you presently have into the new algorithm, it won't work. See the additional answer I provided.

avatar image
pradeep.badoni · Aug 23, 2021 at 11:58 AM 0
Share
Hi @nick.zincone.1


Did you get any chance to look into the below where I am looking for all possible location/region list?

Also, Do we know how to connect to which AWS region and suggest the same to our client?

Thanks

Pradeep B

avatar image
REFINITIV
nick.zincone ♦♦ pradeep.badoni · Aug 23, 2021 at 12:40 PM 0
Share

Hi @pradeep.badoni

Are you aware of performing the streaming discovery service to retrieve all available services?

https://apidocs.refinitiv.com/Apps/ApiDocs#/details/L3N0cmVhbWluZy9wcmljaW5nL3Yx/Lw==/GET/PLAYGROUND

avatar image
REFINITIV
Answer by nick.zincone · Aug 23, 2021 at 12:37 PM

Hi @pradeep.badoni

If you look at the list of streaming endpoints, you can see they have changed since you first adopted the initial algorithm. For example, there are 3 new ones (us-east-2a, ..., us-east-2b).. There is nothing stopping the streaming services team to add new ones. The current algorthim for selection will likely choose the same streaming endpoint, which would put most users on the same service as opposed to distributing the load.

The algorithm is a guide - not a hardcoded requirement. You can still choose the endpoint based on your hardcoded regions, but you will have to change your algorithm to choose an appropriate one. As I mentioned above, the notification is recommending you choose your endpoint based on a more granular region, not 'amers', 'apac', 'emea' because you will likely always choose the same one from each region. While 'apac' and 'emea' presently have 3 to choose from, this could grow. I would suggest that your drop-down be dynamically created based on discovery as opposed to hard-coding. This way, you can have the complete list available for users.

Comment
pradeep.badoni

People who like this

1 Show 4 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
pradeep.badoni · Aug 23, 2021 at 01:35 PM 0
Share

Hi @nick.zincone.1

Thanks for the above explanation.

Unfortunately I am not able to access the below link:

https://apidocs.refinitiv.com/Apps/ApiDocs#/details/L3N0cmVhbWluZy9wcmljaW5nL3Yx/Lw==/GET/PLAYGROUND

having the access validation error.

Is there any other way to get the complete list of location along with there region?

Thanks

Pradeep B

avatar image
REFINITIV
nick.zincone ♦♦ pradeep.badoni · Aug 23, 2021 at 01:46 PM 0
Share

Hi @pradeep.badoni

The above link is to access the API Playground: https://apidocs.refinitiv.com/Apps/ApiDocs#/.

Do you have access, or have you visited this site in the past? The link pointed to the /streaming/pricing/v1 endpoint which provides the ability to retrieve all the available streaming endpoint services. While I can provide you a hard-coded list of them, that will likely change over time.

I believe when you signed up, you were provided a Welcome email that included a Machine ID and user ID. The user ID was provided for you to access the Playground.

avatar image
pradeep.badoni nick.zincone ♦♦ · Aug 23, 2021 at 01:51 PM 0
Share
Hi @nick.zincone.1


No luck.

Please provide me the list for now.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
7 People are following this question.

Related Questions

How to get source list and dictionary with webSocket API?

Ways to get RIC Codes

How to get credential (user, clientid, password, and hostname ) to connect directly with rcc while using websocket api (python)?

Updates from WebSockets API with UpdateType="Multiple" that have no QUOTIM_NS

How avoid handle_read_frame error: websocketpp.transport:7 (End of File) error?

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • FX Venues
    • FX Trading – RFQ Maker
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • Yield Book Analytics
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges