public static Order CreateLimitOrder(OrderActions action, double quantity, double limitPrice) { return(new Order() { Action = action.ToString(), TotalQuantity = quantity, LmtPrice = limitPrice, OrderType = OrderTypes.LMT.ToString(), Tif = TimeInForce.GTC.ToString(), Transmit = true, OutsideRth = true }); }