Example #1
0
        public async Task <bool> BinanceSocket()
        {
            var binanceStreamTick = new Binance.Net.Objects.BinanceStreamTick();

            using (var client = new BinanceSocketClient())
            {
                var success = client.SubscribeToSymbolTickerAsync("LSKBTC", data => { binanceStreamTick = data; });
                success.Start();
                var result = success.Result;
                await client.UnsubscribeAll();
            }
            return(true);
        }