Closed KaiserSozo closed 6 years ago
Hello!
Here is part of code from WPF app:
BitfinexWebsocketCommunicator communicator = new BitfinexWebsocketCommunicator(BitfinexValues.ApiWebsocketUrl); bitfinexAPI = new BitfinexWebsocketClient(communicator); ticksProcess = TickerProcess; bitfinexAPI.Streams.TickerStream.Subscribe(ticksProcess); bitfinexAPI.Send(new TickerSubscribeRequest("BTC/USD")); communicator.Start().Wait(); bitfinexAPI.Authenticate(apiKey, apiSecret);
communicator.Start().Wait(); never returns Only The thread 0x4568 has exited with code 0 (0x0). in OUTput
Because in MainWindow
Hello!
Here is part of code from WPF app:
BitfinexWebsocketCommunicator communicator = new BitfinexWebsocketCommunicator(BitfinexValues.ApiWebsocketUrl); bitfinexAPI = new BitfinexWebsocketClient(communicator); ticksProcess = TickerProcess; bitfinexAPI.Streams.TickerStream.Subscribe(ticksProcess); bitfinexAPI.Send(new TickerSubscribeRequest("BTC/USD")); communicator.Start().Wait(); bitfinexAPI.Authenticate(apiKey, apiSecret);