//Limit Order
var _limitOrderId = LimitOrder(equity.EquitySymbol, quantity, equity.Price);
equity.LimitOrder = (Orders.LimitOrder)Transactions.GetOrderById(_limitOrderId);

How does one add the 'TimeInForce' property to a limit order. Lean has brokerage-specific methods but is there a generic method? Also, assuming the order is placed how would you get the quantity placed if you use TimeInForce.ImmediateOrCancel as it will execute and fill what you request but then cancel the remaining if there is a partial fill

Author