Skip to main content
PATCH
/
v1
/
trade
/
auto-cancel
curl --request PATCH \
  --url https://api.perpetuals.polymarket.com/v1/trade/auto-cancel \
  --header 'Content-Type: application/json' \
  --data '
{
  "op": {
    "type": "autoCancel",
    "args": {
      "time": 1767000045000
    }
  },
  "sig": "0x2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b1c",
  "salt": 666666666,
  "ts": 1767000015000
}
'
{
  "status": "ok",
  "deadline": 1767000045000
}
Request Weight: 1 Action Weight: 10

Body

application/json

Auto-cancel request.

op
object
required
sig
string
required

Signature in hex format

Example:

"0x1234567890..."

salt
integer
required

Salt

Example:

1234567890

ts
integer
required

Request timestamp. Unix milliseconds for most operations; Unix seconds for withdrawals (must match the on-chain EIP-712 struct verified against block.timestamp).

Example:

1767225600000

Response

The effective auto-cancel schedule after the update.

The effective auto-cancel schedule after the update. deadline echoes the armed Unix-ms time, or 0 when the schedule was cleared (time: 0).

status
enum<string>
required
Available options:
ok
deadline
integer
required

Unix-ms deadline for the per-account auto-cancel dead-man-switch. Zero means no schedule is armed. When the deadline elapses, every open order on the account is cancelled and the schedule clears.

Example:

1767000045000