DELETE
/
v1
/
predictions
/
polymarket
/
orders
/
{orderId}
Cancel Order
curl --request DELETE \
  --url https://api.example.com/v1/predictions/polymarket/orders/{orderId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "apiKey": "<string>",
  "apiSecret": "<string>",
  "passphrase": "<string>",
  "marketId": "<string>"
}
'

Request

orderId
string
required
Order ID to cancel

Body Parameters

apiKey
string
required
Your Polymarket API key
apiSecret
string
required
Your Polymarket API secret
passphrase
string
required
Your Polymarket passphrase

Example

curl -X DELETE -H "X-API-Key: $API_KEY" \
  -H "Content-Type: application/json" \
  https://api.perps.studio/v1/predictions/polymarket/orders/order-xyz-123 \
  -d '{
    "apiKey": "your-poly-api-key",
    "apiSecret": "your-poly-secret",
    "passphrase": "your-passphrase"
  }'

Cancel All Orders

To cancel all open orders (optionally for a specific market):
DELETE /v1/predictions/polymarket/orders
marketId
string
Optional. Cancel only orders for this market.