Ejemplo n.º 1
0
        public async void CanPlaceAndCancelAndOrder()
        {
            var buyOrder = NewOrder.Buy(TickerSymbol.XBTUSD, CurrencyCode.XBT, 1, 210);
            var newOrder = await _client.NewOrderAsync(_walletId, buyOrder);

            var order = await _client.GetOrderAsync(_walletId, newOrder.Id);

            await _client.CancelOrderAsync(_walletId, order.Id);

            order = await _client.GetOrderAsync(_walletId, newOrder.Id);

            Assert.AreEqual(OrderStatus.cancelled, order.Status);
        }