How can I finish the price search process using RFA.Reuters (NET) after getting the Initial Image?
I am sorry but I truly don't understand what you mean by 'finish the process'?
Please expand on the process, what you are trying to achieve / your end objective is?
RFA.NET is a real-time streaming API - which can be used to subscribe to streaming data and then consume that streaming data in terms of receiving the initial Refresh message + any subsequent updates and then parsing the messages to extract the fields of data in those messages.
If and when you no longer want to receive data for a given instrument you can unsubscribe the instrument to close the stream.
Can you please expand on your question - don't understand what you mean by 'finish price search process'?
When you subscribe to an instrument using RFA.Net - by default, you should get the
However, I should point out that RFA.NET is a feature-complete API and will not support any new features or functionality we offer in the future (nor some current features such as Cloud based Real-time data).
For any new development work, we recommend you use the RT-SDK (C++/Java) or the Websocket API(C#/Python - any language that supports Websockets).
If you are using .NET, then you could also consider the RD Library for .NET which is an ease-of-use wrapper around the Websocket API (and is currently in Beta)
The following article may be of value to you - Choosing your Refinitiv Real-Time Streaming API | Refinitiv Developers
Thinking last night, I wondered if you meant by 'finish the process' to mean stop receiving updates after the refresh - i.e. stop subscribing to the instrument once you receive the initial image?
If that is the case, you can change the interaction type in your request message e.g.
reqMsg.InteractionType = ReqMsg.InteractionTypeFlag.InitialImage;
instead of the typical type which indicates both Refresh and Update:
reqMsg.InteractionType = ReqMsg.InteractionTypeFlag.InitialImage | ReqMsg.InteractionTypeFlag.InterestAfterRefresh
Setting the Interaction to InitialImage only will result in the event stream being closed automatically by the API, once you receive the Initial Image (or a Closed stream StatusMsg). You will not need to unsubscribe from the instrument yourself.
Furthermore, if you want to terminate the application cleanly, once you have received all, you can look at the Examples\QuickStartConsumer source code.
You will note that the QuickStartConsumer runs for 60secs and then stops dispatching events and performs various cleanup operations including calling unregister on the Login Handle, deactivating and destroying various RFA objects.