Eikon .NET SDK - What is the expected behavior when closing Eikon?
When using Eikon .NET SDK in a custom application, what is the expected behavior when the user closes Eikon application?
I can see that when I call DataServicesFactory.Create and Eikon is not already running, connectionCallback event returns the following IConnectionInformation states: StartingInitialization, then LaunchingEikon, then it may or may not return RequestingConnection, and finally after Eikon launches it returns Connected. So far so good. Now if I check IRealTimeService, ServiceInformation.State is Up.
If I close Eikon, I don't see connectionCallback event raised. However I do see ServiceInformationChanged event raised on IRealTimeService, which returns ServiceInformation.State as Closing.
If I restart Eikon from the shortcut, I don't see any events.
If instead of starting Eikon from the shortcut I call DataServicesFactory.Create, I see Eikon application launching and connectionCallback event returns IConnectionInformation states: StartingInitialization, then LaunchingEikon, and then after Eikon launches it returns RequestingConnection. This appears to be a terminal state. IRealTimeService.ServiceInformation.State is still Closing, data subscriptions cannot be created and I don't see any way of recovering from this state.
Is this behavior intentional? When a user shuts down Eikon, is it supposed to create a terminal state for a custom application using Eikon .NET SDK? Or is there a way to recover from this state?
I can see that when I call DataServicesFactory.Create and Eikon is not already running, connectionCallback event returns the following IConnectionInformation states: StartingInitialization, then LaunchingEikon, then it may or may not return RequestingConnection, and finally after Eikon launches it returns Connected. So far so good. Now if I check IRealTimeService, ServiceInformation.State is Up.
If I close Eikon, I don't see connectionCallback event raised. However I do see ServiceInformationChanged event raised on IRealTimeService, which returns ServiceInformation.State as Closing.
If I restart Eikon from the shortcut, I don't see any events.
If instead of starting Eikon from the shortcut I call DataServicesFactory.Create, I see Eikon application launching and connectionCallback event returns IConnectionInformation states: StartingInitialization, then LaunchingEikon, and then after Eikon launches it returns RequestingConnection. This appears to be a terminal state. IRealTimeService.ServiceInformation.State is still Closing, data subscriptions cannot be created and I don't see any way of recovering from this state.
Is this behavior intentional? When a user shuts down Eikon, is it supposed to create a terminal state for a custom application using Eikon .NET SDK? Or is there a way to recover from this state?
Tagged:
1
Best Answer
-
Not sure to understand all the workflow, but I can say what is not possible maybe it will answer your question . When you close Eikon (not minimized) you lost the connection between Eikon and your Application (this is technically impossible to get the connection again then). The fact that the App start Eikon if not already started is only a conveniance.1
Answers
-
Thanks Julien. If I understand correctly, shutdown of Eikon creates a terminal state for a custom application using Eikon .NET SDK. And the only way to recover from this state is to restart the process of the custom application, right?0
-
This is quite unfortunate. EikonDesktopDataAPI library has the same behavior, and I've heard many clients complain about it. Shutdown of Eikon is a common occurrence, be it deliberate shutdown by the user or weekly shutdowns that we enforce. Client developers must work around this and Eikon .NET SDK makes such workaround non trivial. If we have no plans of changing the behavior, at least we need to document it. This behavior is completely unintuitive, and if it's not clear from the documentation, nobody can expect it.0
-
Thanks for your feedback, I agree about this limitation, but it is very hard (maybe impossible) for us to fix it. You can see this behavior as: SDK needs Eikon started to work. And one feature is when you call Initialize/Create and Eikon is not started it starts Eikon. I am forwarding your issue to the team, maybe we can find a real solution.0
-
Alex, I see this "auto-reconnect" feature as a new requirement. However, as Julien said, there is a technical challenge behind this simple workflow, we need to investigate and prioritize.0
-
Alex, you can contact Jorge Santos for raising such requirements to product owners.0
-
Julien, Denis, thanks a lot for your comments. Much appreciated. I will raise en enhancement request to Jorge.0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛