Submit()

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Add On > Account >

Submit()

Previous page Return to chapter overview Next page

Definition

Submits specified Order object(s).

 

Syntax

Submit(IEnumerable<Order> orders)

 

Parameters

orders

Order(s) to submit

 

 

 

Examples

ns


Order stopOrder = null;

stopOrder = myAccount.CreateOrder(myInstrument, OrderAction.Sell, OrderType.StopMarket, TimeInForce.Day, 1, 0, 1400, "myOCO", "stopOrder", null);

 

myAccount.Submit(new[] { stopOrder });