Example #1
0
        public static OrderRequest GetOrderRequest(int accountKey, AssetType assetType, OrderDuration duration, DateTime gtdDate, decimal limitPrice, decimal stopPrice, OrderType orderType, int quantity, string symbol, TradeAction tradeAction)
        {
            OrderRequest order = new OrderRequest
                {
                AccountKey = accountKey.ToString(),
                AssetType = assetType,
                Duration = duration,
                GTDDate = gtdDate,
                LimitPrice = limitPrice,
                OrderId = 0,
                OrderType = orderType,
                Quantity = quantity,
                Route = Route.Intelligent,
                StopPrice = stopPrice,
                Symbol = symbol,
                TradeAction = tradeAction
            };

            return order;
        }
Example #2
0
 public bool Equals(OrderRequest token)
 {
     return this == token;
 }
Example #3
0
 public bool Equals(OrderRequest token)
 {
     return(this == token);
 }