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 developer_deprecated_0 · Apr 12, 2019 at 08:03 AM · elektronwebsocket

Elektron. WebSocket. ServiceId

Hi.

My request

{"ID":2,"Key":{"Name":"TRI.N","ServiceId":10002}}

I got this error

Request Rejected: Request key did not contain service Id.

Why?

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.

7 Replies

  • Sort: 
avatar image
Best Answer
Answer by developer_deprecated_0 · Apr 15, 2019 at 10:07 AM

Hi,Gurpreet.

I incorrectly filled the value of Position. Now everything is ok, thanks.

Comment
Christiaan Meihsl

People who like this

1 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
REFINITIV
Gurpreet ♦♦ · Apr 15, 2019 at 10:41 AM 0
Share

Glad to be able to help.

avatar image
REFINITIV
Answer by Gurpreet · Apr 12, 2019 at 08:10 AM

@Ilya Vasserdam Where did you get the parameter ServiceID. Its not documented anywhere in the message description.

Try omitting this key/value pair and try again.

Websocket Request Message

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.

avatar image
Answer by developer_deprecated_0 · Apr 12, 2019 at 08:19 AM

@Gurpreet.

{"ID":2,"Key":{"Name":"TRI.N"}}
[{"ID":2,"Type":"Status","Key":{"Name":"TRI.N"},"State":{"Stream":"Closed","Data":"Suspect","Code":"AlreadyOpen","Text":"Request Rejected: Request key did not contain service Id."}}]

I got this parameter from RSSL protocol.

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.

avatar image
REFINITIV
Answer by Gurpreet · Apr 12, 2019 at 08:40 AM

The websocket protocol is different from RSSL protocol. Can you confirm that you are referring to the new Elektron Websocket API, and not the old RIS/TRIS API.

Even with the new EWA, I see some old reference to the ServiceId, which seem to have been removed/replaced with Service now. Can you try your request using the key Service instead. Also, can you please confirm that you have the latest version of ADS running.

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.

avatar image
Answer by developer_deprecated_0 · Apr 12, 2019 at 09:03 AM
I added the serviceId only because of the error text. I did not see any mention of serviceid(or service) for websocket. {"ID":2,"Key":{"Name":"TRI.N","Service":"10002"}} . I got access 4 apr. I think he is the last. (WebSocket protocol, logon - OK)<br>I can clarify if necessary. ADS????
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.

avatar image
Answer by developer_deprecated_0 · Apr 12, 2019 at 09:08 AM

Sorry. Other error.

[{"ID":2,"Type":"Error","Text":"JSON Unexpected Value. Received 'hdEDD' for key 'Service'","Debug":{"File":"Converter/jsonToRwfSimple.C","Line":7434,"Offset":41,"Message":"{\"ID\":2,\"Key\":{\"Name\":\"TRI.N\",\"Service\":\"hdEDD\"}}"}}]

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.

avatar image
REFINITIV
Answer by Gurpreet · Apr 12, 2019 at 10:17 AM

You will have to confirm from your market data administrator, if the Service "hdEDD" is configured for websocket access in your ADS server.

Comment
developer_deprecated_0

People who like this

1 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

Does the WebSocket API have any additional reference documentation?

Establish a websocket connection and set headers?

Any action needed for this error: Message Ordering Error. Recalling?

Can't connect to the WebSocket API Server from Developer Guide test environment

Electron over Cloud and Realtime Data bars

  • 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