Пример #1
0
        public void BtcXeAccountInformationUpdateTest()
        {
            BtcXe btcXe = new BtcXe();

            //If there is any problem connecting to the exchange, this will throw an error.
            btcXe.UpdateAvailableBalances();
        }
Пример #2
0
        public void BtcXeUpdateOrderBookTest()
        {
            BtcXe btcXe = new BtcXe();

            //If there is any problem connecting to the exchange, this will throw an error.
            btcXe.UpdateOrderBook(1);

            //This assumes that the exchange has at least 1 order on each side. Technically this can give a false negative, but it's unlikely.
            Assert.IsTrue(btcXe.OrderBook.Asks.Count == 1);
            Assert.IsTrue(btcXe.OrderBook.Bids.Count == 1);
        }