imran_m 0 Report post Posted July 19, 2013 I am getting exception with message {“Requested Adapter Set not available”} while I am trying to connect using Streaming Client. Here is my code private static readonly Uri RPC_URI = new Uri("https://ciapipreprod.cityindextest9.co.uk/tradingapi/"); private static readonly Uri STREAMING_URI = new Uri("https://pushpreprod.cityindextest9.co.uk/TRADINGACCOUNT"); private const string USERNAME = "XXXXXXX"; private const string PASSWORD = "password"; CIAPI.Rpc.Client rpcClient; StreamingClient.IStreamingClient streamingClient; StreamingClient.IStreamingListener<QuoteDTO> quoteListener; QuoteDTO recievedQuote = new QuoteDTO(); Queue<string> errorLogQueue = new Queue<string>(); private void buttonStart_Click(object sender, EventArgs ea) { try { rpcClient = new CIAPI.Rpc.Client(RPC_URI); rpcClient.LogIn(USERNAME, PASSWORD); streamingClient = StreamingClientFactory.CreateStreamingClient(STREAMING_URI, USERNAME, rpcClient.SessionId); streamingClient.Connect(); quoteListener = streamingClient.BuildListener<QuoteDTO>("QUOTE.ALL"); quoteListener.Start(); quoteListener.MessageRecieved += (s, quoteMessage) => { recievedQuote = quoteMessage.Data; }; } catch (Exception ex) { errorLogQueue.Enqueue(ex.Message); } } Here are Exception Details** Lightstreamer.DotNet.Client.PushUserException was caught Message=Requested Adapter Set not available Source=StreamingClient.Lightstreamer ErrorCode=2 StackTrace: at Lightstreamer.DotNet.Client.ExtConnectionListener.WaitStreamingTimeoutAnswer() in c:\dev\workspace\CIAPI.CS\src\StreamingClient.Lightstreamer\Lightstreamer.dotNetClient_N2\ExtConnectionListener.cs:line 116 at Lightstreamer.DotNet.Client.LSClient.OpenConnection(ConnectionInfo info, IConnectionListener listener) in c:\dev\workspace\CIAPI.CS\src\StreamingClient.Lightstreamer\Lightstreamer.dotNetClient_N2\LSClient.cs:line 202 at Lightstreamer.DotNet.Client.LSClient.<>c__DisplayClassb.<OpenConnection>b__8() in c:\dev\workspace\CIAPI.CS\src\StreamingClient.Lightstreamer\Lightstreamer.dotNetClient_N2\LSClient.cs:line 158 at Lightstreamer.DotNet.Client.LSClient.OpenConnection(ConnectionInfo info, IConnectionListener listener) in c:\dev\workspace\CIAPI.CS\src\StreamingClient.Lightstreamer\Lightstreamer.dotNetClient_N2\LSClient.cs:line 164 at CIAPI.Streaming.Lightstreamer.LightstreamerClient.Connect() in c:\dev\workspace\CIAPI.CS\src\CIAPI\Streaming\Lightstreamer\LightStreamerClient.cs:line 37 at TestAppCIAPI.FormMain.buttonStart_Click(Object sender, EventArgs ea) in E:\Users\Imran\documents\visual studio 2010\Projects\TestAppCIAPI\TestAppCIAPI\FormMain.cs:line 45 I am using Windows Vista (V6 SP2) and Version for my Visual Studio is 10.0.30319.1 Share this post Link to post
Guest mrdavidlaing Report post Posted July 26, 2013 The documentation is currently incorrect. You should be connecting to STREAMING_URI = new Uri("https://pushpreprod.cityindextest9.co.uk/STREAMINGTRADINGACCOUNT") Share this post Link to post
imran_m 0 Report post Posted August 6, 2013 I am getting exception with message {“Requested Adapter Set not available”} while I am trying to connect using Streaming Client. Here is my code private static readonly Uri RPC_URI = new Uri("https://ciapipreprod.cityindextest9.co.uk/tradingapi/"); private static readonly Uri STREAMING_URI = new Uri("https://pushpreprod.cityindextest9.co.uk/TRADINGACCOUNT"); private const string USERNAME = "XXXXXXX"; private const string PASSWORD = "password"; CIAPI.Rpc.Client rpcClient; StreamingClient.IStreamingClient streamingClient; StreamingClient.IStreamingListener<QuoteDTO> quoteListener; QuoteDTO recievedQuote = new QuoteDTO(); Queue<string> errorLogQueue = new Queue<string>(); private void buttonStart_Click(object sender, EventArgs ea) { try { rpcClient = new CIAPI.Rpc.Client(RPC_URI); rpcClient.LogIn(USERNAME, PASSWORD); streamingClient = StreamingClientFactory.CreateStreamingClient(STREAMING_URI, USERNAME, rpcClient.SessionId); streamingClient.Connect(); quoteListener = streamingClient.BuildListener<QuoteDTO>("QUOTE.ALL"); quoteListener.Start(); quoteListener.MessageRecieved += (s, quoteMessage) => { recievedQuote = quoteMessage.Data; }; } catch (Exception ex) { errorLogQueue.Enqueue(ex.Message); } } Here are Exception Details** Lightstreamer.DotNet.Client.PushUserException was caught Message=Requested Adapter Set not available Source=StreamingClient.Lightstreamer ErrorCode=2 StackTrace: at Lightstreamer.DotNet.Client.ExtConnectionListener.WaitStreamingTimeoutAnswer() in c:\dev\workspace\CIAPI.CS\src\StreamingClient.Lightstreamer\Lightstreamer.dotNetClient_N2\ExtConnectionListener.cs:line 116 at Lightstreamer.DotNet.Client.LSClient.OpenConnection(ConnectionInfo info, IConnectionListener listener) in c:\dev\workspace\CIAPI.CS\src\StreamingClient.Lightstreamer\Lightstreamer.dotNetClient_N2\LSClient.cs:line 202 at Lightstreamer.DotNet.Client.LSClient.<>c__DisplayClassb.<OpenConnection>b__8() in c:\dev\workspace\CIAPI.CS\src\StreamingClient.Lightstreamer\Lightstreamer.dotNetClient_N2\LSClient.cs:line 158 at Lightstreamer.DotNet.Client.LSClient.OpenConnection(ConnectionInfo info, IConnectionListener listener) in c:\dev\workspace\CIAPI.CS\src\StreamingClient.Lightstreamer\Lightstreamer.dotNetClient_N2\LSClient.cs:line 164 at CIAPI.Streaming.Lightstreamer.LightstreamerClient.Connect() in c:\dev\workspace\CIAPI.CS\src\CIAPI\Streaming\Lightstreamer\LightStreamerClient.cs:line 37 at TestAppCIAPI.FormMain.buttonStart_Click(Object sender, EventArgs ea) in E:\Users\Imran\documents\visual studio 2010\Projects\TestAppCIAPI\TestAppCIAPI\FormMain.cs:line 45 I am using Windows Vista (V6 SP2) and Version for my Visual Studio is 10.0.30319.1 I am working with WinForms Application using C# 4. Share this post Link to post
Guest mrdavidlaing Report post Posted August 6, 2013 The documentation is currently incorrect. You should be connecting to STREAMING_URI = new Uri("https://pushpreprod.cityindextest9.co.uk/STREAMINGTRADINGACCOUNT") (As at March 2011 ) The api calls for placing trades / quotes / orders are very new; so you are likely to bump into a lot of basic bugs. My recommendation is that for this round of testing you stick with News and Prices. Share this post Link to post