Jump to content
  • 0

Lightstreamer Connect fail on DEMO account


swingwin

Question

I can't connect to the DEMO stream ("https://demo-apd.marketdatasystems.com") since December 2021 with a C# .NET application using the IG API
On the other hand the connection to a LIVE stream ("https://apd.marketdatasystems.com") works

It seems that the problem comes from the "DotNetClient_N2.dll" library.
Has anyone encountered the same problem ?

 

Edited by swingwin
Link to comment

Recommended Posts

  • 0

Many thanks @Tartempion.
In any case it is not won with Windows 7.
Because I don't see how to introduce this new property and how to install the TLS12 protocol
I did some tests today on my C# application but without success.

Link to comment
  • 0

For .NET applications the problem is clearly located in the .NET Framework and the way the TLS1.2 protocol is set up in it
So it is certainly not a problem linked to the "DotNetClient_N2.dll" library
Indeed :
- I made a test with the java application using the java library "sdk.client.java.se-5.1.1.1623.2.jar" ==> no connection problem and the data arrive correctly with the stream
- I converted this java library to .NET assembly using IKVMC
- my C#.NET application now uses the "sdk.client.java.se-5.1.1.1623.2.dll" library for lightstreamer connections, instead of the "DotNetClient_N2.dll" library
and then the lightstream connection fails with the following error message

"com.lightstreamer.ls_client.PushConnException: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake"

Link to comment
  • 0

You will need to install a fresh, clean copy of Windows 10 and then everything will work again.
Windows 10 has the underlying HTTPS SSL infrastructure needed for your code.
Other apps, like browsers, build their own HTTPS SSL infrastructure.
It is not possible to patch Windows 7, you are forced to upgrade or use a different code paradigm, like Java.
Note, installing Windows 10 over Windows 7 won't work as it keeps a lot of Windows 7 files, has to be a fresh, clean install of WIndows 10.

Link to comment
  • 0

For now, I solved my problem so I can stay with windows 7 and keep my C# application intact.

I developed a DDE server in Python interfacing with the IG APIs.
I converted the Python application into an executable to improve performance.
And I retrieve the DDE in C# (or Excel) with the NDde.dll assembly.

I'll leave it at that for now and wait to test fast feeds in times of high volatility
But if the performance is not there I'm considering doing the same thing with an RTD server and/or with Java.

Link to comment
  • 0

I have completed the performance tests in periods of high volatility (US opening for example).
The performances are excellent even if the solution found is a bit twisted.

So I stay on this technical solution which works perfectly with Windows 7 and .NET.
The solution is :
API stream received by a compiled python application, which delivers the data on the workstation with a DDE server.
Thus any application can connect to this DDE server and exploit the stream of the IG APIs (personal application with .NET, Excel, Matlab, etc...). No latency was observed.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • General Statistics

    • Total Topics
      21,664
    • Total Posts
      91,988
    • Total Members
      41,953
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    MichaelLP
    Joined 29/03/23 17:05
  • Posts

    • Stock Market Content: SP500, Apple (AAPL),Tesla (TSLA), Amazon (AMZN), Nvidia (NVDA), Microsoft MSFT, Berkshire Hathaway (BRK/B), Block, Inc (SQ), Meta Platforms, Netflix (NFLX), Enphase (ENPH), Alphabet GOOGL and Bank of America BAC. Stock Market Summary: NASDAQ 100 to 13,000 Apple to 165, so in a nutshell Another new high for most stocks, that said, this next new high is being viewed as Wave v) top. Elliott Wave Analysis: Wave v) Trading Strategy: On the long side for a good few sessions Video Chapters 00:00 SP500 / NASDAQ 100 10:13 Apple (AAPL) 13:40 Amazon (AMZN) 17:32 NVIDIA (NVDA) 18:29 Meta Platforms (META) 19:28 Netflix (NFLX)  22:00 Enphase (ENPH) 26:02 Alphabet (GOOGL)  30:31 Microsoft (MSFT) 32:04 Berkshire Hathaway (BRK.B) 33:22 Tesla (TSLA) 35:40 Block Inc. (SQ)  38:08 Bank of America BAC 41:21 Thanks for supporting Analyst Peter Mathers TradingLounge™ Australian Financial Services Licence - AFSL 317817 Source: tradinglounge com  Level Up - Test the Trial Service!  
    • #EURJPY: Detailed Structure AnalysisHere are my latest structure analysis for ⚠️EURJPY.Support 1: 138.80 - 139.25 areaSupport 2: 137.38 - 138.18 areaResistance 1: 143.19 - 143.6 areaResistance 2: 145.00 - 145.58 areaResistance 3: 146.40 - 146.7 areaConsider these structures for pullback/breakout trading.
    • #USDCAD: Important Breakout   USDCAD broke and closed below a solid horizontal demand cluster on a daily. The broken structure turned into resistance now.   Probabilities will be high to see a bearish move from that. Goals will be 1.356 / 1.346 For Additional confirmation use: the best mt4 indicators
×
×
  • Create New...