MRN WebSocket A18: Unknown service

Hi!
I use example of application from https://developers.refinitiv.com/en/article-catalog/article/creating-websocket-mrn-story-viewer-using-net-core-and-wpf article. I cloned repository (https://github.com/Refinitiv-API-Samples/Example.WebSocketAPI.CSharp.MRNWebSocketViewer) and trying to run application. As far as I understand WebSocket connection is established and login request is accepted by RTDS server. But after that status event is received and connection is closed.
"MRN_STORY Status:: data state:Suspect stream state:Closed code:SourceUnknown status text:A18: Unknown service."
Could you please advise what can be wrong?
Thanks!
Best Answer
-
Hello @pavel.kropachev ,
The article you refer to is an excellent resource for MRN integration with .NET Core. The request format has been enhanced since its publication, and the article companion code has become slightly outdated: it uses short form of the request, relying on the default service, that used to be supported. At present, an explicit service parameter is required in the subscription request.
You will need to confirm the name of elektron service that is made available by your local RTDS with your local market data admin/group.
Next, to update the service name in the MRN request, if, for example, your elektron service is named "ELEKTRON_DD", update the code at the point where MRN request is issued, for example:
public async Task SendMrnStoryRequest(int streamId, string storyItem = "MRN_STORY")
{
var serviceName = "ELEKTRON_DD";
var marketPriceReq = new ReqMessage
{
ID = streamId,
Domain = DomainEnum.NewsTextAnalytics,
// Key = new MessageKey {Name = new List<string> {storyItem}, NameType = NameTypeEnum.Ric}
Key = new MessageKey { Name = new List<string> { storyItem }, Service = serviceName }
};
await ClientWebSocketUtils.SendTextMessage(_websocket.WebSocket, marketPriceReq.ToJson()
}Hope this information helps
0
Answers
-
Hello @pavel.kropachev
While my colleague @zoya faberov answer contains clear information, additionally, you can contact your local Market Data team to configure the RTDS's defaultJsonServiceId parameter to the service id that is mostly used by the consumer applications too.
This parameter defines the default service for the WebSocket client applications. The service can be overridden in the JSON request message. If defaultJsonServiceId is empty (default value), there will be no default service id. The WebSocket applications have to always specify a service in the item requests.
0 -
Hello @zoya faberov and @wasin.w
Thanks for help and clarification!
Currently it looks like MRN_STORY is not permitted in our environment (now I get Access Denied: User req to PE(10001)). So, we need to clarify how to enable this access to continue with example.
Thanks!
0 -
Hello @pavel.kropachev ,
Please contact your organization's Refinitiv account manager for product-related permissioning.
0 -
Yes, already done.
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 中文论坛