Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 public static jsonOrderBook ToJsonOrderBook(OrderBook Book)
 {
     return(jsonOrderBook.FromOrderBook(Book));
 }