com.dukascopy.api
Interface ICloseOrder

All Superinterfaces:
java.lang.Comparable<IPartialOrder>, IPartialOrder

public interface ICloseOrder
extends IPartialOrder

Contains partial order data when order was partially or fully closed by server, respectively.
Order's lifecycle contains from 0 to many elements of this data.


Method Summary
 double getAmount()
          Returns amount of the closed part.
 double getPrice()
          Returns price at which order was fully or partially closed by server.
 long getTime()
          Returns time when order was fully or partially closed by server.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getTime

long getTime()
Returns time when order was fully or partially closed by server.

Specified by:
getTime in interface IPartialOrder
Returns:
time when order was closed (partially or fully)

getPrice

double getPrice()
Returns price at which order was fully or partially closed by server.

Specified by:
getPrice in interface IPartialOrder
Returns:
price at which order was closed (partially or fully)

getAmount

double getAmount()
Returns amount of the closed part.

Specified by:
getAmount in interface IPartialOrder
Returns:
closed amount.