Skip to main content
DELETE
/
v1
/
orders
/
{order_id}
Cancel Order
curl --request DELETE \
  --url https://api.polysimulator.com/v1/orders/{order_id} \
  --header 'X-API-Key: <api-key>'
{
  "order_id": 123,
  "status": "<string>",
  "order_type": "<string>",
  "side": "<string>",
  "outcome": "<string>",
  "price": "<string>",
  "quantity": "<string>",
  "notional": "<string>",
  "fee": "<string>",
  "filled_at": "<string>",
  "cancelled_reason": "<string>",
  "price_source": "<string>",
  "slippage_bps": 123,
  "quote_age_ms": 123,
  "spread_bps": 123,
  "impact_bps": 123,
  "book_walk_levels": 123,
  "account_balance": "<string>",
  "position": {},
  "client_order_id": "<string>",
  "error": "<string>",
  "error_message": "<string>",
  "amount_interpreted_as": "<string>",
  "is_replay": true,
  "warnings": [
    "<string>"
  ]
}

Authorizations

X-API-Key
string
header
required

Issue from /v1/keys (or admin-issued for enterprise tier).

Headers

X-API-Key
string | null

Your PolySimulator API key

POLY_API_KEY
string | null

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.

Poly-API-Key
string | null

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.

authorization
string | null

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.

Path Parameters

order_id
integer
required

Response

Successful Response

order_id
integer
required
status
string
required
order_type
string
required
side
string
required
outcome
string
required
price
string
required
quantity
string
required
notional
string
required
fee
string
required
filled_at
string | null
cancelled_reason
string | null
price_source
string | null
slippage_bps
integer | null
quote_age_ms
integer | null
spread_bps
integer | null
impact_bps
integer | null
book_walk_levels
integer | null
account_balance
string | null
position
Position · object
client_order_id
string | null
error
string | null
error_message
string | null
amount_interpreted_as
string | null
is_replay
boolean | null
warnings
string[] | null