Exemple #1
0
        public void Should_Successfully_Send_BuyOrder()
        {
            var tradeClient = new TradeClient(_logger);
            var buyOrder    = new FixOrder {
                Account    = "12345678",
                SecurityId = "SampleID4567",
                Price      = 64500
            };

            bool result = tradeClient.Send(buyOrder);

            Assert.True(result);
        }
Exemple #2
0
        public void Should_Successfully_Send_SellOrder()
        {
            var tradeClient = new TradeClient(_logger);

            var sellOrder = new FixOrder {
                Account    = "87654321",
                SecurityId = "SID4567",
                Price      = 11300
            };

            bool result = tradeClient.Send(sellOrder);

            Assert.True(result);
        }