How to get access to your .net API and retrieve real time data?
Hi there,
I'm trying out your .Net API (nuget package). I'm wondering how to await the callback onDataReceived function? I have the nuget package from your tutorial and trying out your example.
What are the requirements to retrieve the values?
Do i need to have Eikon desktop app running on my machine?
Thanks in advance
Best Answer
-
@0c62b574-a087-4b69-8ba8-1f3ad682f116_deprecated_e08fae0f-62dd-4596-9c12-10a790cb6ed2
Yes, you are correct. When using Eikon APIs, Eikon must be installed and run on the machine. Eikon APIs communicate to Eikon processes in order to get the data. I assumed that you are using .NET APIs for use in custom applications. On the Overview page, it states that:
APIs in this SDK have a run time dependency on Eikon and require that Eikon application is running with the user signed on to be able to retrieve data from Eikon. If Eikon application is not running, it can be automatically launched by this SDK.
0
Answers
-
What about if i don't have the Eikon running on my machine? I believe we can launch it by its SDK like that:
private static IDataServices Services { get; set; }
private static void InitializeDataServices(string appName)
{
Services = DataServices.Instance;
Services.StateChanged += ServicesOnStateChanged;
Services.Initialize(appName);
}
Right?
If that is correct, then what should i do to get the values? I'm using the example from your tutorial.
Thanks
0 -
That is the example i'm using:
Usage Example Realtime Data API
But still this method cannot it is not being called
private void DataReceived(SingleFieldValue value)
Could you please advise?
0 -
Please enable the debug log by adding the following configurations to the app.config file.
0 -
@0c62b574-a087-4b69-8ba8-1f3ad682f116_deprecated_e08fae0f-62dd-4596-9c12-10a790cb6ed2 it is a desktop api, so naturally you will have to run eikon desktop
0 -
Thanks for your reply.
Just added the lines but still i get the error attached.
0 -
@0c62b574-a087-4b69-8ba8-1f3ad682f116_deprecated_e08fae0f-62dd-4596-9c12-10a790cb6ed2
The errors in your screenshot are normal and expected when you launch the example while Eikon is not running. The code in the example tries to establish real-time data subscription without waiting for data services to be fully initialized. The latter takes a few seconds unless Eikon is already running, hence the timeouts for the real-time data subscription. However what you should see in the output after these errors is messages saying that connection initialization succeeded, UDA service is up and running, a bunch of channels have been created and finally you should see real-time data subscription returning values. I gather none of that is happening for you, right? Does the screenshot you included show the end of the output from the example? In other words could you confirm that for you the example produces no output after the error messages in the screenshot, and it just hangs? Could you also please confirm that you're trying the example without any modifications to the code, and that you installed Eikon .NET SDK by restoring the Nuget package the example is referencing?
What happens to Eikon when you run the example? Does it get launched? If yes, are you able to retrieve real-time data into Eikon after it gets launched?
What happens if you start Eikon first and then run the example after Eikon has launched?0 -
Hi,
Yes it's still hanging with no data received.
Also please find attached the references of the example (example used as downloaded with no modifications). Is there something missing?
Looking forward to hearing from you.
Thanks
0 -
@0c62b574-a087-4b69-8ba8-1f3ad682f116_deprecated_e08fae0f-62dd-4596-9c12-10a790cb6ed2 could you please confirm which id you are using to login to Eikon?
0 -
It would also be very helpful to get the answers to all other questions I asked in my previous response.
0 -
Hello @0c62b574-a087-4b69-8ba8-1f3ad682f116_deprecated_e08fae0f-62dd-4596-9c12-10a790cb6ed2
Does the problem still persist in your environment? If so, please give us information that has been asked above.
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 629 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 86 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛