Hello, I have question about partially closed orders.
If there is no enough liquidity, order can be closed partially only.
Also it is possible close order partially deliberately.
Is is possible detect if partially close was deliberately by user or by system because ie. not enough liquidity?
From code bellow I don't know by which situation was order partially closed.
Thank you.
if (message.getType() == IMessage.Type.ORDER_CLOSE_OK)
if( order.getState() == FILLED )
// "partially closed"
;