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 bansalshah · Aug 05, 2020 at 06:12 PM · elektronwebsocket apistreaming

New subcription for same symbol

Hi team,


I had a question about 2 subscriptions for a same symbol like VOD.L with ID: 2 and ID:3. I get quote updates regularly for my ID:2. But my ID:3 request throws -

[{
  "Type": "Status",
  "State": {
    "Stream": "Closed",
    "Data": "Suspect",
    "Text": "Request Rejected: Cannot reopen item with different stream.",
    "Code": "AlreadyOpen"
  },
  "ID": 3,
  "Key": {
    "Service": "ELEKTRON_DD",
    "Name": "VOD.L"
  }
}]

For our product we have a scenario where we need two different workflows doing a subscription for VOD.L. Is it possible to do such requests at all? Or we would always get this above error?

Please let me know if you need anything else.


Thank you,

Bansal

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 nick.zincone.1 · Aug 05, 2020 at 06:35 PM

Hi @bansalshah,

To work around this scenario, you can try to provide different views (fields) when you make the request for each one. Alternatively, you can form a different WebSocket connection into the server.

Comment

People who like this

0 Show 3 · 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
bansalshah · Aug 05, 2020 at 09:23 PM 0
Share

So even if the symbol subscribed is made with two different set of views, it would be fine? And websocket would not complain?

Because of the limit of 5 Websocket connections we do not want to create new connections on every new subscription.


Thank you

avatar image
REFINITIV
nick.zincone.1 ♦♦ bansalshah · Aug 17, 2020 at 02:13 PM 1
Share

Hi @bansalshah,

Yes, the server will not complain and you should see updates for both.

avatar image
REFINITIV
umer.nalla ♦♦ bansalshah · Aug 18, 2020 at 08:50 AM 1
Share

Hi @bansalshah

Just to be clear - you should not be creating 'new connections' for every new subscription. Generally speaking, the application should only need to create one websocket connection, one login and then open multiple streams - one for each subscription - as and when required.

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

Related Questions

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

Connection reset by peer error - market price edpgw authentication.py

Elektron Realtime Cloud Websocket API, Data is 10 mins late. Data only updates once per minute

Delayed service available

Service Discovery Request Concerns

  • 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