Table of Contents

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

int

EnableOrderHistory

Gets/sets whether order history will be saved.

public bool EnableOrderHistory { get; set; }

Property Value

bool

Methods

GetNextOrderId()

Returns the next valid order id.

public long GetNextOrderId()

Returns

long

GetOrderHistory()

Returns a collection containing completed orders.

public OrderCollection GetOrderHistory()

Returns

OrderCollection

GetPendingOrders()

Returns a collection of pending orders.

public OrderCollection GetPendingOrders()

Returns

OrderCollection

GetPendingOrders(string)

Returns a collection of pending orders for the specified symbol.

public OrderCollection GetPendingOrders(string symbol)

Parameters

symbol string

Returns

OrderCollection

ToString()

Returns a string representation of this object.

public override string ToString()

Returns

string