Are there any unsubscribe RIC API and snapshot RIC API requests that we can use?

Greetings,
As per title. There are 2 queries as per below:-
1. We would like to unsubscribe a RIC data when our application already requested it for a certain period, say requesting RIC 0#Z74.SI at 8am, and then unsubscribe at 9am, to prevent data keeps on flowing to our application. Is that possible?
2. Is there any snapshot RIC API request that we can use to obtain all stocks data (Singapore and Hong Kong exchanges specifically) at a specific time?
Thanks in advance for your assistance.
Best Answer
-
Hi @nkssupreme
You have posted this question in the RFA section - but I understand you are interested in all APIs that may offer this functionality?
All of our streaming APIS - RFA, EMA, ETA and Websocket allow you to unsubscribe an instrument as and when required.
You can close an individual item by calling the unregisterClient(RFA) or unregister(EMA) method with the handle of the item you wish to close - this requires to keep hold of the handle that is returned when you first call registerClient.
For Websocket you would send a Close request using the StreamID of the instrument - as detailed in the tutorials.
You can also unregisterclient on the Login handle - this will close all active instruments - but this will also log you out and therefore best used during a shutdown cleanup scenario only.
In terms of snapshot, all the above APIs also allow making snapshot request - where the API closes the item for you once the initial response has been received. This requires setting the relevant flag in the iniitial subscription request e.g. for EMA Java
consumer.registerClient(reqMsg.serviceName("DIRECT_FEED").name("IBM.N")
.interestAfterRefresh(false), appClient);where in interestAfterRefresh(false) indicates you do not wish to receive updates after the intial refresh.
Or e.g. for RFA Java:
_ommMsg.setIndicationFlags(OMMMsg.Indication.NONSTREAMING
| OMMMsg.Indication.REFRESH);Where the NONSTREAMING indication tells the server you only want the intial refresh and no streaming updates thereafter.
I have provided Java snippets above - the techniques for C++/.NET versions of the API are very similar and more details can be found in the relevand documentation for each API - API Catalog
For Websocket you also set "Streaming":false in the request - as described in the tutorials linked above.
If you are writing a new application - then I would strongly recommend you use ElektronSDK(EMA/ETA) rather RFA. Elektron SDK are the newer easier to use strategic APIs, whereas RFA is feature complete/maintenance mode only.
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
- 689 Datastream
- 1.4K DSS
- 625 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
- 558 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
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 277 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 1.9K Refinitiv Data Platform
- 695 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
- 93 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛