Rics createion via Websocket API in C#

How could we use Web API to create rics? Could we create the rics with template?
Best Answer
-
Sorry for the issue you are facing, let me see if I can help you in resolving this.
You can use post messages to create RICs in ATS or RTDS Cache.
Please refer to the postman example that shows how to connect to ATS and RTDS, and create RICs in those components.
You can also refer to the MarketPricePostingExample.cs on GitHub.
However, if it is not about contributing data to ATS or RTDS cache, please let me know the product that you are using.
I hope this will help.
0
Answers
-
Hello @clarence.ho
If you want to create RIC and contribute data to ATS, there are the following resources that might help you:
- Implementing Refinitiv Real-Time API applications to work with ATS - Part 1
- Implementing Refinitiv Real-Time API applications to work with ATS - Part 2
The articles above give you a brief concept and step-by-step guide on how to create and post data to ATS. Even though the WebSocket example is written in Ruby language, the main concept can be applied to the C# example that was suggested by my colleague.
0 -
Hi Jirapongse,
Thanks for your prompt reply. When I am trying to create the rics "TestingABC" and
I get error from ATS.
WS Query
{
"Ack":true,
"ID":2,
"Key":{
"Name":"TestingABC",
"Serivce":"<Internal Page>"
},
"Message":{
"Fields":{
"PROD_PERM":null,
"RDNDISPLAY":null,
"DSPLY_NAME":null,
"TIMACT":null,
"TRDPRC_1":null,
"TRDPRC_2":null,
"TRDPRC_3":null,
"TRDPRC_4":null,
"TRDPRC_5":null,
"NETCHNG_1":null,
"CURRENCY":null
},
"Solicted":false,
"Type":"Refresh",
"ID":1
},
"PostID":2,
"Type":"Post"
}Response:
{
"ID": 2,
"Type": "Ack",
"AckID": 2,
"NakCode": "DeniedBySrc",
"Text": "Unable to find item stream.",
"Key": {
"Service": 0,
"Name": "TestingABC"
}
}Would you kindly advise?
0 -
To create a new RIC in ATS, you need to use the off-stream posting with stream ID #` ("ID": 1), as shown in the 4. Create an item in ATS example in the Refinitiv Real-Time Distribution Contributions (ATS) postman collection.
{
"Ack": true,
"ID": 1,
"Key": {
"Name": "ATS_INSERT_S",
"Service": "{{POST_SERVICE}}"
},
"Message": {
"Fields": {
"X_RIC_NAME": "{{POST_ITEM}}",
"ASK": 451.60,
"PRIMACT_1": 450.3,
"SEC_ACT_1": 450.3,
"DSPLY_NAME": "TEST RIC",
"BID": 451.55
},
"ID": 0,
"Solicited": false,
"Type": "Refresh"
},
"PostID": 1,
"Type": "Post"
}The RIC name is in the X_RIC_NAME field.
To contribute data to existing RICs, you can use either off-stream or on-stream posting.
To use off-stream posting, please refer to the 6. Off-Stream Post example in the Refinitiv Real-Time Distribution Contributions (ATS) postman collection.
{
"Ack": true,
"ID": 1,
"Key": {
"Name": "{{POST_ITEM}}",
"Service": "{{POST_SERVICE}}"
},
"Message": {
"Fields": {
"ASK": 452.60,
"PRIMACT_1": 451.3,
"SEC_ACT_1": 451.3,
"BID": 452.55
},
"ID": 0,
"Type": "Update"
},
"PostID": 10,
"Type": "Post"
}To use on-stream posting, first, you need to open a stream by requesting that item.
{
"ID": 3,
"Key": {
"Name": "{{POST_ITEM}}",
"Service": "{{POST_SERVICE}}"
}
}Then, use the same stream to contribute the data.
{
"Ack": true,
"Domain": "MarketPrice",
"ID": 3,
"Message": {
"Domain": "MarketPrice",
"Fields": {
"ASK": 453.60,
"BID": 452.60
},
"ID": 0,
"Type": "Update"
},
"PostID": 20,
"PostUserInfo": {
"Address": "127.0.0.1",
"UserID": 10000
},
"Type": "Post"
}For more information, please refer to the 5. Market Price Streaming Request and 7. On-Stream Post examples in the Refinitiv Real-Time Distribution Contributions (ATS) postman collection.
0 -
Thank you so much for your help! Its working!
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
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 716 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
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛