Пример #1
0
		public async void CanGetRecentTrades()
		{
			var itBit = new MarketClient();
			var trades = await itBit.GetRecentTradesAsync(TickerSymbol.XBTUSD);
			Assert.IsNotNull(trades);
			Assert.IsTrue(trades.Trades.Any());
		}
Пример #2
0
		public async void CanGetTickers()
		{
			var itBit = new MarketClient();
			var ticker = await itBit.GetTickerAsync(TickerSymbol.XBTUSD);
			Assert.IsNotNull(ticker);
			Assert.AreEqual(TickerSymbol.XBTUSD, ticker.Pair);
		}
Пример #3
0
		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());
		}