maxrolo wrote:
How can I trigger a partial fill?
Currently on DEMO, given that the margin is sufficient, all orders get filled at full - it is not possible to trigger partial fill.
maxrolo wrote:
which order will engine.getOrder(Label) retreive if the order was filled in 2 parts?
It will be the same order. Also the status in case of full and partial fill is the same - FILLED. The difference is that for partially filled orders
IOrder.getAmount() < IOrder.getRequestedAmount(). If you want to cancel the unfilled.
See more in wiki
https://www.dukascopy.com/wiki/:
order workflow - Strategy API/Orders/Overiew/Conditional order states diagram
cancelling unfilled part - Strategy API/Orders/Immediate Or Cancel order