maxrolo wrote:
if say an order was placed for 10 lots and 5 get filled at one price and 5 at another, it will still be 1 big order?
Yes.
maxrolo wrote:
impossible. at which price?
At weighted average price (e.g. 0.2 fills for 1.5 and 0.8 fills for 1.4,
IOrder.getPrice()=0.2*1.5 + 0.8*1.4=1.42).
maxrolo wrote:
Another scenario. close order at market. 5 get filled at 1 price and 5 at another, how will this work?
After partial close, the order remains filled, but with different amount. See diagram:
https://www.dukascopy.com/wiki/#Orders_o ... es_diagramAccording to
https://www.dukascopy.com/wiki/#Close_Orders In case of partial close:
IOrder.getClosePrice() - price of the last partial close.
IOrder.getCloseTime() - time of last partial close.
order.getState() = FILLED while the order has not been closed completely.