Пример #1
0
 public void Init(Wallet w, SequenceEnsureMode seqEnsureMode)
 {
     _wallet                 = w;
     _httpClient             = new HTTPClient(w.Env.Network);
     this.sequenceEnsureMode = seqEnsureMode;
     BroadcastLockObject     = new object();
     _ws      = new Websockets.WebsocketClient(w.Env.Network);
     _rtBooks = new RealtimeOrderBookHandler(_httpClient, _ws);
 }
Пример #2
0
        private static void RealtimeOrderBook()
        {
            Client client = new Client(privateKey, Network.Test);

            realtimebooks = new RealtimeOrderBookHandler(client.HTTP, client.Websockets);
            realtimebooks.Subscribe("000-EF6_BNB");
            realtimebooks.BooksForSymbols["000-EF6_BNB"].OnOrderbookUpdated += Program_OnOrderbookUpdated;
            Console.WriteLine("Orderbook set up successfully");
        }