How to Transition from C# Eikon to Workspace
Dear LSEG Support Team,
Greetings.
We have been using the EikonDataAPI NuGet package with C# to access Eikon data. Below is an example of the code we have implemented:
using EikonDataAPI; |
|
---|---|
IEikon eikon = Eikon.CreateDataAPI(); |
|
eikon.SetAppKey(EikonApiKey); |
|
Dictionary<string, string> dic = new Dictionary<string, string>(); |
|
dic.Add("Sdate", data1); |
|
dic.Add("Edate", data2); |
|
dic.Add("Freq", "daily"); |
|
string response = eikon.GetDataRaw(recv_cds, ricks, dic); //JSON |
|
However, with the discontinuation of the Eikon service, we understand that we need to transition to using Workspace. We would like to adapt the above code to work in the Workspace environment.
Could you please advise us on the appropriate NuGet package to use and assist us in modifying the provided code to function correctly with Workspace?
Additionally, we are using the TR() function from the Eikon Excel Toolkit. Could you please let us know which function in the Workspace Excel Toolkit we should use as a replacement?
We are currently using .NET Framework 4.7.2 and developing with Visual Studio 2017.
We would greatly appreciate your prompt response at your earliest convenience.
Wishing you continued success.
Thank you very much for your support.
Best regards,
Find more posts tagged with
Currently, you are using the EikonDataAPI library available on NuGet. You need to migrate the application to use the LSEG Data Library for .Net instead. The package is also available on NuGet. However, it supports .NET Framework 4.8.
There are examples of the LSEG Data Library for .Net on GitHub. The example that is similar to the eikon.GetDataRaw method is the 2.8.01-FundamentalAndReference-Basics example.
Regarding the TR excel function, the LSEG Workspace Excel uses the @RDP.Data function instead.
However, it also provides the Build Formula tool for generating Excel formulas.
Hi @fnpricing
There is a dedicate migration page for the EikonDataAPI NuGet package
Inside there you can find a link to Migrating Eikon .Net API calls article.
@fnpricing
Thank you for reaching out to us.
You can use the LSEG Data Library for .Net with the desktop session.
Please refer to the 2.8.01-FundamentalAndReference-Basics example.
Dear Jirapongse,
Thank you very much for your prompt response.
However, I do not currently have an environment set up to conduct testing. As a result, I am finding it difficult to fully understand your reply.
Would you kindly provide a more detailed and patient explanation?
Best regards,