I got multiple messages "unable to match order state to execution" when an order is executed by 3 partill filles. When i have an order completely filled by one execution, i did not get such message.
The codes involing checking order state and execution are pasted below. Can anyone she some light on which ones are likely produce such message with partial fills?
if (entryOrder != null && entryOrder.Token == execution.Order.Token)
if (execution.Order.OrderState == OrderState.Filled || execution.Order.OrderState == OrderState.PartFilled || (execution.Order.OrderState == OrderState.Cancelled && execution.Order.Filled > 0))
Comment