public void FetchQuoteTest() { var content = @"{ ""buy_price_levels"": [ [""416.23000"", ""1.75000""] ], ""sell_price_levels"": [ [""416.47000"", ""0.28675""] ] }"; SetupRestMock <Depth>(content); var ba = new BrokerAdapter(_restClient.Object, _configStore.Object); var quotes = ba.FetchQuotes(); var ask = quotes.First(x => x.Side == QuoteSide.Ask); var bid = quotes.First(x => x.Side == QuoteSide.Bid); Assert.AreEqual(bid.Price, 416.23m); Assert.AreEqual(bid.Volume, 1.75m); Assert.AreEqual(ask.Price, 416.47m); Assert.AreEqual(ask.Volume, 0.28675m); }
public void HpxFetchQuoteTest() { var ba = new BrokerAdapter(_restClient.Object, _configStore.Object); var quotes = ba.FetchQuotes(); }