Auto Cancel Stop Loss

Using the DOM, can I put in a stop loss order and have it auto cancel when filling with a market order to my close position?