OrdersCollection
class
Represents a collection of all orders.
Properties
Count int | Returns number of all open orders. |
SLTPCount int | Return number of all open Stop Loss and Take Profit orders. |
Methods
CancelAll () Return: bool | Cancel all orders. Returns an indication whether the orders are canceled successfully. |
CancelAllByAccount (Account account) Return: bool | Cancel all orders by specified account. Returns an indication whether the orders are canceled successfully. |
GetOrderById (string orderId) Return: Order | Returns an Order that represents the access to order objects specifiedby by order ID. |
GetOrders (bool addSLTP) Return: Order[] | Gets a collection of all opening orders. Access to the orders can be obtained by index. |
GetRemoveOrderById (string orderId) Return: Order | Returns a executed or canceled Order that represents a access to order objects specified by order ID. |
Send (NewOrderRequest request) Return: string | Sends trading order. |
SendAsync (NewOrderRequest request, Action<string> callback) Return: bool | Sends trading order asynchronously. |
Events
OrderAdded | The event at which the new order was placed. |
OrderExecuted | Occurs when the order was executed. |
OrderRemoved | The event at which the order was removed. |