Cancel All Open Orders
DELETE/v1/accounts/{account_id}/orders
Cancel All Open Orders
curl https://api.clearstreet.com/v1/accounts/$ACCOUNT_ID/orders \
-X DELETE \
-H "Authorization: Bearer $API_KEY"{
"data": [
{
"account_id": 19816,
"average_fill_price": "149.95",
"created_at": "2025-10-31T13:30:00.000000000Z",
"filled_quantity": "50",
"id": "019c0b48-b8fb-700d-8c5e-931d54555f54",
"instrument_id": "a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8",
"instrument_type": "COMMON_STOCK",
"leaves_quantity": "50",
"limit_price": "150.00",
"order_type": "LIMIT",
"quantity": "100",
"side": "BUY",
"status": "PENDING_CANCEL",
"stop_price": null,
"symbol": "AAPL",
"time_in_force": "DAY",
"updated_at": "2025-10-31T14:15:00.000000000Z"
},
{
"account_id": 19816,
"average_fill_price": null,
"created_at": "2025-10-31T14:00:00.000000000Z",
"filled_quantity": "0",
"id": "019c0b49-03af-70d1-8eeb-d69836c9840b",
"instrument_id": "b2b3b4b5-c2c3-d2d3-e2e3-e4e5e6e7e8e9",
"instrument_type": "COMMON_STOCK",
"leaves_quantity": "200",
"limit_price": "450.00",
"order_type": "LIMIT",
"quantity": "200",
"side": "SELL",
"status": "PENDING_CANCEL",
"stop_price": null,
"symbol": "MSFT",
"time_in_force": "DAY",
"updated_at": "2025-10-31T14:15:00.000000000Z"
}
],
"error": null,
"metadata": {
"request_id": "fb1c2d3e-4f5a-6b7c-8d9e-0f1a2b3c4d5e"
}
}{
"error": {
"code": 403,
"message": "The caller does not have permission to execute the specified operation"
},
"metadata": {
"request_id": "5518f0c6-58ff-4b4a-81a5-701556d41206"
}
}{
"error": {
"code": 404,
"message": "No orders match the specified filters"
},
"metadata": {
"request_id": "2f035fbb-68ba-42e9-8743-d3b21110b4c7"
}
}Returns Examples
{
"data": [
{
"account_id": 19816,
"average_fill_price": "149.95",
"created_at": "2025-10-31T13:30:00.000000000Z",
"filled_quantity": "50",
"id": "019c0b48-b8fb-700d-8c5e-931d54555f54",
"instrument_id": "a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8",
"instrument_type": "COMMON_STOCK",
"leaves_quantity": "50",
"limit_price": "150.00",
"order_type": "LIMIT",
"quantity": "100",
"side": "BUY",
"status": "PENDING_CANCEL",
"stop_price": null,
"symbol": "AAPL",
"time_in_force": "DAY",
"updated_at": "2025-10-31T14:15:00.000000000Z"
},
{
"account_id": 19816,
"average_fill_price": null,
"created_at": "2025-10-31T14:00:00.000000000Z",
"filled_quantity": "0",
"id": "019c0b49-03af-70d1-8eeb-d69836c9840b",
"instrument_id": "b2b3b4b5-c2c3-d2d3-e2e3-e4e5e6e7e8e9",
"instrument_type": "COMMON_STOCK",
"leaves_quantity": "200",
"limit_price": "450.00",
"order_type": "LIMIT",
"quantity": "200",
"side": "SELL",
"status": "PENDING_CANCEL",
"stop_price": null,
"symbol": "MSFT",
"time_in_force": "DAY",
"updated_at": "2025-10-31T14:15:00.000000000Z"
}
],
"error": null,
"metadata": {
"request_id": "fb1c2d3e-4f5a-6b7c-8d9e-0f1a2b3c4d5e"
}
}{
"error": {
"code": 403,
"message": "The caller does not have permission to execute the specified operation"
},
"metadata": {
"request_id": "5518f0c6-58ff-4b4a-81a5-701556d41206"
}
}{
"error": {
"code": 404,
"message": "No orders match the specified filters"
},
"metadata": {
"request_id": "2f035fbb-68ba-42e9-8743-d3b21110b4c7"
}
}