public void GetOrderBook_Test_Level1() { // arrange var pair = "BTCUSD"; var level = 1; // act var book = _repo.GetOrderBook(pair, level).Result; // assert Assert.NotNull(book); }
/// <summary> /// Get Current Order book /// </summary> /// <param name="pair">Trading pair</param> /// <param name="level">Request level, default = 2</param> /// <returns>ProductsOrderBookResponse object</returns> public OrderBookResponse GetOrderBook(string pair, int level = 2) { return(_repository.GetOrderBook(pair, level).Result); }