If the order is partially filled (for example 20 contracts) and price moved beyond some price,
1. I want to cancel the order for 80 quantity.
2. I want to place PT and Stop Loss order for partially filled order until the price move beyond my price limit. This is where OnExecutionUpdate triggered multiple time with OrderState.PartFilled.
Please provide some sample or code / api reference for above 2 requirement.

Comment