Cancel Open Order
$ clear-street v1:orders cancel-open-order
DELETE/v1/accounts/{account_id}/orders/{order_id}
Cancel Open Order
clear-street v1:orders cancel-open-order \
--api-key 'My API Key' \
--account-id 0 \
--order-id order_id{
"data": {
"account_id": 19816,
"average_fill_price": "149.95",
"created_at": "2025-10-31T13:30:00.000000000Z",
"filled_quantity": "50",
"id": "my-ref-id-20251001-001",
"instrument_id": "a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8",
"instrument_type": "COMMON_STOCK",
"leaves_quantity": "50",
"limit_price": "150.50",
"order_type": "LIMIT",
"quantity": "125",
"side": "BUY",
"status": "PENDING_CANCEL",
"stop_price": null,
"symbol": "AAPL",
"time_in_force": "DAY",
"updated_at": "2025-10-31T14:15:00.000000000Z"
},
"error": null,
"metadata": {
"request_id": "2e3f4a5b-6c7d-8e9f-0a1b-2c3d4e5f6a7b"
}
}{
"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": "Order d40a92e6-381f-4803-b292-56d350d9d54a not found for account 100001"
},
"metadata": {
"request_id": "70151ee4-5209-4c75-9372-dffc0a6ebade"
}
}Returns Examples
{
"data": {
"account_id": 19816,
"average_fill_price": "149.95",
"created_at": "2025-10-31T13:30:00.000000000Z",
"filled_quantity": "50",
"id": "my-ref-id-20251001-001",
"instrument_id": "a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8",
"instrument_type": "COMMON_STOCK",
"leaves_quantity": "50",
"limit_price": "150.50",
"order_type": "LIMIT",
"quantity": "125",
"side": "BUY",
"status": "PENDING_CANCEL",
"stop_price": null,
"symbol": "AAPL",
"time_in_force": "DAY",
"updated_at": "2025-10-31T14:15:00.000000000Z"
},
"error": null,
"metadata": {
"request_id": "2e3f4a5b-6c7d-8e9f-0a1b-2c3d4e5f6a7b"
}
}{
"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": "Order d40a92e6-381f-4803-b292-56d350d9d54a not found for account 100001"
},
"metadata": {
"request_id": "70151ee4-5209-4c75-9372-dffc0a6ebade"
}
}