For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/institutional/cancel-all-orders-cefi.md.
Cancel all orders
Requests cancellation of every active order belonging to the authenticated client. Processed asynchronously: the gateway dispatches a cancel per order and returns 202 Accepted immediately, listing the orders a cancel was dispatched for in accepted. Per-order completion is reported on the order event stream (cancel reports), not in this response. N.B. it is still possible to receive trades on an order while it is being canceled.
JWTAuthorizationBearer <JWT>Present a True Markets-issued JWT access
token as Authorization: Bearer <token>, together with
x-truex-auth-timestamp (current Unix seconds, which guards against
replays). No request signing is required.
Obtain a token pair by exchanging a signed challenge for your
registered ES256 (EC P-256) API key at POST /v1/auth/api-key/token
(see the Auth API); the same token is issued by the standard sign-in
flows.
The token must carry a client_id claim, which scopes every request
to your CeFi client. The claim is present only once your account is
enabled for CeFi trading; a JWT without a client_id claim is
rejected with 401 Unauthorized.
x-truex-auth-timestamp*stringTimestamp when request was made in seconds since epoch. Must be no older than 15 seconds and no more than 1 second in the future. It guards against replayed requests.
Request accepted; cancellations are processed asynchronously.
application/json- response
Acknowledgement of an asynchronous cancel-all request. accepted lists the ref ids of orders a cancel was dispatched for. Per-order completion is reported on the order event stream (cancel reports), not in this response.
accepted*array<string>Ref ids of orders a cancel was dispatched for.
curl -X DELETE 'https://api.truex.co/v1/cefi/orders/all' \ -H 'x-truex-auth-timestamp: string'{ "accepted": [ "799477895858487977" ]}