public method IO2GOrderTableRow.getTradeID
Brief
Gets the unique identification number of the position to be opened/closed by the order.
Declaration | ||||
|
Details
The returned value is unique within the same database that stores the account the position can be opened or closed on.
For example, MINIDEMO
or U100D1
.
The uniqueness of the position itself is ensured by the combination of the database ID and the returned value of this method.
In case the opening order is filled partially, the returned value changes with every partial fill.
Likewise, the returned value changes if the order closes a particular position and is filled partially.
In some cases, the returned value does not refer to any particular position. Such cases are:
The order is placed as a Net Amount order.
The order is placed to close positions under the following conditions:
- the order is placed on the account whit hedging not allowed (see MaintenanceType
field in the Accounts table);
- the order trade operation direction (buy or sell) is opposite to the positions trade operation direction.
Declared in IO2GOrderRow