POST
Cancel an order

Authorizations

Authorization
string
header
required

The authorization field takes the session bearer returned by sign-in, or an API key where the route allows keys. Paste the token itself into the authorization field.

Headers

Idempotency-Key
string
required
Minimum string length: 1

Path Parameters

orderId
string
required
Minimum string length: 1

Body

application/json
accountId
string
required
Minimum string length: 1
marketId
string
required
Minimum string length: 1

Response

Accepted for processing

version
string
required
Allowed value: "external-order/v1"
orderId
string
required
Minimum string length: 1
accountId
string
required
Minimum string length: 1
marketId
string
required
Minimum string length: 1
status
enum<string>
required
Available options:
open,
partially_filled,
filled,
canceled,
replaced
lastSequence
integer
required
Required range: x >= 0
idempotencyKey
string
required
Minimum string length: 1
cancelReason
enum<string>
Available options:
margin_unbacked,
risk_evidence_incomplete,
market_session_closed,
reduce_only_position_unavailable