jason ho 22 Report post Posted July 18, 2013 topic: “PRICES.PRICE.{xyz}”,“PRICES.PRICE.GBP”,“PRICES.PRICE.{71442}”,“PRICES.PRICE.71442” 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); streamingClient.Connect(); var priceListener = streamingClient.BuildListener<PriceDTO>("PRICES.PRICE.{xyz}"); priceListener.Start(); Share this post Link to post
Guest mrdavidlaing Report post Posted July 26, 2013 Good idea. I’ve logged this as https://github.com/cityindex/CIAPI.CS/issues/12 Share this post Link to post