Skip to main content
POST
/
api
/
{exchange}
/
cancelOrder
import pmxt

# Runs locally — never proxied through PMXT servers
exchange = pmxt.Polymarket(
    api_key="YOUR_API_KEY",
    api_secret="YOUR_API_SECRET",
    passphrase="YOUR_PASSPHRASE",
    private_key="YOUR_PRIVATE_KEY",
    proxy_address="YOUR_PROXY_ADDRESS",
    signature_type="gnosis-safe",
)
result = exchange.cancel_order(order_id="ord-001")
{
  "success": true,
  "error": {
    "message": "<string>"
  },
  "data": {
    "id": "<string>",
    "marketId": "<string>",
    "outcomeId": "<string>",
    "side": "buy",
    "type": "market",
    "amount": 123,
    "status": "pending",
    "filled": 123,
    "remaining": 123,
    "timestamp": 123,
    "price": 123,
    "fee": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://pmxt.dev/docs/llms.txt

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

Path Parameters

exchange
enum<string>
required

The prediction market exchange to target.

Available options:
polymarket,
kalshi,
kalshi-demo,
limitless,
probable,
baozi,
myriad,
opinion,
metaculus,
smarkets,
polymarket_us,
router

Body

application/json
args
string[]
required
Required array length: 1 element
credentials
object

Optional authentication credentials for exchange operations.

Response

200 - application/json

Cancel Order response

success
boolean
Example:

true

error
object
data
object