Just once again came across these two methods and once again catched myself with the thought that I do not understand difference between them.
Can someone explain?
Here is the self-documentation from API Java file
/**
* Returns original constant amount of the order. The value is set on order submit and cannot be changed later.
* @see IEngine#submitOrder(String, Instrument, com.dukascopy.api.IEngine.OrderCommand, double)
*
* @return original amount of the order
*/
double getOriginalAmount();
/**
* Returns requested amount
*
* @return amount requested
*/
double getRequestedAmount();
There is one more 'amount' whose meaning seems to be clear.
/**
* Returns amount of the order. For orders in {@link State#OPENED} state returns amount requested. For orders in {@link State#FILLED}
* state will return filled amount. Filled amount can be different from requested amount (partial fill).
*
* @return amount of the order
*/
double getAmount();