Cancel Market Orders
Cancel all pending limit orders for a specific market.
Accepts either market (condition_id) or asset_id (token_id)
as a query parameter. At least one must be provided.
D1 — wrap the body in the per-user advisory lock so a market-
scoped cancel and a concurrent place-trade for the same user
serialize at the application layer instead of contending on
accounts FOR UPDATE. See :func:_cancel_order_sync for the
full design rationale.
Authorizations
Issue from /v1/keys (or admin-issued for enterprise tier).
Headers
Your PolySimulator API key
Polymarket-CLOB-compat alias for X-API-Key (underscore form). SDK clients ported from Polymarket can authenticate without changing header names. X-API-Key takes precedence when both are provided.
PM-CLOB-compat dashed-form alias for X-API-Key. Same value semantics as POLY_API_KEY but with HTTP-conventional dash separators. Audit P1 (staging audit 2026-05-16 0817 PR #1296): the per-tier middleware accepts both spellings but the auth dependency originally only matched the underscore form — now both work end-to-end.
PM-CLOB-compat: Authorization: Bearer ps_live_... (or ps_test_...) is accepted as an alias for X-API-Key so py-clob-client and other ported SDKs authenticate without header name changes. Bearer JWTs are NOT accepted here — use the dashboard-auth endpoints for those.