Skip to main content
POST
/
2
/
pm
/
order
/
cancel
Cancel prediction market 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>"
}
'
{
  "data": {
    "canceled": [
      "<string>"
    ],
    "notCanceled": [
      "<string>"
    ]
  },
  "hostname": "<string>",
  "took": 123
}

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
address
string
required

Wallet address

apiKey
string
required
apiSecret
string
required
apiPassphrase
string
required

Response

200 - application/json

Cancel result

data
object
hostname
string
took
number