Eikon .NET API in downloadable examples doesn't work
Hi
I downloaded all examples at this site for Reuters EIKON API for .NET. but none
of them works. I tried it at work ( where we have proxy ) and at home ( no proxy ), I also tried with default versions of packages and later updated to latest versions. Still nothing.
An event handler ServicesOnStateChanged is never hit. All I see is black console on simply nothing.
private static void InitializeDataServices(string appName)
{
Services = DataServices.Instance;
Services.StateChanged += ServicesOnStateChanged;
Services.Initialize(appName);
Console.WriteLine("Data service is initialized? : {0}", Services.IsInitialized);
// TRUE - it is Initialized
InitializeTimeseries();
}
private static void ServicesOnStateChanged(object sender, DataServicesStateChangedEventArgs dataServicesStateChangedEventArgs)
{
// Never hit ((
Console.WriteLine("State changed: " + dataServicesStateChangedEventArgs.State.ToString());
}
I would like to dare to ask one basic question: I near future, I will have to develop some basic application to store list if RICS and some additional data several times a day. These data are Channel,RIC-name,Bid,Ask,ValueData,ValueTimestamp. For example Channel="IDN" , RIC-name="AUD1B3B20Y=ICAP" .
Am I going to use proper API = Eikon API for it? ( I'm just developer, not business user )
Thank you
Martin
Best Answer
-
.NET API is a desktop API and requires Eikon to be installed and initialised in order for you to run any samples or software developed on top of it.
So, in order to get this going you will need to install Eikon (you can get the app here), obtain a set of valid credentials and log in.
0
Answers
-
@Martin.Hogenauer is Eikon running when you run the sample app?
0 -
Hi Zhenya,
If you mean Eikon App studio, then no. I don't have anything installed on my PC except .NET libraries, which were automatically downloaded using NuGet in Visual Studio.
0 -
thank you, it is clear now.
0 -
I have the same problem but my Eikon is up and running. The problem is that the SDK/API is NOT working when run from within a non WPF application. A console application will NOT work UNLESS you submit any Reuters/Eikon bound API requests via a UI thread. You can get it to work for example like this:
//attempt to initialize service
var task = Task.Run(() =>
{
Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() =>
{
_dataServices = DataServices.Instance;
_dataServices.StateChanged += DataServicesOnStateChanged;
_dataServices.Initialize("ReutersMarketDataPlugin");
}));
Dispatcher.Run();
});1 -
I encountered this same issue on a .NET Framework v4.8 WindowsFormApp project. Identical code worked as expected in a .NET Core project, so the bug is definitely something to do with the Refinitiv.Data library. Took 2 days of bug hunting before I encountered this post here. HFTVOL's comment is what got my project working. By wrapping the API calls with
Task.Run(() =>{})they are able to connect with the Desktop Workspace instance. However, counter to HFTVOL's comment, this forces the code to run outside of the main UI thread.
The Refinitiv Devs really need to address this in the .NET API library, because I'm pretty sure this is not intended behavior0
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 中文论坛