How to get source list and dictionary with webSocket API?

I try to request the domains Source and SymbolList in the WebSocket API in order to retrieve the source list and dictionary. It was possible to retrieve these data by requesting the RMDS infra using the library RFA but we don't how to do it with WebSocket API.
We try this request but it doesn't work.
Request:
{
"ID": 2,
"Domain": "SymbolList",
"Key": {}
}
response:
{
"ID": 2,
"Type": "Status",
"Domain": "SymbolList",
"State": {
"Stream": "Closed",
"Data": "Suspect",
"Code": "AlreadyOpen",
"Text": "Request Rejected: Request key did not contain service Id."
}
}
thanks for your help!
Best Answer
-
Please refer to the Websocket API Tutorial for Request Data before attempting to code, it will clarify several points.
A SymbolList is a special domain that can allow the publishing and consumption of a list of related symbols. It will not yield a Data Dictionary nor a Source Directory. If your source did support a SymbolList, you would need to provide a Key i.e. RIC code for the SymbolList e.g '.AV.L'
{
"Domain":"SymbolList",
"ID":2,
"Key":{
"Name":[
".AV.L"
],
"Service":"ELEKTRON_DD"
}
}Also, on some servers, if your request is rejected with a message similar to 'Request key did not contain service Id' then you will need to explicitly specify the service you want to source the data from because a default service has not been defined on that server. However, in your case, this could be a red herring because the key is empty.
e.g. for a Source directory for all Services :
{
"Domain":"Source",
"ID":3,
"Key":{
"Filter":1
}
}For Dictionary, it would be something similar:
{
"Domain":"Dictionary",
"ID":4,
"Key":{
"Name":"RWFEnum",
"Filter":7
}
}and repeat for 'RWFFld'.
You can find full details of the filter values etc in the RDMUsageGuide Documents provided with the Real-Time SDKs
0
Answers
-
Hi @lucas.briere. This might help: https://community.developers.refinitiv.com/questions/78384/is-it-possible-to-request-a-list-of-available-serv.html I had a similar question and this definitely worked. Not sure about the dictionary, but the list of sources can be retrieved.
0 -
Hello @lucas.briere
You can find how to request Source Directory information via the WebSocket API from my colleague answer in this post (request message structure, filter information, etc).
Regarding the SymbolList request message, the request message format and example are followings:
You can find more detail in the WebSocket API Try it Now! interactive documentation on the WebSocket API download page.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 249 ETA
- 554 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛