For example, I want to submit a buy-stop-limit order at a particular price for 2 futures contracts. If 1 contract gets filled and then the market moves away from my stop limit price, I want to continue the trade with my existing order, but I want to cancel the buy stop limit order for 1 more contract.
Is there a code example to do this?

Comment