Subscribing to RIC multiple times

I have a subscription to a set of RICs (e.g. VOD.L) open which processes deltas and populates a cache
Another operation we want to support is the ability to do an AdHoc market data request for a RIC to get a snapshot in time.
If I request VOD.L for an AdHoc snapshot, while our cache service is running (processing changes to existing subscriptions (inc. VOD.L)), no event is received, but if I do an AdHoc request for a RIC we are not currently subscribing to then it will produce a result.
Is it not possible then to request for a RIC while already subscribing to it?
Best Answer
-
Yes, I believe the RFA library will not let you do two subscriptions on the same item.
I suppose by AdHoc you mean snapshot? What you can do is to ask for a REFRESH on the existing stream. This would give you a snapshot-within-the-stream, so to speak.
The way to do that is to call OMMConsumer.reissueClient(...) method.
Here's how it will work using a real-life example:
1. Configure TRexplorer to use message tracing as described here.
2. Open a subscription in streaming mode. In this example I use "EUR=". Streaming mode is simply the same as not ticking "Snapshot". In the Item Viewer you'll now see the data item continuously updating. You'll notice that with every update only some fields actually change.
3. Press the "Refresh" button as indicated below.4. Watch what happens in the Item Viewer when Refresh button is pressed: all fields are updating.
5. Check the exchanged messages in the Output Window. You'll see a message like the one below:
Every time you press the "Refresh" button you'll get a REFRESH_RESP message. You'll notice in the message it says that the refresh was solicited, meaning you asked for it explicitly. (yes, there's also such a thing as an unsolicited refresh, typically happens after an outage has restored itself)
The above is what it will look like in your application too.
0
Answers
-
Can you please tell me which API you are using. I just tested with RFA C++, and I do get a streaming response followed by a non streaming response. I modified the starterConsumer example. Here is a snippet of my output:
2016 Nov 25 12:37:56.678 ST GMT-06:00 199C 3C7C 608 TRACE <- Received MMT_MARKET_PRICE Refresh TRI.N
serviceName : ELEKTRON_DD
symbolName : TRI.N
streamState : Open2016 Nov 25 12:38:21.410 ST GMT-06:00 199C 3C7C 608 TRACE <- Received MMT_MARKET_PRICE Refresh TRI.N
serviceName : ELEKTRON_DD
symbolName : TRI.N
streamState : NonStreaming0 -
Information you ask for is already in OP's tags. :-)
0 -
Using the RFA Java API
I can't seem to get a response if I request a duplicate RIC on an existing consumer
0 -
How can we go about asking for a REFRESH message with an existing request?
0 -
@ethanwong. I've updated my anwer.
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
- 614 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
- 248 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
- 641 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
- 89 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛