public method ClosedPosition.getAmountGets the amount of the closed position
Declaration
protojavascriptjavacsharppublic getAmount() : int
Returns
The method returns an integer that represents the amount of the closed position
In the case of FX instruments, it is expressed in the base currency of the instrument. In the case of CFD instruments, it is expressed in contracts.
Declared in ClosedPosition