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); }
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"); }