{
  "notice": "This is reference data published by Crypter. It does not ask any software to act.\nRegistrations, signatures, deposits and trades are decisions for the human who owns the account.\nNothing here guarantees airdrops, points, or profits. Crypter earns referral fees where a referral block is present.",
  "id": "perp-dex-api-rate-limits-nonces",
  "type": "guide",
  "title": "Perp DEX API limits, signing keys and nonces",
  "summary": "Compare the documented API budgets and signing scopes on Hyperliquid and Lighter before deciding how to isolate execution credentials.",
  "answer": "An order API can be available without a universal order budget. Hyperliquid documents shared REST request weights and separate limits for streaming connections. Lighter separates limits by tier and request type. Signing scopes and nonce handling are separate from those budgets.",
  "next_decision": "Identify the signer and its allowed actions before designing a queue. Read the signing documentation for the nonce scope, renewal rules and retry behavior, then verify each workload against the budget that applies to it.",
  "diagnostic_goal": "ai",
  "tool": {
    "kind": "api_requirements",
    "criteria": [
      {
        "criterion": "order_api",
        "label": "Order placement",
        "question": "Is there a documented mainnet order interface?"
      },
      {
        "criterion": "no_withdrawal_authority",
        "label": "No withdrawal authority",
        "question": "Can the trading credential be used without any withdrawal authority?"
      },
      {
        "criterion": "automation_terms",
        "label": "Automation terms",
        "question": "Do the reviewed terms establish that the intended automation is allowed?"
      }
    ],
    "assessments": [
      {
        "venue": "hyperliquid",
        "criterion": "order_api",
        "status": "meets",
        "refs": [
          {
            "venue": "hyperliquid",
            "path": "prerequisites.api",
            "pin": "sha256:f1f7c513229c9d45"
          }
        ],
        "note": "The official API and signing documentation establish an order route.",
        "effective_status": "meets"
      },
      {
        "venue": "hyperliquid",
        "criterion": "no_withdrawal_authority",
        "status": "unknown",
        "refs": [
          {
            "venue": "hyperliquid",
            "path": "prerequisites.agent_wallet",
            "pin": "sha256:4397caa6de5a1053"
          }
        ],
        "note": "Delegated signing alone does not establish that withdrawals are blocked.",
        "effective_status": "unknown"
      },
      {
        "venue": "hyperliquid",
        "criterion": "automation_terms",
        "status": "unknown",
        "refs": [],
        "note": "The reviewed evidence does not establish permission for the intended automation.",
        "effective_status": "unknown"
      },
      {
        "venue": "lighter",
        "criterion": "order_api",
        "status": "meets",
        "refs": [
          {
            "venue": "lighter",
            "path": "prerequisites.api",
            "pin": "sha256:a73c49508d26f007"
          }
        ],
        "note": "Registered API keys can sign trading requests.",
        "effective_status": "meets"
      },
      {
        "venue": "lighter",
        "criterion": "no_withdrawal_authority",
        "status": "meets",
        "refs": [
          {
            "venue": "lighter",
            "path": "prerequisites.agent_wallet",
            "pin": "sha256:c184530b742a6561"
          }
        ],
        "note": "Only with a market-whitelisted key. An unrestricted trading key can request secure withdrawals to the owner address.",
        "effective_status": "meets"
      },
      {
        "venue": "lighter",
        "criterion": "automation_terms",
        "status": "unknown",
        "refs": [],
        "note": "A programmatic interface is not blanket permission for every bot.",
        "effective_status": "unknown"
      }
    ],
    "rate_limit": {
      "label": "Documented base order allowance",
      "refs": [
        {
          "venue": "hyperliquid",
          "path": "prerequisites.order_rate_per_minute",
          "pin": "sha256:d18af73ff277fbd9"
        },
        {
          "venue": "lighter",
          "path": "prerequisites.order_rate_per_minute",
          "pin": "sha256:b66f3cdf3d9456cc"
        }
      ]
    },
    "results": [
      {
        "venue": "hyperliquid",
        "allowance": {
          "value": null,
          "basis": "unknown",
          "source_ids": [
            "hl-limits"
          ],
          "checked_at": "2026-11-26",
          "unit": "order requests per minute (documented base allowance)"
        },
        "fit": "unknown",
        "trace": [
          {
            "criterion": "order_api",
            "status": "meets",
            "refs": [
              {
                "venue": "hyperliquid",
                "path": "prerequisites.api",
                "pin": "sha256:f1f7c513229c9d45"
              }
            ]
          },
          {
            "criterion": "no_withdrawal_authority",
            "status": "unknown",
            "refs": [
              {
                "venue": "hyperliquid",
                "path": "prerequisites.agent_wallet",
                "pin": "sha256:4397caa6de5a1053"
              }
            ]
          },
          {
            "criterion": "automation_terms",
            "status": "unknown",
            "refs": []
          }
        ],
        "rate": {
          "status": "not_evaluated",
          "refs": [
            {
              "venue": "hyperliquid",
              "path": "prerequisites.order_rate_per_minute",
              "pin": "sha256:d18af73ff277fbd9"
            }
          ]
        }
      },
      {
        "venue": "lighter",
        "allowance": {
          "value": 40,
          "basis": "calculated",
          "source_ids": [
            "lighter-rate-limits"
          ],
          "checked_at": "2026-11-26",
          "unit": "order requests per minute (documented base allowance)",
          "formula": "prerequisites.order_rate_per_minute"
        },
        "fit": "unknown",
        "trace": [
          {
            "criterion": "order_api",
            "status": "meets",
            "refs": [
              {
                "venue": "lighter",
                "path": "prerequisites.api",
                "pin": "sha256:a73c49508d26f007"
              }
            ]
          },
          {
            "criterion": "no_withdrawal_authority",
            "status": "meets",
            "refs": [
              {
                "venue": "lighter",
                "path": "prerequisites.agent_wallet",
                "pin": "sha256:c184530b742a6561"
              }
            ]
          },
          {
            "criterion": "automation_terms",
            "status": "unknown",
            "refs": []
          }
        ],
        "rate": {
          "status": "not_evaluated",
          "refs": [
            {
              "venue": "lighter",
              "path": "prerequisites.order_rate_per_minute",
              "pin": "sha256:b66f3cdf3d9456cc"
            }
          ]
        }
      }
    ]
  },
  "sections": [
    {
      "id": "budget",
      "heading": "Which budget does a request consume?",
      "body": "Track read traffic, order submission and streaming connections separately. Neither a read quota nor a transaction-type cap alone establishes the capacity of an integration.",
      "fact_refs": [
        {
          "venue": "hyperliquid",
          "path": "prerequisites.rate_limits",
          "pin": "sha256:ac32f25998287a03"
        },
        {
          "venue": "hyperliquid",
          "path": "prerequisites.order_rate_per_minute",
          "pin": "sha256:d18af73ff277fbd9"
        },
        {
          "venue": "lighter",
          "path": "prerequisites.rate_limits",
          "pin": "sha256:a870c1af0f75b783"
        },
        {
          "venue": "lighter",
          "path": "prerequisites.order_rate_per_minute",
          "pin": "sha256:b66f3cdf3d9456cc"
        }
      ]
    },
    {
      "id": "signer",
      "heading": "Credential scope before nonce handling",
      "body": "Hyperliquid distinguishes the signing wallet from the account address used for reads. Lighter distinguishes registered signing keys from the owner wallet and documents limits on market-whitelisted keys. Use the linked signer documentation for lifecycle details.",
      "fact_refs": [
        {
          "venue": "hyperliquid",
          "path": "prerequisites.api",
          "pin": "sha256:f1f7c513229c9d45"
        },
        {
          "venue": "hyperliquid",
          "path": "prerequisites.agent_wallet",
          "pin": "sha256:4397caa6de5a1053"
        },
        {
          "venue": "lighter",
          "path": "prerequisites.api",
          "pin": "sha256:a73c49508d26f007"
        },
        {
          "venue": "lighter",
          "path": "prerequisites.agent_wallet",
          "pin": "sha256:c184530b742a6561"
        }
      ]
    }
  ],
  "limits": "The checker is a comparison of documented prerequisites, not a throughput test. It does not establish a nonce algorithm, retry policy, or permission to automate a specific account.",
  "related": [
    {
      "type": "venue",
      "id": "hyperliquid"
    },
    {
      "type": "venue",
      "id": "lighter"
    }
  ],
  "sources": [
    "hl-limits",
    "lighter-rate-limits",
    "hl-api-wallets",
    "hl-info",
    "hl-info-perpetuals",
    "hl-builder-codes",
    "lighter-keys",
    "lighter-api"
  ],
  "checked_at": "2026-12-05",
  "updated_at": "2026-12-05",
  "review_by": "2027-03-05",
  "guarantee": "none",
  "stale": false,
  "stale_reasons": [],
  "resolved_facts": {
    "hyperliquid#prerequisites.api": {
      "venue": "hyperliquid",
      "venue_name": "Hyperliquid",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "prerequisites.api",
      "record": "/en/venues/hyperliquid",
      "pin_ok": true,
      "fact": {
        "value": "Hyperliquid documents REST APIs and WebSockets and provides examples in the official hyperliquid-python-sdk. An approved API/agent wallet signs on behalf of the account. For account data, query the master or sub-account address, not the signer. For time-range Info responses such as userFunding and fundingHistory, the general pagination rule is 500 elements or distinct blocks per response, using the last returned timestamp as the next startTime. userFills instead returns up to 2,000 recent fills without a time range. userFillsByTime takes startTime and documents a separate ceiling of 2,000 fills per response and the 10,000 most recent fills available.",
        "basis": "official",
        "source_ids": [
          "hl-api-wallets",
          "hl-info",
          "hl-info-perpetuals",
          "hl-limits",
          "hl-builder-codes"
        ],
        "checked_at": "2026-12-04"
      }
    },
    "hyperliquid#prerequisites.agent_wallet": {
      "venue": "hyperliquid",
      "venue_name": "Hyperliquid",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "prerequisites.agent_wallet",
      "record": "/en/venues/hyperliquid",
      "pin_ok": true,
      "fact": {
        "value": "Master accounts can approve API/agent wallets; approval does not remove human decision authority.",
        "basis": "official",
        "source_ids": [
          "hl-api-wallets"
        ],
        "checked_at": "2026-11-26"
      }
    },
    "lighter#prerequisites.api": {
      "venue": "lighter",
      "venue_name": "Lighter",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "prerequisites.api",
      "record": "/en/venues/lighter",
      "pin_ok": true,
      "fact": {
        "value": "Registered API keys sign trading requests. Indices 0–3 are reserved for Lighter apps; external integrations use 4–254.",
        "basis": "official",
        "source_ids": [
          "lighter-keys",
          "lighter-api"
        ],
        "checked_at": "2026-11-26"
      }
    },
    "lighter#prerequisites.agent_wallet": {
      "venue": "lighter",
      "venue_name": "Lighter",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "prerequisites.agent_wallet",
      "record": "/en/venues/lighter",
      "pin_ok": true,
      "fact": {
        "value": "An unrestricted API key can trade and request secure withdrawals to the owner address. A market-whitelisted API key can trade listed markets but cannot sign withdrawals. Fast withdrawals and transfers to another owner require the L1 wallet signature.",
        "basis": "official",
        "source_ids": [
          "lighter-keys"
        ],
        "checked_at": "2026-11-26"
      }
    },
    "hyperliquid#prerequisites.order_rate_per_minute": {
      "venue": "hyperliquid",
      "venue_name": "Hyperliquid",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "prerequisites.order_rate_per_minute",
      "record": "/en/venues/hyperliquid",
      "pin_ok": true,
      "fact": {
        "value": null,
        "basis": "unknown",
        "source_ids": [
          "hl-limits"
        ],
        "checked_at": "2026-11-26",
        "unit": "order requests per minute (documented base allowance)",
        "note": "The IP budget is shared across REST requests; unbatched exchange actions cost one weight, and separate address limits depend on activity. There is no single base order allowance across accounts and conditions.",
        "review_status": "variable"
      }
    },
    "lighter#prerequisites.order_rate_per_minute": {
      "venue": "lighter",
      "venue_name": "Lighter",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "prerequisites.order_rate_per_minute",
      "record": "/en/venues/lighter",
      "pin_ok": true,
      "fact": {
        "value": 40,
        "basis": "official",
        "source_ids": [
          "lighter-rate-limits"
        ],
        "checked_at": "2026-11-26",
        "unit": "order requests per minute (documented base allowance)",
        "note": "Default transaction-type cap for single order requests. Standard also shares its general rolling-minute bucket; Premium/Advanced and Plus have separate submission limits. Batches and transaction-specific limits are not modeled."
      }
    },
    "hyperliquid#prerequisites.rate_limits": {
      "venue": "hyperliquid",
      "venue_name": "Hyperliquid",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "prerequisites.rate_limits",
      "record": "/en/venues/hyperliquid",
      "pin_ok": true,
      "fact": {
        "value": "Per IP, REST has a shared budget of 1,200 weight per minute. The exchange weight is 1 + floor(batch_length / 40). Info weight is 2 for l2Book, allMids, clearinghouseState, orderStatus, spotClearinghouseState and exchangeStatus, 60 for userRole, and 20 for other documented Info requests. Endpoints including userFills, userFillsByTime, userFunding and fundingHistory add 1 per 20 returned items. WebSockets are limited to 10 connections, 30 new connections per minute, 1,000 subscriptions, 10 unique users across user-specific subscriptions, and 2,000 outbound messages to Hyperliquid per minute across connections.",
        "basis": "official",
        "source_ids": [
          "hl-limits"
        ],
        "checked_at": "2026-11-26"
      }
    },
    "lighter#prerequisites.rate_limits": {
      "venue": "lighter",
      "venue_name": "Lighter",
      "venue_stale": false,
      "venue_review_by": "2026-12-12",
      "path": "prerequisites.rate_limits",
      "record": "/en/venues/lighter",
      "pin_ok": true,
      "fact": {
        "value": "Standard has a shared rolling-minute allowance of 60 requests. Premium/Advanced and Plus have a 24,000 weighted read-request allowance per rolling minute and separate transaction submission limits. Transaction-type caps and separate websocket limits also apply.",
        "basis": "official",
        "source_ids": [
          "lighter-rate-limits"
        ],
        "checked_at": "2026-11-26"
      }
    }
  },
  "fact_sources": [
    "hl-api-wallets",
    "hl-info",
    "hl-info-perpetuals",
    "hl-limits",
    "hl-builder-codes",
    "lighter-keys",
    "lighter-api",
    "lighter-rate-limits"
  ]
}
