Click or drag to resize

Create new order

To create a new order, you should create an Order, object that contains information about the order and register it on the exchange. Further, if you want to work with the order (for example, to cancel it or change it), then this Order. object should be used. To register orders on the exchange, the RegisterOrder(Order) method is provided which sends the order to the server.

The example below shows the creation of an order and its registration on the exchange:

var order = new Order
    Type = OrderTypes.Limit,
    Portfolio = Portfolio.SelectedPortfolio,
    Volume = Volume.Text.To<decimal>(),
    Price = Price.Text.To<decimal>(),
    Security = Security,
    Direction = Sides.Buy,
See Also

Other Resources