How connect to LSEG Workspace using .NET API?

Hi,
We support our internal .NET application written in VB.NET which currently uses Refinitiv Eikon version 4.0. Because of migration to LSEG Workspace from Eikon we try to modify our application which is using just a few functions from Eikon API:
EikonDesktopDataAPI.Initialize() + EikonDesktopDataAPI.Status
EikonDesktopDataAPI.CreateAdxForexModule().FxCalcPeriod
EikonDesktopDataAPI.CreateAdxForexModule().AdFxSwpTpSwp
EikonDesktopDataAPI is automatically available in the installation folder after installation of Refinitiv Eikon. But installation folder of LSEG Workspace doesn’t contain any prepared library with APIs and I think we should download it separately.
We have checked the samples from LSEG Data Library for .NET Examples from the link
but we cannot understand all points in comparing to EikonDesktopDataAPI.For example, with Eikon we simply use the function EikonDesktopDataAPI.Initialize() in Visual Basic .NET for connection to Eikon:
Public Function ConnectToEikon(Optional ByRef sErrorInfo As String = "") As String Try ' Create the Eikon Desktop object If Me.edDataAPI Is Nothing Then Me.edDataAPI = New EikonDesktopDataAPI.EikonDesktopDataAPI End If ' Initialize the Eikon Desktop object to connect to Eikon Dim eResult As EEikonDataAPIInitializeResult eResult = Me.edDataAPI.Initialize() If (eResult <> EEikonDataAPIInitializeResult.Succeed) Then Me.DisconnectFromEikon() If (eResult = EEikonDataAPIInitializeResult.Error_Reinitialize) Then ConnectToEikon = "Error_Reinitialize" ElseIf eResult = EEikonDataAPIInitializeResult.Error_InitializeFail Then ConnectToEikon = "Error_InitializeFail" Else ConnectToEikon = eResult.ToString End If Else ConnectToEikon = "Succeed" End If Catch ex As Exception ConnectToEikon = "Exception_ConnectToEikon" sErrorInfo = ex.Message.ToString End Try End Function
After running the function, the GUI of Eikon application starts and we enter the login credentials of our Eikon user for access.
We have compiled the LSEG API Sample “1.2 – DesktopSession” from the source at the begin of this question, using LSEG.Data.dll, but we have the following error:
State: Pending. DesktopSession is Pending
Event: SessionAuthenticationFailed. {
“Message”: “No connection could be made because the target machine actively refused it. (localhols:9001)”,
“StatusUrl”: https://localhost:9001/api/status”
}
State: Closed. DesktopSession is Closed
Session failed to open
Could somebody help or give some recommendations how we can correctly organize connection to the Workspace using .NET API?
Thank you in advance!
Answers
-
Thank you for reaching out to us.
I assume that you are using the LSEG Data Library for .NET.
Before running the application, you need to run the LSEG Workspace application. The LSEG Data Library for .NET will not start the LSEG Workspace application when running the code.
You may refer to the Eikon Data API and Refinitiv Data Library - Troubleshooting aticle. to make sure that the Data API Proxy is running properly.
0 -
Hello @eugen_p
There is a step-by-step guide on this LSEG Data Library for .NET - Quick Start page that might help you too.
If you need more in dept tutorials, please check the
page.0
Categories
- All Categories
- 3 Polls
- 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
- 615 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
- 249 ETA
- 554 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
- 643 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
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛