Cancels an order and releases any committed collateral or tokens back to your available balance. Requires an Ed25519 signature to prove ownership.
Path parameters
The order UUID to cancel.
Request body
The Solana wallet public key (base58-encoded). Must match the order owner.
Ed25519 signature of the cancel message PMX Cancel:<orderId>, base64-encoded.
Sign the following string with your wallet’s Ed25519 key:
For example, for order b2c3d4e5-1234-5678-abcd-ef0123456789:
PMX Cancel:b2c3d4e5-1234-5678-abcd-ef0123456789
Response
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..."
}'
You can only cancel orders you own. If the signature doesn’t match the order owner, the request returns 403 INVALID_SIGNATURE.