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 b · Oct 01, 2021 at 08:58 AM · refinitiv-realtime

RRT websocket login messages

I have noticed that when we try to send a new login message to the RRT websocket session, the session is often closed by the remote party. I suspect this is due to a malformed login message sent by us. An example login we might send is:

SENT on wss://eu-west-1-aws-1-sm.optimized-pricing-api.refinitiv.net/WebSocket:

{ "ID": 1, "Domain": "Login", "Key": { "NameType": "AuthnToken", "Elements": { "ApplicationId": "256", "Position": "10.121.25.73", "AuthenticationToken": <authtoken> } } }


I have a copy of the documentation `WEBSOCKET API FOR PRICING STREAMING AND REAL-TIME SERVICES PROTOCOL SPECIFICATION AND DEVELOPERS GUIDE`, but it is very light on detail when it comes to login and authentication.


The specific questions I think will allow me to solve this are:

* When my authentication token expires, is it correct to send a new Login message on the same stream ID with Type Refresh?

* Does the Login stream always have to be on ID 1?

* If I receive a response to a login telling me that the Login stream is closed (Stream State Error), how should I recover from that? Do I need to disconnect from the websocket?


If you have any documentation better than the one I mention above it would be great if you could direct me to it. I am aware of the example code but that does not clarify these points either.

Many thanks

People who like this

0 Show 1
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.

avatar image
REFINITIV
Jirapongse ♦♦ · Oct 18, 2021 at 08:58 AM 0
Share

@b

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by nick.zincone · Oct 01, 2021 at 03:15 PM

Hi @b

If you haven't already, I suggest you refer to the Developer Community for details related to connecting and logging into a WebSocket server. You will find examples demonstrating connecting, login, and login refresh details.

To answer your specific question, when you refresh your token, you need to provide the "Refresh" indicator, i.e.

{ 
    "ID": 1, 
    "Domain": "Login", 
    "Key": 
    { 
        "NameType": "AuthnToken", 
        "Elements": 
        { 
             "ApplicationId": "256", 
             "Position": "10.121.25.73", 
             "AuthenticationToken": <authtoken> 
        } 
    },
    "Refresh" = false 
} 
Comment

People who like this

0 Show 0 · 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.

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 >
9 People are following this question.

Related Questions

Missing keys in delete action when dealing with MarketByOrder domain.

AppKeyGenerator

SSL Unknown Protocol Error - Elektron WebSocket API - executing market_price_edpgw_authentication.py

How get the data from ERT in Cloud using Websocket API in R

Count of active subscribed items

  • 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
  • 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
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges