Cancel every resting order in a market

POST/api/v1/orders/cancel-allBearer

Trading APIprice E4 · size E2 · amount E6 (integers)YES | NO

202 semantics. Retrying the same request simply writes another CancelAll command and cancels down to zero orders — there is no monetary side effect, so repeat calls are safe. Idempotency keys are deliberately not accepted here (cancelling and placing are different risk classes).

Send Authorization: Bearer <token>. The token is issued by POST /api/v1/auth/verify, and expires after 24h idle or 7d after issuance.

Request body

  • marketIdstringrequired

    Id of the market whose resting orders should be cleared

    Example"mkt-0001"

Response

202Command persisted
  • cursorstring

    Read-your-writes continuation point

    Example"c1:mkt-0001:184"

  • commandIdstring

    Command identifier

    Example"cmd_01K5H2M3N7Q8R9S1"

Switch status codes in the response example to view errors. For all codes, see the Errors page.