> For the complete documentation index, see [llms.txt](https://docs.deltadefi.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.deltadefi.io/start-trading/developers/api-documentation/order/build-cancel-all-order-transaction.md).

# Cancel all Order

Cancel all open orders for a given symbol. This endpoint directly cancels all orders without requiring a separate build/submit step.

## Cancel all orders

> Cancel all open orders for a given symbol

```json
{"openapi":"3.1.1","info":{"title":"Espresso API Server","version":"1.0"},"paths":{"/order/cancel-all":{"post":{"description":"Cancel all open orders for a given symbol","tags":["order"],"summary":"Cancel all orders","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/espresso_internal_api_response.CancelAllOrdersResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/espresso_internal_api_response.ErrorJSONWithCodeResponse"}}}},"404":{"description":"Order Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/espresso_internal_api_response.ErrorJSONWithCodeResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/espresso_internal_api_response.ErrorJSONWithCodeResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/espresso_internal_api_response.ErrorJSONWithCodeResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/espresso_internal_api_requests.CancelAllOrdersRequest"}}},"description":"Cancel all orders request","required":true}}}},"components":{"schemas":{"espresso_internal_api_response.CancelAllOrdersResponse":{"type":"object","properties":{"order_ids":{"type":"array","items":{"type":"string"}},"symbol":{"type":"string"}}},"espresso_internal_api_response.ErrorJSONWithCodeResponse":{"type":"object","properties":{"code":{"type":"integer"},"error":{"type":"string"}}},"espresso_internal_api_requests.CancelAllOrdersRequest":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string"}}}}}}
```
