Resume after a COMPLETION EVENT
Hi ,
When this is a completion event update for a ric,
It seems the pricing stream for that ric will be stopped.
and it cannot resume after the ric status become "OPEN"
We have to restart the program to resume.
Can we trigger the "resume" in program to handle this case , thanks
we are using RFA version (Version: 8.0.0.E2.all)
public void processEvent(Event event)
{
if (event.getType() == Event.COMPLETION_EVENT)
{
System.out.println(_className + ": Receive a COMPLETION_EVENT, " + event.getHandle() + " "+ event.getInterestSpec().toString());
return;
}
}
Best Answer
-
Hello @Raymond
A Completion Event is a specific type of
Event guaranteed to be the last Event.The Completion Event notifies the
application that the event stream is closed. The application does not receive any data or any event from this stream any more. That's why you saw the pricing stream for that ric be stopped. To get data again, the application has to re-subscribe the item/RIC.0
Answers
-
Thanks Pimchaya
Can you suggest the way to re-subscribe the item ?
0 -
Hello @Raymond
Re-subscribing the item is sending an item request again. It is the same way as you subscribe an item after logging in successfully. After you re-subscribe the item, new Handle instance will be returned from OMMConsumer.registerClient(..)
For example: to re-subscribe an item in StarterConsumer example shipped with RFA Java package(<RFA Java Package>\Examples\com\reuters\rfa\example\omm\cons), call ItemManager.sendRequest();
0 -
Hi @Raymond
It would also be useful to understand why you are getting a Completion event in the first place?
Are you doing snapshot request, or are you unregistering interest in the instrument? Or is the server closing the instrument off?
If the server is closing off the instrument for some reason, then it may not be worth re-requesting the instrument immediately or after a while. E.g. if an instrument has expired then there would be no point re-requesting it again.
Do you get any meaningful status msg codes / text prior to the completion event?
0 -
Hi Umer,
Our RFA program is getting the redistribute rate from a Reuters application.
We found that the redistribute rate status will become "CLOSED" after the weekend restart for the Reuters application and the RFA program cannot resume automatically.
0 -
hi @Raymond
Do you know how long the weekend restart of the provider application takes, before the instruments are available again?
If so, then you could set a timer (once you receive Completion events) to re-subscribe the instruments after that time period has elapsed. You can re-subscribe by re-registering interest in the instruments - as described by my colleague Pimchaya in his comments earlier.
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 中文论坛