Example #1
0
        public void PlaceLimitOrder(OrderActions action, double quantity, double price)
        {
            if (tickerContract == null || price <= 0)
            {
                return;
            }

            Order order = OrderFactory.CreateLimitOrder(action, quantity, price);

            order.Account = TradedAccount;
            clientSocket.placeOrder(nextValidOrderId++, tickerContract, order);
        }