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 lzhuang1 · Jun 10, 2019 at 11:10 AM · refinitiv-realtimetreprdp-apiwebsocketsrrtoforexstreaming-prices

How to establish a streaming connection through WebSocket API

Hi,

I have sent a market price request for FX rates as below:

{ "ID":2, "Domain" : "MarketPrice", "Streaming":True, "Key":{ "Name":"10YAUDFX=SG", "Service": "DDS" }, "Priority":{ "Class": 1, "Count": 1 }, "Qos":{ "Timeliness":"Realtime", "Rate":"TickByTick" } }

and I get a one-time off response, no further updates:

RECEIVED: [ { "Fields":{ "ASK":-1234.2, "ASK_TIME":"08:36:00", "BID":-1299.2, "BID_TIME":"08:36:00", "DSPLY_NAME":"AUD10Y SGID", "MKT_MKR_NM":"Soc Gen", "RDNDISPLAY":67, "RECORDTYPE":209, "TIMACT":"13:40:45.759", "TRADE_DATE":"2019-06-10" }, "ID":2, "Key":{ "Name":"10YAUDFX=SG", "Service":"DDS" }, "Qos":{ "Rate":"TickByTick", "Timeliness":"Realtime" }, "State":{ "Data":"Suspect", "Stream":"Open", "Text":"Live Contrib Timeout\u0000" }, "Type":"Refresh" } ]

Is there anything wrong with my request? I am expecting a streaming connection to market data will keep pushing real-time market prices to me, how to achieve my goal?

And BTW, how can I find the Key.Name for a specific market price, for example EUR-USD rate?

Thanks,

Lishuo

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.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by umer.nalla · Jun 11, 2019 at 04:01 AM

Hi @lzhuang1

You can use the RIC search tool to help you find the right RIC code.

So, for example if I type 'eur usd' into the tool and then click 'FX & Money' on the next screen, I can see 'EUR=' as the top hit in the list of possible matching RICs - which is the 'Euro/US Dollar FX Spot Rate'

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
lzhuang1 · Jun 11, 2019 at 08:29 AM 0
Share

Thank you!

avatar image
REFINITIV
Answer by umer.nalla · Jun 10, 2019 at 11:31 AM

Hi @lzhuang1

It looks like you are consuming internally contributed / generated data from an ATS (or DTS?) server.

The Stream State indicates it is Open and therefore ready to receive any updates.

However, the data state is marked as suspect with the explanation 'Live Contrib Timeout'

I have not used ATS for some time now, but I believe this would indicate that your server has been configured such that if a RIC does not receive a updated contribution within a timeout period, the Data state for that item is marked as Suspect / Stale.

You would need to speak to your Market Data team / ATS administrator / or whichever internal team generates the RIC '10YAUDFX=SG' and determine how often they are contributing values to that RIC.

The above Status may also occur if the data for the RIC is auto derived based on multiple sources of data and if one of the sources is down.

Also, in terms of specific Key name - you need to speak to your internal Market Data team - as the RIC codes used internally will most likely be configured by your Market Data team / your ATS administrator.

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
lzhuang1 · Jun 10, 2019 at 01:22 PM 0
Share

Thanks @Umer Nalla, this is useful! For external service "IDN_SELECTFEED" (I believe it is but correct me if I am wrong), how to find out the RIC code for FX rates, EURUSD for example, thanks!

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

Related Questions

ERT Cloud Web Update Frequency in WebSocket Api

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

data end data start tenors currency pair

Missing keys in delete action when dealing with MarketByOrder domain.

Websocket API returns the same instrument twice in a single JSON response

  • 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