Hi, My strategy placed an order with 2 contract. One contract is filled first (PartFilled) and another contract is filled later. The OnOrderUpdate is called for both PartFilled and Filled status change. But the OnExecutionUpdate is called only for PartFilled and not called when the order Filled fully. OnExecutionUpdate will not be called on Filled status change ?
Log :
OnOrderUpdate called for PartFilled:
2024-02-29 11:15:36:378|2|16|ID1 : 2/29/2024 11:30:00 AM | OOU | order | 2/29/2024 11:15:36 AM | orderId='1095676484' account='XXXXXX' name='ID1$Long' orderState=PartFilled instrument='NQ 03-24' orderAction=Buy orderType='Stop Limit' limitPrice=18012.5 stopPrice=18012.5 quantity=2 tif=Gtc oco='' filled=1 averageFillPrice=18012.5 onBehalfOf='' id=11144 time='2024-02-29 11:15:36' gtd='2099-12-01' statementDate='2024-02-29'
OnExecutionUpdate called for PartFilled:
2024-02-29 11:15:36:379|2|16|ID1 : 2/29/2024 11:30:00 AM | OEU | execution update | 2/29/2024 11:15:36 AM | orderId='1095676484' account='XXXXXX' name='ID1$Long' orderState=PartFilled instrument='NQ 03-24' orderAction=Buy orderType='Stop Limit' limitPrice=18012.5 stopPrice=18012.5 quantity=2 tif=Gtc oco='' filled=1 averageFillPrice=18012.5 onBehalfOf='' id=11144 time='2024-02-29 11:15:36' gtd='2099-12-01' statementDate='2024-02-29'
OnOrderUpdate called for Filled:
2024-02-29 11:15:36:652|2|16|ID1 : 2/29/2024 11:30:00 AM | OOU | order | 2/29/2024 11:15:36 AM | orderId='1095676484' account='XXXXXX' name='ID1$Long' orderState=Filled instrument='NQ 03-24' orderAction=Buy orderType='Stop Limit' limitPrice=18012.5 stopPrice=18012.5 quantity=2 tif=Gtc oco='' filled=2 averageFillPrice=18012.5 onBehalfOf='' id=11144 time='2024-02-29 11:15:36' gtd='2099-12-01' statementDate='2024-02-29'
No OnExecutionUpdate is called when the order is Filled.
Comment