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 /
avatar image
Question by pramod.sapkal · Dec 29, 2020 at 01:59 PM · trepwebsockettrep apielecktronelectron api

Response validation for IDN_SELECTFEED Refresh request via Web Socket API

Hi,

We have been trying to fetch CHF=EBS rates using Web Socket API (for service IDN_SELECTFEED)

The request json looks like-

"ID": 276,

"Type": "Refresh",

"Key": {

"Service": "IDN_SELECTFEED",

"Name": "CHF=EBS"

},

Throughout our testing we were getting following response-

"State": {

"Stream": "Open",

"Data": "Ok",

"Text": "All is well"

},

However, since last we started getting following response only for CHF-

"State": {

"Stream": "Open",

"Data": "Ok",

"Text": "New Session Mounted"

},

We were relying on "All is well" text to determine if user has access to RIC. This new text "New Session Mounted" is causing validation to fail.


My question is -

1.Is "Data": "Ok" valid indicator of user entitlement?

2.What are the possible values of "Data" and "Text" ?




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.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by jirapongse.phuriphanvichai · Dec 30, 2020 at 10:37 AM

@pramod.sapkal

The Stream State (Open) and Data State (Ok) are enough to determine that the stream is opened and the data is not stale.

"State": {
"Stream": "Open",
"Data": "Ok",

The text in the State is for informational purposes only. The application needs to write it to the application log file. It is useful when there is something wrong with the stream, or data. Typically, it will indicate the reasons for stream close or data suspect.

The possible values of Stream State are:

  • Closed: Data is not available on this service and connection is not likely to become available, though the data might be available on another service or connection.
  • ClosedRecover: State is closed. However, data can be recovered on this service and connection at a later time.
  • NonStreaming: The stream is closed and updated data is not delivered without a subsequent re-request.
  • Open: Data is streaming, as data changes it is sent to the stream.
  • Redirected: The current stream is closed and has new identifying information.

The possible values of Data State are:

  • NoChange: There is no change in the current state of the data.
  • Ok: All data associated with the stream is healthy and current.
  • Suspect: Some or all of the data on a stream is out-of-date

Text specifies additional information about the current state.

Comment
umer.nalla

People who like this

1 Show 2 · 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
pramod.sapkal · Dec 30, 2020 at 10:59 AM 0
Share

Thanks a lot @jirapongse.phuriphanvichai ...Could you please confirm Stream:Open and Data:NoChange also indicates that data is valid ?

avatar image
REFINITIV
wasin.waeosri ♦♦ pramod.sapkal · Jan 04 at 04:17 AM 0
Share

Hello @pramod.sapkal

The "Data State: NO_CHANGE" means the state of a data item requested RIC) is not changed since the previous state. The data should be valid.

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

​The document also mentions about token credentials. I would like to know more about it. (from WebSocket API Webinar Nov 29)

We are using TREP 3, do we need to migrate TREP version to use Elektron WebSocket API? (from WebSocket API Webinar Nov 29)

ADS server 3.2 WebSocket connection in the Item Request topic takes forever.

For the TREP deployment, does it need to be daemon-less?​ (from WebSocket API Webinar Nov 29)

Elektron WebSocket API windows 7 support

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges