示例#1
0
 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;
 }
示例#2
0
 public static jsonOrderBook ToJsonOrderBook(OrderBook Book)
 {
     return(jsonOrderBook.FromOrderBook(Book));
 }