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": "47.95",
"client_order_id": "my-ref-id-20251031-001",
"created_at": "2025-10-31T13:30:00.000000000Z",
"filled_quantity": "5",
"id": "019c0b48-b8fb-700d-8c5e-931d54555f54",
"instrument_id": "d4d5d6d7-e4e5-f4f5-a4a5-a6a7a8a9aaab",
"instrument_type": "COMMON_STOCK",
"leaves_quantity": "5",
"limit_price": "48.00",
"order_type": "LIMIT",
"quantity": "10",
"side": "BUY",
"status": "PENDING_CANCEL",
"stop_price": null,
"symbol": "TSLA",
"time_in_force": "DAY",
"updated_at": "2025-10-31T14:15:00.000000000Z",
"venue": "XNAS"
},
{
"account_id": 19816,
"client_order_id": "my-ref-id-20251031-002",
"created_at": "2025-10-31T14:00:00.000000000Z",
"filled_quantity": "0",
"id": "019c0b49-03af-70d1-8eeb-d69836c9840b",
"instrument_id": "d4d5d6d7-e4e5-f4f5-a4a5-a6a7a8a9aaab",
"instrument_type": "COMMON_STOCK",
"leaves_quantity": "5",
"order_type": "STOP",
"quantity": "5",
"side": "SELL",
"status": "PENDING_CANCEL",
"stop_price": "47.00",
"symbol": "TSLA",
"time_in_force": "DAY",
"updated_at": "2025-10-31T14:15:00.000000000Z",
"venue": "XNAS"
}
],
"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": "47.95",
"client_order_id": "my-ref-id-20251031-001",
"created_at": "2025-10-31T13:30:00.000000000Z",
"filled_quantity": "5",
"id": "019c0b48-b8fb-700d-8c5e-931d54555f54",
"instrument_id": "d4d5d6d7-e4e5-f4f5-a4a5-a6a7a8a9aaab",
"instrument_type": "COMMON_STOCK",
"leaves_quantity": "5",
"limit_price": "48.00",
"order_type": "LIMIT",
"quantity": "10",
"side": "BUY",
"status": "PENDING_CANCEL",
"stop_price": null,
"symbol": "TSLA",
"time_in_force": "DAY",
"updated_at": "2025-10-31T14:15:00.000000000Z",
"venue": "XNAS"
},
{
"account_id": 19816,
"client_order_id": "my-ref-id-20251031-002",
"created_at": "2025-10-31T14:00:00.000000000Z",
"filled_quantity": "0",
"id": "019c0b49-03af-70d1-8eeb-d69836c9840b",
"instrument_id": "d4d5d6d7-e4e5-f4f5-a4a5-a6a7a8a9aaab",
"instrument_type": "COMMON_STOCK",
"leaves_quantity": "5",
"order_type": "STOP",
"quantity": "5",
"side": "SELL",
"status": "PENDING_CANCEL",
"stop_price": "47.00",
"symbol": "TSLA",
"time_in_force": "DAY",
"updated_at": "2025-10-31T14:15:00.000000000Z",
"venue": "XNAS"
}
],
"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"
}
}