Skip to main content
POST
/
markets
/
orders
/
cancel
Cancel Order
curl --request POST \
  --url https://www.aionmarket.com/bvapi/markets/orders/cancel \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "orderId": "<string>",
  "venue": "polymarket",
  "walletAddress": "<string>"
}
'
{
  "code": 200,
  "message": "success",
  "data": {
    "canceled": [
      "<string>"
    ],
    "notCanceled": {},
    "syncedToMkOrder": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.aionmarket.com/llms.txt

Use this file to discover all available pages before exploring further.

Cancel a specific open order by its order ID (order hash). The server calls Polymarket /cancel and updates mk_order.order_status to 3 (canceled).

Request Body

orderId
string
required
Order ID to cancel (order hash). Max 100 chars.
venue
string
default:"polymarket"
Trading venue identifier. Default: polymarket.
walletAddress
string
Optional wallet address (0x-prefixed, 40 hex chars). Required only when the current user has multiple active wallet credentials.

Response

data
object
Cancel result.

Authorizations

Authorization
string
header
default:YOUR_API_KEY
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
orderId
string
required

Order ID to cancel (order hash)

Maximum string length: 100
venue
string
default:polymarket

Trading venue (default: polymarket)

Maximum string length: 50
walletAddress
string

Wallet address for multi-wallet scenarios (0x-prefixed, 40 hex chars)

Pattern: ^0x[a-fA-F0-9]{40}$

Response

200 - application/json

Cancellation accepted

code
integer
Example:

200

message
string
Example:

"success"

data
object