post
https://api.tradier.com/v1/accounts//orders/oco
Place a one-cancels-other (OCO) order composed of two simultaneous orders. If one executes, the other is automatically canceled. Send to POST /v1/accounts/{account_id}/orders with class=oco.
Validations:
typemust be different for both legs.- If both orders are equities, the
symbolmust be the same. - If both orders are options, the
option_symbolmust be the same. - If sending
durationper leg, both orders must have the same duration.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
400Invalid request parameters or body
401Authentication required or invalid credentials
403Access denied to the requested resource
404The requested resource was not found