public method IO2GOrderTableRow.getAmount

Brief

Gets the amount of the order.

Declaration
C++
virtual int  getAmount () = 0

Details

In case of FX instruments, the returned value is expressed in the instrument base currency.
In case of CFD instruments, the returned value is expressed in contracts.

If the order is filled completely on the first attempt or rejected outright, the returned value reflects the initial amount of the order.
If the order is filled completely in several portions, the returned value reflects the amount of the last filled portion.
If the order is filled partially, the returned value reflects the remaining amount to be filled.
If the order is partially rejected, the returned value reflects the rejected (unfilled) amount.
If the entire order is awaiting execution, the returned value reflects the initial amount of the order.

Regardless of the order direction (buy or sell), the method returns a positive value.
In case of the IF-THEN order, the method returns 0.

Declared in IO2GOrderRow

back