Class OrderHandler
- Namespace
- Balsam
- Assembly
- Balsam.Backtester.dll
Provides order handling and tracking.
public class OrderHandler
- Inheritance
-
OrderHandler
- Inherited Members
- Extension Methods
Constructors
OrderHandler()
Instantiates new order handler;
public OrderHandler()
OrderHandler(int)
Instantiates new order handler using the specified order id. The next order id returned will be one greater than this value.
public OrderHandler(int lastValidOrderId)
Parameters
lastValidOrderId
int
Properties
Count
Gets the number of pending orders.
public int Count { get; }
Property Value
EnableOrderHistory
Gets/sets whether order history will be saved.
public bool EnableOrderHistory { get; set; }
Property Value
Methods
GetNextOrderId()
Returns the next valid order id.
public long GetNextOrderId()
Returns
GetOrderHistory()
Returns a collection containing completed orders.
public OrderCollection GetOrderHistory()
Returns
GetPendingOrders()
Returns a collection of pending orders.
public OrderCollection GetPendingOrders()
Returns
GetPendingOrders(string)
Returns a collection of pending orders for the specified symbol.
public OrderCollection GetPendingOrders(string symbol)
Parameters
symbol
string
Returns
ToString()
Returns a string representation of this object.
public override string ToString()