public method OrdersBatchAut.Execute, ExecuteAsync
Brief
Executes a batch of requests to create, change or delete orders. Allows creating entry orders and linking them to an OCO order at a time.
Declaration | ||||
|
||||
|
||||
|
||||
|
Parameters | |
Result |
[output] Returns a collection of |
OCOId |
[output] Returns the identifier of the OCO order in case the
|
psBatchId |
[output]An object that contains the identifier of the batch as string. |
psRequestIDList |
[output] An object of the |
Details
The method may be executed successfully for some of the orders and may fail for others.
In this case the method doesn't fail. Information about failed and successfully executed operations can be retrieved from the output parameter Result
.
There are the following restrictions for requests in a batch:
ChangeTradeStopLimit
. These requests can be included either in the "create" or "change" batch depending on the trade operation they perform.You can also create a number of entry orders or ELS orders (with an entry order as a primary order) and link them in an OCO order at a time.
Note that the batch must include requests either to create entry orders or to create ELS orders.
To create and link orders in an OCO order at a time, you must set the
OrdersBatchAut.JoinOCO
property to True
.
The Execute
and ExecuteAsync
methods are defined in the OrdersBatchAut
class.