public async void CanGetRecentTrades() { var itBit = new MarketClient(); var trades = await itBit.GetRecentTradesAsync(TickerSymbol.XBTUSD); Assert.IsNotNull(trades); Assert.IsTrue(trades.Trades.Any()); }
public async void CanGetTickers() { var itBit = new MarketClient(); var ticker = await itBit.GetTickerAsync(TickerSymbol.XBTUSD); Assert.IsNotNull(ticker); Assert.AreEqual(TickerSymbol.XBTUSD, ticker.Pair); }
public async void CanGetOrderBook() { var itBit = new MarketClient(); var orderBook = await itBit.GetOrderBookAsync(TickerSymbol.XBTUSD); Assert.IsNotNull(orderBook); Assert.IsTrue(orderBook.Asks.Any()); Assert.IsTrue(orderBook.Bids.Any()); }