๐Ÿ”Œ API & Developers

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

โš ๏ธ 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.
expiresAfter is an optional field on supported Hyperliquid exchange actions. It is a timestamp in milliseconds. After that timestamp, the action is rejected. It is a request-validity deadline, not an order-cancellation instruction.

Primary sources: Exchange endpoint and Rate limits and user limits.

What expiresAfter controls

ItemBehavior
Field typeNumber: timestamp in milliseconds
ScopeSupported exchange actions
Effect after deadlineThe action is rejected
Unsupported actionsUser-signed actions such as Core USDC transfer do not support expiresAfter
Stale-action costActions consume 5x the usual address-based rate limit when canceled due to a stale expiresAfter field
The field is useful for preventing an old signed action from being accepted long after it was created. If the deadline has passed, the signed action should not be expected to be accepted; if the operation is still needed, sign a new action.

Rate-limit cost of a stale action

The 5x penalty is address-based. Hyperliquid's address-based limits apply per user, with sub-accounts treated as separate users.

According to the docs:

A stale action that is rejected because of expiresAfter therefore uses address action capacity faster than a normal action. This matters for bots that may resend signed actions after a network delay, restart, or stale local clock.

For the broader IP and address limits, see Hyperliquid API Rate Limits & User Limits (2026).

expiresAfter is not an order-cancel field

Do not use expiresAfter as a way to cancel resting orders. Cancellation is a separate exchange action.

The exchange endpoint documents separate actions for:

๐Ÿ’ก 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

scheduleCancel is a dead man's switch: it schedules a future cancel-all operation. If no time is included, it removes the scheduled cancel operation. The scheduled time must be at least 5 seconds after the current time. Once triggered, all open orders are canceled and a trigger count is incremented; the maximum is 10 triggers per day, reset at 00:00 UTC.

If you are debugging rejected or unexpected exchange responses, also see Hyperliquid API Error Responses: Troubleshooting Guide (2026).

Example request shape

The following is a reference shape based on the documented order request body. It is not a live response or tested transaction.

{
  "action": {
    "type": "order",
    "orders": [
      {
        "a": 0,
        "b": true,
        "p": "1891.4",
        "s": "0.02",
        "r": false,
        "t": {
          "limit": {
            "tif": "Gtc"
          }
        }
      }
    ],
    "grouping": "na"
  },
  "nonce": 1762857600000,
  "signature": {
    "r": "0x...",
    "s": "0x...",
    "v": 27
  },
  "expiresAfter": 1762857660000
}

In this example, the action is valid only until 1762857660000 milliseconds. If the action is no longer valid after that timestamp, it is rejected. The docs recommend using the current timestamp in milliseconds for nonce.

Practical checks

CTA

The Hyperliquid referral link below is a referral link; if you sign up through it, I may earn a commission.

Create a Hyperliquid account

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 scheduleCancel API: Dead Man's Switch for Cancel-All Orders

How Hyperliquid's scheduleCancel action schedules a future cancel-all of open orders, with daily trigger limits, request fields, and the difference from expiresAfter.

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
๐Ÿ”Œ
API & Developers

Hyperliquid reserveRequestWeight: Buy Additional API Actions (2026)

How to use Hyperliquid's reserveRequestWeight action to reserve extra API actions for 0.0005 USDC each, paid from your Perps balance.

November 11, 2026 โฑ 2 min read