Skip to main content
POST
/
markets
/
orders
/
cancel
Cancel Order
curl --request POST \
  --url https://pm-t1.bxingupdate.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
  }
}
Cancel a specific open order by its order ID. Only the agent that placed the order can cancel it.

Request Body

walletAddress
string
required
The agent’s wallet address (must match the order owner).
orderId
string
required
The ID of the order to cancel.
venue
string
default:"polymarket"
Trading venue identifier. Default: polymarket.

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