Set Auto-Cancel
Set a dead man’s switch that cancels all your open orders at the chosen time. The time must be at least 5 seconds in the future. Send 0 to clear an active schedule without triggering it; posting a new time replaces the current one.
The switch fires once, then clears itself. It does not cover orders you place after it fires, so re-arm it if you still need protection.
An account can trigger auto-cancel up to 1000 times per UTC day. After
that, the API rejects new schedules with the error
auto_cancel_daily_limit_reached until the next UTC day. Clearing a
schedule is always allowed. To check the active deadline and today’s
trigger count, call Get Auto-Cancel Status.
Requires proxy signature, see proxy signing.
Body
Auto-cancel request.
Signature in hex format
"0x1234567890..."
Salt
1234567890
Request timestamp. Unix milliseconds for most operations; Unix seconds for withdrawals (must match the on-chain EIP-712 struct verified against block.timestamp).
1767225600000
Response
The effective auto-cancel schedule after the update.
The auto-cancel schedule now in effect. The deadline field echoes the armed time in Unix milliseconds, or 0 if you cleared the schedule.