v1
latestOpenAPI 3.0.02026-07-26166415635.8 KBDo Not Exercise an Options Position
This endpoint enables users to submit a do-not-exercise (DNE) instruction for a held option contract, preventing automatic exercise at expiry. By default, Alpaca will automatically exercise in-the-money (ITM) contracts at expiry. This endpoint allows users to override that behavior. DNE requests will be processed immediately once received. DNE requests submitted between market close and midnight will be rejected to avoid any confusion about when the instruction will take effect. To cancel a DNE request or to submit an exercise instruction, please contact our support team.
Path parameters
Account identifier.
Option contract symbol or ID.
Request body
Request to submit a do-not-exercise (DNE) instruction for an option contract for an account. The request body is empty. A successful request will mark the entire position as do not exercise.
Response
Successful Response
Response to a do-not-exercise request. A 200 response indicates that the entire position is set as do not exercise. The response body is empty.