Jump to content
Sign in to follow this  
jason ho

Why BuildListener on StreamingClientFactory does not return errors for unknown data?

Recommended Posts


I would expect some exception thrown if it could not find the topic to subscribe to – else how do we check if the topic is the one we believe we want to be subscribing to e.g. GBP/USD for example…

 //First we need a valid session, obtained from the Rpc client
        var ctx = new CIAPI.Rpc.Client(RPC_URI);
        ctx.LogIn(USERNAME, PASSWORD);

        //Next we create a connection to the streaming api, using the authenticated session
        //You application should only ever have one of these            
        var streamingClient = StreamingClientFactory.CreateStreamingClient(STREAMING_URI, USERNAME, ctx.SessionId);

        var priceListener = streamingClient.BuildListener<PriceDTO>("PRICES.PRICE.{xyz}");

Share this post

Link to post

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
Sign in to follow this