Jump to content

teebeast

Community Member
  • Posts

    12
  • Joined

  • Last visited

Posts posted by teebeast

  1. I've tested it shortly with my project, but it's not running.

    The problem with newer versions than 5.0.5 was, that the LS_CID has changed and was not accepted from server anymore. So I think that IG uses an older version of Lightstream Server. The LS_CID seems to be used to keep compatibility between client library and server.

    Quote

    LS_cid=jqWtj1twChtfDxikwp1ltvcC4BJ4KikvD578vy1sj.h67EK8MCb

    Here my log:

    Quote

    serverAddress changed: https://demo-apd.marketdatasystems.com
    event: nr:serverAddress.changed <m=100 du=20 nr=1400>
    adapterSet changed: null
    user changed: xxxxx
    password changed
    Connection requested: details: {serverAddress => https://demo-apd.marketdatasystems.com, user => xxxxx, libVersion => dotnet_standard_client 6.0.0-beta.2 build 20230405} options: {keepaliveInterval => 0, serverInstanceAddressIgnored => false, firstRetryMaxDelay => 100, contentLength => 50000000, sessionRecoveryTimeout => 15000, pollingInterval => 0, idleTimeout => 19000, slowingEnabled => false, requestedMaxBandwidth => BWUnlimited, stalledTimeout => 2000, reverseHeartbeatInterval => 0, HTTPExtraHeadersOnSessionCreationOnly => false, retryDelay => 4000, reconnectTimeout => 3000}
    event: connect <m=100 du=20 nr=1400>
    goto: <m=101 du=20 nr=1400>
    goto: <m=101 du=20 nr=1410>
    event: select.create <m=101 du=20 nr=1410>
    Status: CONNECTING
    WS connecting: wss://demo-apd.marketdatasystems.com/lightstreamer headers(null) proxy(null) certificateValidator(false)
    goto: <m=120 du=20 nr=1410>
    event: du:create <m=120 du=20 nr=1410>
    goto: <m=120 du=21 nr=1410>
    Subscription requested: subId: 1 {requestedSnapshot => SnpYes, mode => MERGE, items => [MARKET:IX.D.DAX.IFMM.IP], fields => [BID,OFFER]}
    sub#subscribe(1) in <m=1>
    sub#goto(1) <m=2>
    event: send.control <m=120 du=21 nr=1410>
    WS event: open
    event: ws.open <m=120 du=21 nr=1410>
    Sending session create: LS_user=xxxxx LS_cid=xxxxx LS_send_sync=false LS_cause=api
    WS sending: wsok
    WS sending: create_session
    LS_user=xxxxx&LS_cid=xxxxx&LS_send_sync=false&LS_cause=api&LS_password=CST-xxxxx
    goto: <m=121 du=21 nr=1410>
    event: transport.timeout <m=121 du=21 nr=1410>
    Websocket suspended
    WS disposing
    goto: <m=115 du=21 nr=1410>
    event: du:retry <m=115 du=21 nr=1410>
    Retrying connection. Cause: Websocket transport not available
    goto: <m=115 du=23 nr=1410>
    event: retry.timeout <m=115 du=23 nr=1410>
    goto: <m=116 du=23 nr=1410>
    event: select.create <m=116 du=23 nr=1410>
    Sending session create: LS_polling=true LS_polling_millis=0 LS_idle_millis=0 LS_user=Z43B2S LS_cid=xxxxx LS_cause=ws.unavailable
    HTTP sending: https://demo-apd.marketdatasystems.com/lightstreamer/create_session.txt?LS_protocol=TLCP-2.4.0 LS_polling=true&LS_polling_millis=0&LS_idle_millis=0&LS_user=xxxxx&LS_cid=xxxxx&LS_cause=ws.unavailable&LS_password=CST-xxxxx headers(null)
    goto: <m=130 du=23 nr=1410>
    event: du:create <m=130 du=23 nr=1410>
    goto: <m=130 du=21 nr=1410>
    HTTP event: text(CONERR,65,Unsupported protocol version: com.lightstreamer.b.b1@51dd3b73)
    HTTP event: complete
    event: CONERR <m=130 du=21 nr=1410>
    CONERR 65 Unsupported protocol version: com.lightstreamer.b.b1@51dd3b73
    HTTP disposing
    Status: DISCONNECTED
    goto: <m=100 du=21 nr=1410>
    event: du:terminate <m=100 du=21 nr=1410>
    Disconnected. Cause: 65 - Unsupported protocol version: com.lightstreamer.b.b1@51dd3b73
    Transports enabled again.
    goto: <m=100 du=20 nr=1410>
    goto: <m=100 du=20 nr=1400>

     

  2. @charlie303

    You cannot update lightstreamer .net standard client higher than 5.0.5, because they changed some things that are not compatible with the server version IG is using. Here is the changeset at Github which shows you the incompatible change. I got the latest version of Lightstreamer-lib-client-dotnet to run, when I change the parameter LS_cid which I cannot recommend.

    I also looked at the chart data with my demo account and has no problems. A problem could be the demo app itself. I only reworked the parts that were necessary to obviously run against the latest nuget packages. Maybe there are some bugs which I cannot reproduce.

  3. The use of DotNetClient_N2.dll is the problem. It seems to be outdated and there is a new implementation of it at GitHub. The example implementation has the same problem for a few weeks.

    IG - C# Example project at GitHub

    I fixed the C# example in my fork so you can see what to change. Hope it helps.

    Fork - Fixed Implementation for Lightstreamer (Changeset)

  4. I am implementing an own version of this api in C# and tried to use the latest version of lightstreamer (5.1 and above). They changed something that wont work anymore in combination with IG. I had to use version 5.0.5 or earlier.

    https://github.com/Lightstreamer/Lightstreamer-lib-client-dotnet

    I only tested it with my demo account today and it works fine. When they upgrade to the latest lightstream server than this could be a problem. I will try it later for my live account.

×
×
  • Create New...
us