v1

latestOpenAPI 3.0.02026-07-26166415635.8 KB
Trading

Do 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.

post/v1/trading/accounts/{account_id}/positions/{symbol_or_contract_id}/do-not-exercise

Path parameters

account_idstring uuid required

Account identifier.

symbol_or_contract_idstring uuid required

Option contract symbol or ID.

Request body

DoNotExerciseRequest required

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

DoNotExerciseResponse required

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.