コード例 #1
0
ファイル: TradeService.cs プロジェクト: rlamgit/tws-cli
        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);
        }