Results 1 to 2 of 2
  1. #1

    OnUpdate only called twice .NET Client.

    I'm attempted to connect to an existing lightstreamer push service.

    I am able to authenticate with the system and start the streaming.

    Once the callbacks in my HandyTableListener start. OnUpdate is called twice, the second time with the first set of data (which is correct data). I don't get anymore data after that. No exceptions are raised as far as I can tell.

    Here is what my console log output looks like.
    Code:
    ConnectionListener::OnConnectionEstablished
    ConnectionListener::OnSessionStarted polling=False
    TradingPlatformHandyTableListener::OnUpdate itemPos=1 itemName= update=[ null, null, null, null, null, null, null, null, null, null, null ]
    ConnectionListener::OnNewBytes bytes=27
    TradingPlatformHandyTableListener::OnUpdate itemPos=1 itemName= update=[ 0, 0, -1, 0, 0, 0, 0, 0, 0, 6, GBP ]
    ConnectionListener::OnNewBytes bytes=30
    Here's some more relevant code from my project.
    Code:
                  ConnectionInfo connInfo = new ConnectionInfo();
                connInfo.PushServerUrl = serverUrl;
                connInfo.Adapter = "STREAMINGALL";
                connInfo.User = userName;
                connInfo.Password = sessionToken;
    Code:
                 SimpleTableInfo tableInfo = new SimpleTableInfo("CLIENTACCOUNTMARGIN",
                    "MERGE",
                    "Cash Margin MarginIndicator NetEquity OpenTradeEquity TradeableFunds PendingFunds TradingResource TotalMarginRequirement CurrencyId CurrencyISO",
                    true);
    
                tableInfo.DataAdapter = "CLIENTACCOUNTMARGIN";
    
                client.SubscribeTable(tableInfo, hl, false);
    I'm using the latest .NET Windows RT client (DLL) in a Console Application.

  2. #2
    Nevermind it seems part of the requirement of the service I'm using is to have Open trade positions and that's why no updates were coming through.

 

 

Similar Threads

  1. Replies: 6
    Last Post: March 9th, 2016, 08:53 AM
  2. Null Values in OnUpdate
    By New Soft in forum Client SDKs
    Replies: 7
    Last Post: September 18th, 2014, 09:49 AM
  3. Replies: 2
    Last Post: December 24th, 2010, 07:51 AM
  4. Client only in polling mode
    By EWANG in forum Client SDKs
    Replies: 12
    Last Post: August 19th, 2010, 08:52 AM
  5. Error: Only a client can stream data.
    By lethanhclub in forum Adapter SDKs
    Replies: 6
    Last Post: September 16th, 2009, 10:26 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 06:25 AM.
Lightstreamer Logo