Cancel all open orders
Cancel every resting order on the account. Requires a read_write key.
DELETE
/api/v1/orders/allResponses
Section titled “Responses”| Status | Description | Schema |
|---|---|---|
200 |
Success | object |
400 |
A parameter was missing or invalid. | Error |
401 |
Missing, malformed or unrecognized signature, or a timestamp outside the 30-second window. Body: {“error”:“Missing or invalid API key credentials”} | Error |
403 |
This API key does not have write access. The account behind this key is not active, for example it is pending approval or suspended. Body: {“error”:“Your account is suspended. Contact support.”}, the message naming the account’s status. | Error |
422 |
The cancel was refused, for example by the location check or because the order can no longer be cancelled. The body’s error says why. |
Error |
Example
Section titled “Example”Request:
curl --request DELETE \ --url 'https://demo.stxapp.io/api/v1/orders/all' \ --header 'X-STX-ACCESS-KEY: <key-id>' \ --header 'X-STX-ACCESS-TIMESTAMP: <unix-ms>' \ --header 'X-STX-ACCESS-SIGNATURE: <base64-ed25519>'Response 200:
{ "cancellations": [ { "order_id": "4702e9b6-211a-4805-a605-0eb0817ee9b3", "status": "partially_cancelled" } ]}Response fields
Section titled “Response fields”| Field | Type | Description |
|---|---|---|
order_id |
uuid | The order this outcome relates to. |
status |
string | The order status after cancelling, or a reason it was not cancelled, such as “Order not found” for an unknown id. |
Docs version v1.10.5

