Lean
$LEAN_TAG$
|
Represents a type capable of fetching Order instances by its QC order id or by a brokerage id More...
Public Member Functions | |
Order | GetOrderById (int orderId) |
Get the order by its id More... | |
List< Order > | GetOrdersByBrokerageId (string brokerageId) |
Gets the Lean orders by its brokerage id More... | |
IEnumerable< OrderTicket > | GetOrderTickets (Func< OrderTicket, bool > filter=null) |
Gets and enumerable of OrderTicket matching the specified filter More... | |
IEnumerable< OrderTicket > | GetOpenOrderTickets (Func< OrderTicket, bool > filter=null) |
Gets and enumerable of opened OrderTicket matching the specified filter More... | |
OrderTicket | GetOrderTicket (int orderId) |
Gets the order ticket for the specified order id. Returns null if not found More... | |
IEnumerable< Order > | GetOrders (Func< Order, bool > filter=null) |
Gets all orders matching the specified filter. Specifying null will return an enumerable of all orders. More... | |
List< Order > | GetOpenOrders (Func< Order, bool > filter=null) |
Gets open orders matching the specified filter. Specifying null will return an enumerable of all open orders. More... | |
Properties | |
int | OrdersCount [get] |
Gets the current number of orders that have been processed More... | |
Represents a type capable of fetching Order instances by its QC order id or by a brokerage id
Definition at line 25 of file IOrderProvider.cs.
Order QuantConnect.Securities.IOrderProvider.GetOrderById | ( | int | orderId | ) |
Get the order by its id
orderId | Order id to fetch |
Implemented in QuantConnect.Lean.Engine.TransactionHandlers.BrokerageTransactionHandler, and QuantConnect.Securities.SecurityTransactionManager.
List<Order> QuantConnect.Securities.IOrderProvider.GetOrdersByBrokerageId | ( | string | brokerageId | ) |
Gets the Lean orders by its brokerage id
brokerageId | The brokerage id to fetch |
Implemented in QuantConnect.Lean.Engine.TransactionHandlers.BrokerageTransactionHandler, and QuantConnect.Securities.SecurityTransactionManager.
IEnumerable<OrderTicket> QuantConnect.Securities.IOrderProvider.GetOrderTickets | ( | Func< OrderTicket, bool > | filter = null | ) |
Gets and enumerable of OrderTicket matching the specified filter
filter | The filter predicate used to find the required order tickets. If null is specified then all tickets are returned |
Implemented in QuantConnect.Lean.Engine.TransactionHandlers.BrokerageTransactionHandler, and QuantConnect.Securities.SecurityTransactionManager.
IEnumerable<OrderTicket> QuantConnect.Securities.IOrderProvider.GetOpenOrderTickets | ( | Func< OrderTicket, bool > | filter = null | ) |
Gets and enumerable of opened OrderTicket matching the specified filter
filter | The filter predicate used to find the required order tickets. If null is specified then all tickets are returned |
Implemented in QuantConnect.Lean.Engine.TransactionHandlers.BrokerageTransactionHandler, and QuantConnect.Securities.SecurityTransactionManager.
OrderTicket QuantConnect.Securities.IOrderProvider.GetOrderTicket | ( | int | orderId | ) |
Gets the order ticket for the specified order id. Returns null if not found
orderId | The order's id |
Implemented in QuantConnect.Lean.Engine.TransactionHandlers.BrokerageTransactionHandler, and QuantConnect.Securities.SecurityTransactionManager.
IEnumerable<Order> QuantConnect.Securities.IOrderProvider.GetOrders | ( | Func< Order, bool > | filter = null | ) |
Gets all orders matching the specified filter. Specifying null will return an enumerable of all orders.
filter | Delegate used to filter the orders |
Implemented in QuantConnect.Lean.Engine.TransactionHandlers.BrokerageTransactionHandler, and QuantConnect.Securities.SecurityTransactionManager.
List<Order> QuantConnect.Securities.IOrderProvider.GetOpenOrders | ( | Func< Order, bool > | filter = null | ) |
Gets open orders matching the specified filter. Specifying null will return an enumerable of all open orders.
filter | Delegate used to filter the orders |
Implemented in QuantConnect.Lean.Engine.TransactionHandlers.BrokerageTransactionHandler, and QuantConnect.Securities.SecurityTransactionManager.
|
get |
Gets the current number of orders that have been processed
Definition at line 30 of file IOrderProvider.cs.