Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon COM /
avatar image
Question by inercomp · Nov 03, 2016 at 05:58 AM · eikoneikon-com-apiconnectioninitializationsynchronisation

Synchronization manager for .NET to gather connection state?

Hi there,

I have an Excel sheet that updates market data on a regular basis if Eikon is connected. I can determine the connection status with the synchronization manager and then request the update (my Eikon is not connected all day, as I don't need it that intensively and the program is quite ressource-heavy).

I plan to get rid of the instable Excel file and build a .NET application for this. However, I do not manage to receive the connection status of Eikon from the .NET API. As soon as i want to check the connection status with Initialize(), the API opens EIKON.

Is there any other way to determine if the program is connected without automatically starting EIKON every time? Can I use the synchronization manager also in .NET?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

9 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov.1 · Nov 07, 2016 at 12:38 PM

Thanks a lot @inercomp,

I finally understand. Yes, you are correct. Your application is not connected to Eikon until you initialize the connection, even if Eikon is already running. Eikon running and connection status are not the same thing. Connection status may be down even if Eikon is running, e.g. in case of communications failure such as network connectivity loss. The properties I mentioned in my first response can tell you whether your application is connected to Eikon and whether data services are available. They do not tell you if Eikon is running, even though when your application is connected and data services are available you can deduce that Eikon is running. If you want to check whether Eikon is running you can for example see if eikon.exe is among the processes running on the machine.

Does this help?

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Zhenya Kovalyov · Nov 03, 2016 at 06:36 AM

@inercomp

All desktop APIs require Eikon up and running while using them, so when you call Initialize(), API determines that Eikon is not running and launches it.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Alex Putkov.1 · Nov 03, 2016 at 06:42 PM

Hi @inercomp

In addition to the comment by Zhenya, rather than calling Initialize method of IEikonDesktopDataAPI interface, you can check Status property, which does not trigger the launch of Eikon application. However, if you consider closing and restarting Eikon during the runtime of you application, you should mind the following limitation of Eikon COM APIs: when Eikon application shuts down and your application using EikonDesktopDataAPI library is running, it creates a terminal state for your application. Even if you restart Eikon you won't be able to connect to it. The only way to recover from this state and re-establish connection to Eikon is to restart your application process.
Eikon .NET SDK provides better experience. It allows you to reconnect to Eikon after Eikon shutdown. It also provides State and IsInitialized properties you can use to check connection to Eikon without triggering the launch of Eikon application. The downside is that Eikon .NET SDK is only capable of retrieving real-time data and timeseries of price history. If you need fundamental and reference data, then I'm afraid there's no alternative to Eikon COM APIs yet.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by inercomp · Nov 04, 2016 at 06:17 AM

Hi Alex,

thanks for your answer. That would be excaclty what I need. However, I don't manage to get it running. To be honest, I am completely new to C#, so I might not exclude that I am using the API wrong. Here is what I tried on the basis of the tutorials:

COM-API

eikonConnect = new EikonDesktopDataAPI.EikonDesktopDataAPI();
Console.WriteLine(eikonConnect.Status);

If eikonConnect is not initialized, Status returned is allways "disconnected".

.NET API

Services = DataServices.Instance;
// check if we are online
Console.WriteLine(Services.State == DataServicesState.Up);

Services.State is always none.

Maybe I used something wrong here. Could help me out here, Alex? Thanks!

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Alex Putkov.1 · Nov 04, 2016 at 12:02 PM

Hi @inercomp,

Sorry, I don't think I understand what you're struggling with. Could you elaborate on what you mean by "I don't manage to get it running"?
What you see is what you should expect. In case of Eikon COM APIs before you initialize EikonDesktopDataAPI, its status is indeed Disconnected. What did you expect it to be?

And in case of Eikon .NET SDK it is perfectly expected that Services.State returns None before DataServices are initialized. You could also add
Console.WriteLine(DataServices.Instance.IsInitialized.ToString());
which will return "False".

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by inercomp · Nov 07, 2016 at 03:30 AM

Hi @Alex Putkov.,

what I would like to do is to check for Eikon connection on my PC without auto-opening of Eikon when it's closed. As soon as I initialize EikonDesktopDataAPI and there is no connection, Eikon is opened automatically. I thought from your post that I could check the connection status without triggering Eikon.

Is it correct that your post says that i need to initialize the connection once (which will in any case result in triggering Eikon) but can then check status continuesly? Or is there a way to check if Eikon is runnign without triggering EIKON at all?

Thanks.

PS: The .NET SDK API would be sufficient for my stuff.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Alex Putkov.1 · Nov 07, 2016 at 11:27 AM

Hi @inercomp,

Yes, you can indeed check connection status without triggering the launch of Eikon. No, you don't need to initialize the connection (not even once), which triggers the launch of Eikon, in order to check the connection status. I don't know where in my posts you found the idea that you need to initialize the connection in order to check its status. I said no such thing. The code snippets included in your previous post do exactly what you ask for, which makes me feel quite confused about what it is that you're struggling with. Both code snippets you included return connection status, and since Initialize method is not included in these snippets, Eikon will not be launched when you run this code. Given that you got the connection status result from the snippets you included, I figured that you must have tested this code. In which case I'm afraid I don't understand what you're missing or what else you need.

Sorry for all the confusion. I'm trying to help, but I'm afraid I'm struggling to understand what it is that you find challenging here.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by inercomp · Nov 07, 2016 at 12:16 PM

Hi, I am really glad your are trying to help me out here, its really important for me.

In fact, I tested the code snippets above and although I had Eikon up and running, the status returned always "disconnected" - although I had Eikon open at this time. I do net get a status other than disconnected, if I do not initialize.

Hope this is understandable.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by inercomp · Nov 08, 2016 at 03:21 AM

Thanks, now its clear to me...

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
9 People are following this question.

Related Questions

EikonDesktopDataApi::Initialize() does not trigger OnStatusChanged

Excel API: formula builder - retreive data from local server

How to connect to Reuters Eikon Excel programmatically with VBA?

RDATA batch request with individual Sdate parameters

OnStatusChanged is not triggered

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges