Example #1
0
        static void Main(string[] args)
        {
            try
            {
                LiquidQuoineSocketClient _socketclient = new LiquidQuoineSocketClient(new LiquidQuoineSocketClientOptions( )
                {
                    // LogVerbosity = CryptoExchange.Net.Logging.LogVerbosity.Debug,
                    // BaseAddress= "wss://tap.liquid.com/app/LiquidTapClient"
                });
                _socketclient.SubscribeToOrderBookSide("btcusd", OrderSide.Buy, onData: (enties, side, symbol) => OnData(enties, side, symbol));
                /// _socketclient.SubscribeToExecutions("btcusd", Ontrade);
                // _socketclient.Authenticate();
                //Console.WriteLine("subscrbng");
                //_socketclient.SubscribeToMyExecutions("QASHETH", Catch);



                Console.WriteLine("asdasdasd");
                Console.ReadLine();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                Console.ReadLine();
            }
        }
Example #2
0
        static void Main(string[] args)
        {
            try
            {
                //pusher.Channels.AddOrUpdate("product_cash_btcusd_1", new Channel("product_cash_btcusd_1", pusher),_=>Up(_));

                LiquidQuoineClient a = new LiquidQuoineClient(

                    new LiquidQuoineClientOptions()
                {
                });
                var t = a.GetExecutions(472, DateTime.UtcNow.AddDays(-1));

                LiquidQuoineSocketClient _socketclient = new LiquidQuoineSocketClient(new LiquidQuoineSocketClientOptions("")
                {
                    LogVerbosity = CryptoExchange.Net.Logging.LogVerbosity.Debug,
                });
                _socketclient.SubscribeToOrderBookSide("btcusd", OrderSide.Buy, OnData);
                //Console.WriteLine("subscrbng");
                //_socketclient.SubscribeToMyExecutions("QASHETH", Catch);



                Console.WriteLine("asdasdasd");
                Console.ReadLine();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                Console.ReadLine();
            }
        }