๐Ÿ”Œ API & Developers

Hyperliquid scheduleCancel API: Dead Man's Switch for Cancel-All Orders

โš ๏ธ Disclosure: Some links on this page are affiliate links. If you sign up through them, I may earn a commission โ€” at no extra cost to you. I only review tools I actually use.
scheduleCancel is a Hyperliquid exchange endpoint action that schedules a future cancel-all operation. If you include a future time, Hyperliquid cancels all open orders when that time arrives. If you omit time, the scheduled cancel operation is removed.

As of 2026-11-11, the official Hyperliquid exchange endpoint documentation states the following rules:

Request endpoint

Send a signed request to the official Hyperliquid exchange endpoint:

POST https://api.hyperliquid.xyz/exchange

The action object uses:

{
  "type": "scheduleCancel",
  "time": 1234567890123
}

๐Ÿ’ก Hyperliquid

Like what you're reading? Try it yourself โ€” this link supports ChartedTrader at no cost to you.

Create a Hyperliquid account โ†’
๐ŸŽ You receive: 4% fee discount on first $25M volume ยท per account, lifetime

To remove an existing scheduled cancel, omit time:

{
  "type": "scheduleCancel"
}

The documentation lists time as optional. Replace the example value with a valid future time value accepted by the endpoint; the key constraint is that it must be at least 5 seconds after the current time.

Required and optional fields

FieldRequiredDescription
actionYesMust include "type": "scheduleCancel". Include time to schedule a cancel-all; omit time to remove the scheduled cancel.
nonceYesRecommended to use the current timestamp in milliseconds.
signatureYesSignature object for the request.
vaultAddressNoAddress of a subaccount or vault when acting on its behalf.
expiresAfterNoTimestamp in milliseconds after which the action is rejected.
For subaccounts and vaults, the documentation says they do not have private keys. The master account signs the action and sets vaultAddress to the subaccount or vault address.

scheduleCancel vs expiresAfter

They are not the same thing:

The documentation also notes that actions canceled due to a stale expiresAfter field consume 5x the usual address-based rate limit. User-signed actions such as Core USDC transfer do not support expiresAfter. See Hyperliquid API expiresAfter: Action Deadline, Rejection, and 5x Rate-Limit Cost for that mechanism.

Practical notes

If you are building against this endpoint, you can Create a Hyperliquid account. This is an affiliate link; we may earn a commission at no cost to you.

Continue with Hyperliquid

Browse the Hyperliquid guide hub for the complete user journey.

๐Ÿงฎ Free Hyperliquid calculators

Fee Calculator โ†’
Hyperliquid vs centralized exchange fee comparison
PnL & Liquidation โ†’
Perp PnL + liquidation price
Position Size โ†’
Risk-aware position sizing for HL perps
Hyperliquid

Ready to get started? Use the link below โ€” it helps support ChartedTrader at no cost to you.

Create a Hyperliquid account โ†’
๐ŸŽ You receive: 4% fee discount on first $25M volume ยท per account, lifetime
๐Ÿ“ˆ

About the author

I'm a systematic trader running live strategies on IB (USDJPY momentum) and Hyperliquid (crypto perps). Every tool reviewed here is something I've used with real capital. Questions? Reach out.

๐Ÿ“š Related Articles

๐Ÿ”Œ
API & Developers

Hyperliquid API expiresAfter: Action Deadline, Rejection, and 5x Rate-Limit Cost

Hyperliquid's optional expiresAfter field sets a millisecond deadline for an exchange action. After expiry, the action is rejected, and stale actions consume 5x the usual address-based rate limit.

November 11, 2026 โฑ 3 min read
๐Ÿ”Œ
API & Developers

Hyperliquid noop Action: Invalidate a Pending Nonce for In-Flight Orders

The Hyperliquid noop action marks a nonce as used without placing a trade, which can be more effective than cancel for invalidating in-flight orders.

November 11, 2026 โฑ 3 min read
๐Ÿ”ง
Troubleshooting & Fixes

Hyperliquid Order Not Filling? Slippage Fix (2026)

Why Hyperliquid orders fail to fill or suffer slippage. Learn how to fix execution issues with limit orders, Post-Only flags, and order book reading.

July 31, 2026 โฑ 12 min read