Skip to main content
POST
/
2
/
pm
/
order
/
cancel
Cancel an open order
curl --request POST \
  --url https://demo-api.mobula.io/api/2/pm/order/cancel \
  --header 'Content-Type: application/json' \
  --data '
{
  "orderId": "<string>",
  "address": "<string>",
  "apiKey": "<string>",
  "apiSecret": "<string>",
  "apiPassphrase": "<string>"
}
'
{
  "hostname": "<string>",
  "took": 123,
  "data": "<unknown>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mobula.io/llms.txt

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

Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

Request Body

orderId
string
required
The CLOB order ID to cancel (returned when the order was submitted).
address
string
required
The wallet address that placed the order.
apiKey
string
required
CLOB API key (obtained from Auth Derive).
apiSecret
string
required
CLOB API secret (obtained from Auth Derive).
apiPassphrase
string
required
CLOB API passphrase (obtained from Auth Derive).

Response

data
object
CLOB cancellation response.
hostname
string
Server node identifier.
took
number
Request processing time in milliseconds.

Usage Example

curl -X POST "https://api.mobula.io/api/2/pm/order/cancel" \
  -H "Content-Type: application/json" \
  -d '{
    "orderId": "0xabc123...",
    "address": "0xYourWalletAddress",
    "apiKey": "your-clob-api-key",
    "apiSecret": "your-clob-api-secret",
    "apiPassphrase": "your-clob-passphrase"
  }'

Body

application/json
orderId
string
required
Minimum string length: 1
address
string
required
Minimum string length: 1
apiKey
string
required
Minimum string length: 1
apiSecret
string
required
Minimum string length: 1
apiPassphrase
string
required
Minimum string length: 1

Response

201 - application/json

Prediction Markets response

hostname
string
required
took
number
required
data
any | null

See the per-endpoint reference for the exact response shape.