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
1
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
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛