Skip to main content
POST
/
v2
/
clob
/
orders
/
{orderId}
/
cancel
curl -X POST https://api.pmx.trade/v2/clob/orders/b2c3d4e5-.../cancel \
  -H "Content-Type: application/json" \
  -d '{
    "pubkey": "7xKXabc123...",
    "signature": "base64CancelSignature..."
  }'
{
  "success": true
}
Cancels an order and releases any committed collateral or tokens back to your available balance. Requires an Ed25519 signature to prove ownership.

Path parameters

orderId
string
required
The order UUID to cancel.

Request body

pubkey
string
required
The Solana wallet public key (base58-encoded). Must match the order owner.
signature
string
required
Ed25519 signature of the cancel message PMX Cancel:<orderId>, base64-encoded.

Cancel Signing Format

Sign the following string with your wallet’s Ed25519 key:
PMX Cancel:<orderId>
For example, for order b2c3d4e5-1234-5678-abcd-ef0123456789:
PMX Cancel:b2c3d4e5-1234-5678-abcd-ef0123456789

Response

success
boolean
true if the order was successfully cancelled.
curl -X POST https://api.pmx.trade/v2/clob/orders/b2c3d4e5-.../cancel \
  -H "Content-Type: application/json" \
  -d '{
    "pubkey": "7xKXabc123...",
    "signature": "base64CancelSignature..."
  }'
{
  "success": true
}
You can only cancel orders you own. If the signature doesn’t match the order owner, the request returns 403 INVALID_SIGNATURE.