public async Task<MarketData.OrderBook> GetOrderBook(string Pair) { PreCall(); string s = await BitxClient.GetStringAsync("orderbook?pair="+Pair); MarketData.OrderBook tmpTicker = null; Task<MarketData.OrderBook> tmp = new Task<MarketData.OrderBook>(() => { tmpTicker = JSON.JsonDeserialize<MarketData.jsonOrderBook>(s).ToOrderBook(); return tmpTicker; }); Calls.Add(new Call("OrderBook", false)); return tmpTicker; }
public static jsonOrderBook ToJsonOrderBook(OrderBook Book) { return(jsonOrderBook.FromOrderBook(Book)); }