Hyperliquid docs changes, and where the docs disagree

Hyperliquid often edits its docs without announcing it, so this page keeps the before and after text of each change we see, and pins the places where two official pages still disagree.

Each change is checked against Internet Archive captures of Hyperliquid's docs, and the newest against the live page. A date is a capture or check that shows the new text, so the edit happened on or before it.

November 2026

3
  1. Funding

    Lowered the documented perpetual funding cap from 4% to 0.5% per hour.

    Funding on Hyperliquid is capped at 0.5%/hour.
    Full change

    Funding on Hyperliquid is capped at 4%/hour.

    Funding on Hyperliquid is capped at 0.5%/hour.

  2. Sub-accounts

    Raised the maximum number of sub-accounts from 50 to 80.

    up to a maximum of 80 sub-accounts.
    Full change

    up to a maximum of 50 sub-accounts.

    up to a maximum of 80 sub-accounts.

  3. Priority fees

    Raised the number of gossip-priority Dutch auctions from two to three.

    There are 3 independent Dutch auctions synced to the same 3 minute schedule.
    Full change

    There are 2 independent Dutch auctions synced to the same 3 minute schedule.

    There are 3 independent Dutch auctions synced to the same 3 minute schedule.

October 2026

5
  1. WebSocket subscriptions

    Renamed WebData subscriptions to WebData3, corrected the fast asset context type name, and clarified that account streams need the account's own address, not an agent address.

    Data format: base64 encoded and compressed WsFastAssetCtxs
    Full change

    { "method": "subscribe", "subscription": { "type": "fastAssetCtxs" } }

    Data format: base64 encoded and compressed WsFastAssetCtx

    Data format: base64 encoded and compressed WsFastAssetCtxs

    The first message is a snapshot, subsequent messages contain only coins that have updated. Fields that have no updates are omitted.

    User address

    To subscribe to the account data associated with a master or sub-account, you must pass in the actual address of that account. A common pitfall is to use an agent wallet's address which leads to an empty result.

    Data formats

    Format: Notification { notification: string }

    WebData2: Aggregate information about a user, used primarily for the frontend.

    Format: WebData2

    WebData3: Aggregate information about a user, used primarily for the frontend.

    Format: WebData3

    WsTrade[]: An array of trade updates.

    Subscribe to web data for a specific user:

    { "method": "subscribe", "subscription": { "type": "webData", "user": "<address>" } }

    { "method": "subscribe", "subscription": { "type": "webData3", "user": "<address>" } }

    Subscribe to candle updates for a specific coin and interval:

  2. HIP-4 deployer actions

    Clarified that dateTime and date template values use UTC.

    UTC time %Y%m%d-%H%M, e.g.
    Full change

    Keyword value formats by hint type:

    Hint Value format dateTime %Y%m%d-%H%M, e.g. "20260712-1830"; must be within the next year date YYYYMMDD, e.g. "20260712" (end of day); must be within the next year string free text shortString free text of at most 10 characters hlPerp coin name of an existing perp, e.g. "ABC" or "test:ABC" uInt nonnegative integer that fits in a u64, e.g. "250" (no sign or leading zeros) uDecimal nonnegative decimal, e.g. "0.5" or "250" (no sign, exponent, or leading/trailing zeros) Values are at most 100 characters and cannot contain {, }, or | (: is allowed, e.g. for HIP-3 coin names).

    UTC time %Y%m%d-%H%M, e.g. "20260712-1830"; must be within the next year

    date

    UTC date YYYYMMDD, e.g. "20260712" (end of day); must be within the next year

    The interpolated display text (template text with the values substituted) is also bounded: names are at most 70 characters for standalone outcomes and questions and at most 25 characters for question outcomes, and standalone side names are at most 10 characters.

  3. Info endpoint: Spot

    Added examples of outcome token balances, explanations of recurring binary and price-bucket metadata, and the outcomeTemplates request with template examples.

    { "balances": [ { "coin": "USDC", "token": 0, "hold": "0.0", "total": "14.625485", "entryNtl": "0.0" }, { "coin": "PURR", "token": 1, "hold": "0.0", "total": "2000.0", "entryNtl": "1234.56" }, { "coin": "+1230", "hold": "0.0", "total": "…
    Full change

    Onchain address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000.

    { "balances": [ { "coin": "USDC", "token": 0, "hold": "0.0", "total": "14.625485", "entryNtl": "0.0" }, { "coin": "PURR", "token": 1, "hold": "0", "total": "2000", "entryNtl": "1234.56", } ] }

    { "balances": [ { "coin": "USDC", "token": 0, "hold": "0.0", "total": "14.625485", "entryNtl": "0.0" }, { "coin": "PURR", "token": 1, "hold": "0.0", "total": "2000.0", "entryNtl": "1234.56" }, { "coin": "+1230", "hold": "0.0", "total": "25.0", "entryNtl": "12.5" } ] }

    Retrieve information about the Spot Deploy Auction

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

    See the Asset IDs section for the format the API uses to refer to outcomes. Outcomes and questions deployed from a template have the name template:<id>, where <id> is the template's id in the outcomeTemplates response. See the HIP-4 deployment docs for their description format.

    Recurring standalone outcomes and questions are named Recurring, and their description is |-separated key:value pairs starting with class. expiry is a UTC time in the format YYYYMMDD-HHMM, and underlying is a perp coin name. Descriptions may contain other keys, which can be ignored.

    class:priceBinary is a standalone outcome, e.g. class:priceBinary|underlying:BTC|expiry:20260526-0600|targetPrice:77363|period:1d. It resolves to Yes if the underlying mark price at expiry is above targetPrice.

    class:priceBucket is a question, e.g. class:priceBucket|underlying:BTC|expiry:20260615-0600|priceThresholds:63250,65831|period:1d, where priceThresholds is <lower>,<upper>. Based on the underlying mark price at expiry:

    The outcome with description index:0 resolves to Yes if the price is below lower.

    The outcome with description index:1 resolves to Yes if the price is at least lower and below upper.

    The outcome with description index:2 resolves to Yes if the price is at least upper.

    Headers

    { "outcomes": [ { "outcome": 123, "name": "Recurring", "description": "class:priceBinary|underlying:HYPE|expiry:20260310-1100|targetPrice:34.5|period:3m", "sideSpecs": [ { "name": "Yes" }, { "name": "No" } ] } ] }

    Retrieve outcome templates

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

    Headers

    Name

    Value

    Content-Type*

    "application/json"

    Body

    Name

    Type

    Description

    type*

    String

    "outcomeTemplates"

    Returns all outcome templates. role is one of {"standaloneOutcome": {"sideNames": [...]}}, "question", or {"questionOutcome": {"parent": <question template id>}}. name and description contain {keyword} placeholders, and keywords lists each keyword with its type as [keyword, type] pairs. See the HIP-4 deployment docs for the value format of each type.

    Response

    [ { "id": "binaryPrice", "role": { "standaloneOutcome": { "sideNames": ["Yes", "No"] } }, "name": "{perp} above {threshold} at {time}?", "description": "The market resolves to Yes if the {perp} price is above {threshold} at {time}, and otherwise resolves to No. Settlement is according to the {seconds}-second TWAP of {priceDescription} price ending at {time}. If {perp} is delisted before this market settles, settlement is instead according to the {perp} settlement price at delisting. metadata=category:price|subCategory:N/A|semanticRestriction:This market must refer to the price of a Hyperliquid perp.", "keywords": [["perp", "hlPerp"], ["priceDescription", "string"], ["seconds", "uInt"], ["threshold", "uDecimal"], ["time", "dateTime"]] }, { "id": "policyRateDecision", "role": "question", "name": "{institution} {decisionLabel} rate decision", "description": "This market has three possible results: No change, Decrease, or Increase. Exactly one corresponding named outcome resolves to Yes; the other two and the protocol-created fallback resolve to No. It covers the {decisionLabel} {institution} decision concerning {policyMeasure}, scheduled for {scheduledDecision} UTC (the \"Decision\"). The Decision Value is the numeric value of {policyMeasure} announced by {officialSource}. The Prior Value is the value of that same measure in effect immediately before the Decision. No change resolves to Yes if the Decision Value equals the Prior Value. Decrease resolves to Yes if the Decision Value is lower. Increase resolves to Yes if the Decision Value is higher. If the Decision is rescheduled, the rescheduled decision applies if {officialSource} publishes it by {decisionDeadline} UTC. If the Decision is canceled or postponed without a replacement decision, or no official Decision Value is published by {decisionDeadline} UTC, No change resolves to Yes. Policy changes outside the scheduled Decision are ignored except when establishing the Prior Value. If {institution} replaces {policyMeasure}, the closest official successor measure identified by {officialSource} is used. Resolution uses the initially published decision; later revisions do not change the resolution. {officialSource} is the primary resolution source; independent reputable reporting may be used if it has not published the relevant decision. No change resolves to Yes under the deadline rule above only if neither {officialSource} nor independent reputable reporting establishes a Decision Value by {decisionDeadline} UTC. metadata=category:economics|subCategory:N/A|semanticRestriction:This market must refer to a scheduled policy rate decision by an official institution.", "keywords": [["decisionDeadline", "dateTime"], ["decisionLabel", "string"], ["institution", "string"], ["officialSource", "string"], ["policyMeasure", "string"], ["scheduledDecision", "dateTime"]] }, { "id": "policyRateDecrease", "role": { "questionOutcome": { "parent": "policyRateDecision" } }, "name": "Decrease", "description": "This outcome resolves to Yes if the Decision Value is lower than the Prior Value under the parent question's rules.", "keywords": [] } ]

    Retrieve information about a settled outcome

  4. Exchange endpoint

    Added sub-builder fee sharing, agent-signed staking deposits, and trailing-stop order actions.

    "builder": Optional({"b": "address", "f": Number, "s": Optional([{"b": "address", "s": Number}])})
    Full change

    "grouping": "na" | "normalTpsl" | "positionTpsl",

    "builder": Optional({"b": "address", "f": Number, "s": Optional([{"b": "address", "s": Number}])})

    } Meaning of keys: a is asset b is isBuy p is price s is size r is reduceOnly t is type c is cloid (client order id) Meaning of keys in optional builder argument: b is the address the should receive the additional fee f is the size of the fee in tenths of a basis point e.g. if f is 10, 1bp of the order notional will be charged to the user and sent to the builder s is an optional list of up to 5 sub-builders that receive part of the builder fee. In each entry b is the address, which must be an existing user, and s is the share of the builder fee in units of 0.001% e.g. if s is 50000, half of the builder fee is sent to that address. Shares must be positive and sum to at most 100%. The builder receives the remainder

    nonce*

    {'status': 'ok', 'response': {'type': 'default'}}

    Deposit into staking (agent)

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

    Similar to deposit into staking, but can be signed by an agent.

    Headers

    Name

    Value

    Content-Type*

    application/json

    Body

    Name

    Type

    Description

    action*

    Object

    "type": "cDeposit2",

    "wei": amount of wei to transfer as a number

    nonce*

    Number

    Recommended to use the current timestamp in milliseconds

    signature*

    Object

    expiresAfter

    Number

    Timestamp in milliseconds

    Response

    {'status': 'ok', 'response': {'type': 'default'}}

    Withdraw from staking

    { "status":"ok", "response":{ "type":"twapCancel", "data":{ "status": { "error": "TWAP was never placed, already canceled, or filled." } } } }

    Place a trailing stop order

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

    Headers

    Name

    Type

    Description

    Content-Type*

    String

    "application/json"

    Request Body

    Name

    Type

    Description

    action*

    Object

    "type": "trailingStop",

    "asset": Number,

    "isBuy": Boolean,

    "sz": String,

    "reduceOnly": Boolean,

    "retracement": {"pct": as a percent string; e.g. "1.234%"} or {"px": String},

    "activationPx": String | null

    nonce*

    Number

    Recommended to use the current timestamp in milliseconds

    signature*

    Object

    vaultAddress

    String

    If trading on behalf of a vault or subaccount, its address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000

    expiresAfter

    Number

    Timestamp in milliseconds

    { "status":"ok", "response":{ "type":"trailingStop", "data":{ "oid":77738308 } } }

    Reserve Additional Actions

  5. Portfolio margin

    Raised the documented global supply capacity for HYPE from 10 million to 25 million and for BTC from 2,000 to 5,000.

    HYPE: 25M HYPE global supply cap, 1M HYPE user supply cap
    Full change

    USDC: 1B USDC global supply cap, 500M USDC global borrow cap, 250M USDC user supply cap, 50M USDC user borrow cap

    HYPE: 10M HYPE global supply cap, 1M HYPE user supply cap

    BTC: 2k BTC global supply cap, 200 BTC user supply cap

    HYPE: 25M HYPE global supply cap, 1M HYPE user supply cap

    BTC: 5k BTC global supply cap, 200 BTC user supply cap

    LTV and borrowing

September 2026

2
  1. Info endpoint: Spot

    Added the outcomeDeployerLimits info request and its remaining daily and active outcome counts.

    Retrieve outcome deployer limits
    Full change

    { "spec": { "outcome": 95, "name": "Recurring", "description": "class:priceBinary|underlying:BTC|expiry:20260526-0600|targetPrice:77363|period:1d", "sideSpecs": [ { "name": "Yes" }, { "name": "No" } ], "quoteToken": "USDC" }, "settleFraction": "0.0", "details": "price:76876.9" }

    Retrieve outcome deployer limits

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

    Headers

    Name

    Value

    Content-Type*

    "application/json"

    Body

    Name

    Type

    Description

    type*

    String

    "outcomeDeployerLimits"

    venue*

    String

    venue name

    Response

    { "nDailyOutcomesRemaining": 50, "nActiveOutcomesRemaining": 14 }

  2. Portfolio margin

    Raised the HYPE collateral loan-to-value from 0.5 to 0.65 and kept BTC at 0.5.

    Under portfolio margin, eligible collateral assets have an LTV (loan-to-value) ratio between 0 and 1.
    Full change

    LTV and borrowing

    Under portfolio margin, eligible collateral assets have an LTV (loan-to-value) ratio between 0 and 1. HYPE and BTC have an LTV of 0.5. When placing spot and perp orders under portfolio margin, insufficient balance will automatically borrowed against eligible collateral up to token_balance * borrow_oracle_price * ltv , where price is denominated in the asset being borrowed.

    Under portfolio margin, eligible collateral assets have an LTV (loan-to-value) ratio between 0 and 1. HYPE has an LTV of 0.65 and BTC has an LTV of 0.5. When placing spot and perp orders under portfolio margin, insufficient balance will automatically borrowed against eligible collateral up to token_balance * borrow_oracle_price * ltv , where price is denominated in the asset being borrowed.

    Borrowed assets accrue interest continuously, and are indexed hourly to match the perp funding interval. Portfolio margin users pay interest on borrowed assets and earn interest on idle assets according to the same rate. The borrow interest rate for stablecoins is set at 0.05 + 4.75 * max(0, utilization - 0.8) APY, compounded continuously depending on the instantaneous value of utilization = total_borrowed_value / total_supplied_value . Earned interest is accrued proportionally to all suppliers. The protocol retains 10% of borrowed interest as a buffer for future liquidations.

August 2026

6
  1. HIP-4 deployer actions

    Added the required venue and operation envelope to outcomeDeploy, documented semantic restrictions that deployers can be slashed for breaking, and described builder fees paid in the quote token on outcome buys.

    { "type": "activateOutcomeDeployer", "activate": { "venueName": <venue> } } { "type": "activateOutcomeDeployer", "deactivate": null } { "type": "outcomeDeploy", "venue": <venue>, "operation": { "<variant>": { ...variant fields...
    Full change

    The following actions are involved in deployment:

    { "type": "activateOutcomeDeployer", "activate": { "venueName": <venue> } } { "type": "activateOutcomeDeployer", "deactivate": null } { "type": "outcomeDeploy", "<variant>": { ...variant fields... } }

    { "type": "activateOutcomeDeployer", "activate": { "venueName": <venue> } } { "type": "activateOutcomeDeployer", "deactivate": null } { "type": "outcomeDeploy", "venue": <venue>, "operation": { "<variant>": { ...variant fields... } } } Outcomes and questions are referenced by the numeric index assigned at creation, e.g. "outcome": 7. Venue: every outcomeDeploy action carries a required top-level venue field, which must be the deployer's venue name (similar to the dex field on HIP-3 deployer actions). Sub-deployer actions pass the venue of the deployer they act for, and settlements must target outcomes and questions of that venue's deployer. Venue name: 2–4 lowercase ASCII letters, subject to the same rules as HIP-3 perp DEX names. The name must be unique across the venue names of all deployers — including deactivated ones, whose names stay reserved — and must not match an existing perp DEX name (nor spot). Conversely, a registered venue name cannot be claimed by a later perp DEX deployment. As with HIP-3, all lists of tuples should be lexicographically sorted before signing keywordToValue is a sorted list of tuples mapping each template keyword to its value. For example, [["expiry","20260801-0600"],["target","100"],["underlying","ABC"]]. Name-and-description values are two-element arrays: ["<name>", "<description>"]. sideNames arrays are ["<YES side name>", "<NO side name>"]. Amounts and settlement fractions are decimal strings ("1", "0.25").

    Activation

    A template fixes display name and description text containing {keyword} placeholders (e.g., "{underlying} above {target} at {expiry}") together with a typed hint per keyword. An instantiation supplies exactly one value per keyword.

    Template metadata includes a semanticRestriction field, which broadly defines the intended semantics of the markets instantiated from the template. Markets that contradict their template's semantic restriction are considered malformed and slashable by validators.

    Keyword value formats by hint type:

    Examples, expressed as multiples of the user's base outcome trading fee rate:

    deployerFeeScale Total user fee Deployer receives Protocol receives "1" 2x 1x 1x "3" 6x 3x 3x "10" 20x 10x 10x "0.5" 1.5x 0.5x 1x "0.25" 1.25x 0.25x 1x "0" 1x 0x 1x Builder codes

    Builder codes inherit spot behavior for sell orders. Builder codes can also be applied to buy orders for outcome orders, and are also charged in the quote token. These builder fees are charged by the protocol on a best-effort basis. Builder interfaces may validate sufficient quote token balance when computing the maximum order size.

    Action reference

    Deploys a standalone YES/NO market from a standalone outcome template.

    { "type": "outcomeDeploy", "registerStandaloneOutcomeFromTemplate": { "id": "abc", "keywordToValue": [ ["expiry", "20260801-0600"], ["target", "100"], ["underlying", "ABC"] ], "deployerFeeScale": "1" } }

    { "type": "outcomeDeploy", "venue": "ab", "operation": { "registerStandaloneOutcomeFromTemplate": { "id": "abc", "keywordToValue": [ ["expiry", "20260801-0600"], ["target", "100"], ["underlying", "ABC"] ], "deployerFeeScale": "1" } } }

    registerQuestionFromTemplate

    Deploys a question and its question outcomes in one action.

    { "type": "outcomeDeploy", "registerQuestionFromTemplate": { "questionTemplateInstance": { "id": "abc", "keywordToValue": [["expiry", "20260801-1830"]], "deployerFeeScale": "1" }, "namedOutcomeTemplateInstances": [ { "id": "abc-outcome", "keywordToValue": [["choice", "A"]] }, { "id": "abc-outcome", "keywordToValue": [["choice", "B"]] }, { "id": "abc-other", "keywordToValue": [] } ] } }

    { "type": "outcomeDeploy", "venue": "ab", "operation": { "registerQuestionFromTemplate": { "questionTemplateInstance": { "id": "abc", "keywordToValue": [["expiry", "20260801-1830"]], "deployerFeeScale": "1" }, "namedOutcomeTemplateInstances": [ { "id": "abc-outcome", "keywordToValue": [["choice", "A"]] }, { "id": "abc-outcome", "keywordToValue": [["choice", "B"]] }, { "id": "abc-other", "keywordToValue": [] } ] } } } Each question outcome template must declare the question template as its parent. The same question outcome template may be instantiated multiple times with different values. A question with N question outcomes registers N + 1 outcomes (the fallback is created automatically). All count toward the deployer's active-outcome cap. More question outcomes can be added to the live question with registerAndAssociateNamedOutcomeFromTemplate. Bounded to at most 100 question outcomes per question.

    registerAndAssociateNamedOutcomeFromTemplate

    Adds one question outcome to a live question of the deployer.

    { "type": "outcomeDeploy", "registerAndAssociateNamedOutcomeFromTemplate": { "question": 3, "namedOutcomeTemplateInstance": { "id": "abc-outcome", "keywordToValue": [["choice", "C"]] } } }

    { "type": "outcomeDeploy", "venue": "ab", "operation": { "registerAndAssociateNamedOutcomeFromTemplate": { "question": 3, "namedOutcomeTemplateInstance": { "id": "abc-outcome", "keywordToValue": [["choice", "C"]] } } } } The question must have been deployed from a template, and the question outcome template must declare the question's template as its parent. The new outcome inherits the question's deployerFeeScale and counts toward the deployer's active-outcome and daily caps. Holders of the question's fallback YES token receive an equal balance of the new outcome's YES token, so existing "other" positions keep their meaning.

    settleOutcome

    Settles one outcome of the deployer.

    { "type": "outcomeDeploy", "settleOutcome": { "outcome": 7, "settleFraction": "1", "details": "", "nameAndDescription": ["template:abc", "expiry:20260801-0600|target:100|underlying:ABC"], "sideNames": ["template:Over", "template:Under"] } }

    { "type": "outcomeDeploy", "venue": "ab", "operation": { "settleOutcome": { "outcome": 7, "settleFraction": "1", "details": "", "nameAndDescription": ["template:abc", "expiry:20260801-0600|target:100|underlying:ABC"], "sideNames": ["template:Over", "template:Under"] } } } nameAndDescription and sideNames must exactly match the outcome being settled. settleFraction is a decimal in [0, 1]. Standalone outcomes may settle to any fraction (e.g. "0.66" for scalar payouts); outcomes that belong to a question must settle to exactly "0" or "1". details must be empty. For question outcomes, settlement is sequential: question outcomes may settle to "0" in any order. A single outcome settles to "1" after it is the last active question outcome, which automatically settles the fallback to 0 and settles the question.

    settleQuestion2

    Settles all remaining question outcomes of a question in one action. Note: The original settleQuestion variant is discontinued.

    { "type": "outcomeDeploy", "settleQuestion2": { "question": 3, "outcomeSettlements": [ { "outcome": 11, "settleFraction": "1", "details": "", "nameAndDescription": ["template:abc-outcome", "choice:A"], "sideNames": ["Yes", "No"] }, { "outcome": 12, "settleFraction": "0", "details": "", "nameAndDescription": ["template:abc-outcome", "choice:B"], "sideNames": ["Yes", "No"] } ], "nameAndDescription": ["template:abc", "expiry:20260801-1830"] } }

    { "type": "outcomeDeploy", "venue": "ab", "operation": { "settleQuestion2": { "question": 3, "outcomeSettlements": [ { "outcome": 11, "settleFraction": "1", "details": "", "nameAndDescription": ["template:abc-outcome", "choice:A"], "sideNames": ["Yes", "No"] }, { "outcome": 12, "settleFraction": "0", "details": "", "nameAndDescription": ["template:abc-outcome", "choice:B"], "sideNames": ["Yes", "No"] } ], "nameAndDescription": ["template:abc", "expiry:20260801-1830"] } } } outcomeSettlements must cover exactly the question's remaining active question outcomes, with exactly one settling to "1" and all others to "0". The fallback settles to 0 automatically.

    setSubDeployers

    Grants or revokes sub-deployer permissions.

    { "type": "outcomeDeploy", "setSubDeployers": [ { "variant": "registerStandaloneOutcomeFromTemplate", "user": "0xSUB_DEPLOYER", "allowed": true }, { "variant": "settleOutcome", "user": "0xSUB_DEPLOYER", "allowed": true }, { "variant": "settleQuestion", "user": "0xFORMER_OPERATOR", "allowed": false } ] }

    { "type": "outcomeDeploy", "venue": "ab", "operation": { "setSubDeployers": [ { "variant": "registerStandaloneOutcomeFromTemplate", "user": "0xSUB_DEPLOYER", "allowed": true }, { "variant": "settleOutcome", "user": "0xSUB_DEPLOYER", "allowed": true }, { "variant": "settleQuestion", "user": "0xFORMER_OPERATOR", "allowed": false } ] } } A sub-deployer granted a variant can send that action on the deployer's behalf: registrations are created under the deployer's venue and count toward the deployer's limits, and settlements can only target the deployer's own outcomes and questions. variant is one of registerStandaloneOutcomeFromTemplate, registerQuestionFromTemplate, registerAndAssociateNamedOutcomeFromTemplate, settleOutcome, or settleQuestion. The settleQuestion grant authorizes the settleQuestion2 action. allowed adds or removes the user from the authorized set for the variant.

  2. Exchange endpoint

    Added an optional destination, which must be an existing user, to reserveRequestWeight so one account can pay for another user's request capacity.

    destination may be set to pay for another L1 user.
    Full change

    Instead of trading to increase the address based rate limits, this action allows reserving additional actions for 0.0005 USDC per request. The cost is paid from the Perps balance.

    destination may be set to pay for another L1 user. The destination user must already exist. This field is skipped in hashing if it is unset.

    Headers

    "type": "reserveRequestWeight",

    "destination": Address | null

    }

  3. Fees

    Raised the documented upper bound of the growth-mode deployer fee scale from one to ten.

    The deployer fee scale must be set between 0 and 10.
    Full change

    When a deployer activates growth mode, there is a ≥90% reduction on the all-in fees. Rebates and volume contributions will also be ≥90% lower. Growth mode applies on top of other multipliers, such as staking discounts. The following two conditions apply for growth mode:

    The deployer fee scale must be set between 0 and 1. As a reminder, deployer fee scale is the amount the deployer keeps as a percentage of the user’s fees before applying aligned stablecoin collateral discount, if applicable. For more information, see: HIP-3 deployer actions. Setting growth mode has a 30 day cooldown per asset.

    The deployer fee scale must be set between 0 and 10. As a reminder, deployer fee scale is the amount the deployer keeps as a percentage of the user’s fees before applying aligned stablecoin collateral discount, if applicable. For more information, see: HIP-3 deployer actions. Setting growth mode has a 30 day cooldown per asset.

    The markets must be entirely disjoint from existing validator-operated perps to prevent parasitic volume. For example, the below are not eligible for growth mode. This list of examples is illustrative and not comprehensive. Similar to delistings, the ultimate decider for disabling ineligible growth mode perps is onchain validator vote.

  4. Fees

    Added HIP-3 growth-mode fee reductions and eligibility rules and removed the referral-reward claim-page sentence.

    Growth mode for HIP-3 perps
    Full change

    Fees are based on your rolling 14 day volume and are assessed at the end of each day in UTC. Sub-account volume counts toward the master account and all sub-accounts share the same fee tier. Vault volume is treated separately from the master account. Referral rewards apply for a user's first $1B in volume and referral discounts apply for a user's first $25M in volume.

    Maker rebates are paid out continuously on each trade directly to the trading wallet. Users can claim referral rewards from the Referrals page.

    There are separate fee schedules for perps vs spot. Perps and spot volume will be counted together to determine your fee tier, and spot volume will count double toward your fee tier. i.e., (14d weighted volume) = (14d perps volume) + 2 * (14d spot volume).

    On most other protocols, the team or insiders are the main beneficiaries of fees. On Hyperliquid, fees are entirely directed to the community (HLP, the assistance fund, and deployers). Spot and HIP-3 perp deployers may choose to keep up to 50% of trading fees generated by their deployed assets. The assistance fund uses the system address 0xfefefefefefefefefefefefefefefefefefefefe. It converts trading fees to HYPE in a fully automated manner as part of the L1 execution. HYPE in the assistance fund is burned, removing the tokens permanently from the circulating and total supply.

    Growth mode for HIP-3 perps

    When a deployer activates growth mode, there is a ≥90% reduction on the all-in fees. Rebates and volume contributions will also be ≥90% lower. Growth mode applies on top of other multipliers, such as staking discounts. The following two conditions apply for growth mode:

    The deployer fee scale must be set between 0 and 1. As a reminder, deployer fee scale is the amount the deployer keeps as a percentage of the user’s fees before applying aligned stablecoin collateral discount, if applicable. For more information, see: HIP-3 deployer actions. Setting growth mode has a 30 day cooldown per asset.

    The markets must be entirely disjoint from existing validator-operated perps to prevent parasitic volume. For example, the below are not eligible for growth mode. This list of examples is illustrative and not comprehensive. Similar to delistings, the ultimate decider for disabling ineligible growth mode perps is onchain validator vote.

    Crypto perps against any collateral

    Perps on crypto indexes, ETFs, or other baskets of crypto assets

    Perps on mathematical combinations including crypto assets, such as a linear combination of BTC and another asset’s price

    Perps on vehicles or wrappers that hold primarily crypto assets

    Perps tracking gold price, because PAXG-USDC already tracks gold price

    In summary, the baseline all-in taker rate under growth mode will be between 0.0045%-0.009% (5-10x lower than the 0.045% baseline fee for validator-operated perps).

    Staking linking

    No action is required if you plan to trade and stake from the same address.

    Outcome Tokens

    Outcome tokens

    Outcome trading only charges fees when closing or settling, not when opening outcome positions. Only fee-paying volume is counted for outcome trading. There are 6 cases for outcome trades which are special cases of this logic:

  5. HIP-3: Builder-deployed perpetuals

    Changed HIP-3 reserve deployments from a fixed seven to seven plus 0.2 times the number of auction deployments.

    The first 3 assets deployed in any perp dex do not require auction participation.
    Full change

    HIP-3 deployers are not subject to slashing related to quote assets. On a future upgrade, dexs with disabled quote assets would support migration to a new collateral token. This is not expected to happen on mainnet, as quote token deployers have their separate staking and slashing conditions. In summary, the quote asset choice is important for trading fee and product considerations, but is not an existential risk for HIP-3 deployers.

    The first 3 assets deployed in any perp dex do not require auction participation. Additional assets go through a Dutch auction with the same hyperparameters (including frequency and minimum price) as the HIP-1 auction. The HIP-3 auction for additional perps is shared across all perp dexs. Future upgrades will support improved ergonomics around reserving assets for time-sensitive future deployments. Deployers also get 7 reserve deployments that can be used at the current auction price, but bypassing the auction timer.

    The first 3 assets deployed in any perp dex do not require auction participation. Additional assets go through a Dutch auction with the same hyperparameters (including frequency and minimum price) as the HIP-1 auction. The HIP-3 auction for additional perps is shared across all perp dexs. Future upgrades will support improved ergonomics around reserving assets for time-sensitive future deployments. Deployers also get 7 + 0.2 * n_auction_deployments reserve deployments that can be used at the current auction price, but bypassing the auction timer.

    HIP-3 markets incorporate the usual sources of trading fee discounts, including staking discounts, referral rewards, and aligned collateral discount. HIP-3 deployers can configure an additional fee share between 0-300% (0-100% for growth mode). If the share is above 100%, the protocol fee is also increased to be equal to the deployer fee.

  6. Portfolio margin

    Added direct handling by the backstop liquidator, partial liquidation intervals, slippage limits on takeovers, and TWAP behavior for collateral conversion.

    Portfolio margin liquidations are taken over directly by the backstop liquidator at system address 0xbbb...b .
    Full change

    Depending on the order of oracle price updates, either perp positions or spot borrows may be liquidated first. In other words, once portfolio margin ratio is liquidatable, users should not expect a deterministic liquidation sequence.

    Portfolio margin liquidations are taken over directly by the backstop liquidator at system address 0xbbb...b . If the user health is below the full liquidation threshold, the supplied assets with positive LTV and borrowed assets are fully taken over by the backstop liquidator. If the user health is between the partial liquidation and full liquidation threshold, supplied assets with positive LTV and borrowed assets are instead taken over in 20% intervals, stopping as soon as the user is no longer liquidatable. The slippage threshold for takeover is size_liquidated * oracle_price * (LTV(asset) + 2) / 3) * width where width is 3M USDC for HYPE and 300k USDC for BTC. The backstop liquidator converts collateral assets to debt assets for repayment, using a TWAP with a half life of 10 minutes. Unlike perps, there is no market liquidation phase, as spot books have less consistent liquidity than perps.

July 2026

7
  1. Exchange endpoint

    Documented custom API-agent expiry using a valid_until suffix with a maximum of 180 days.

    "agentName": Optional name for the API wallet.
    Full change

    "agentAddress": address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000,

    "agentName": Optional name for the API wallet. An account can have 1 unnamed approved wallet and up to 3 named ones. And additional 2 named agents are allowed per subaccount. A custom expiration can be set by appending valid_until {timestamp} after the name. The expiration can be at most 180 days in the future,

    "nonce": current timestamp in milliseconds as a Number, must match nonce in outer request body

  2. Exchange endpoint

    Added the optional fast flag to cancellation actions and always_place behavior to single and batch order modifications.

    "f": Boolean // fast
    Full change

    }

    "f": Boolean // fast

    } Meaning of keys: a is asset o is oid (order id)

    { "status":"ok", "response":{ "type":"cancel", "data":{ "statuses":[ { "error":"Order was never placed, already canceled, or filled." } ] } } }

    Both cancel and cancelByCloid actions include an optional fast flag, encoded as f in the action. Orders with f: true are rejected if they refer to trigger orders. Currently fast has no other effect. In a future network upgrade, cancel actions will be prioritized in the mempool if and only if fast = true.

    Note that f must be skipped if false, i.e. actions hashed with f: false will be rejected.

    Cancel order(s) by cloid

    }

    "f": Boolean // fast

    }

    "c": Cloid (optional)

    "a": Boolean // always_place

    } Meaning of keys: a is asset b is isBuy p is price s is size r is reduceOnly t is type c is cloid (client order id)

    Timestamp in milliseconds

    Both single and batch modify actions include an optional always_place flag, encoded as a in the action. When always_place = true will place the new order regardless of whether the cancel succeeded. When always_place = false the new order must be a non-trigger order, and must have TIF = ALO or a non-executable order with TIF = GTC. In the latter case, TIF of the new order is overridden to ALO.

    Note that a must be skipped if false, i.e. actions hashed with a: false will be rejected.

    Modify multiple orders

    }

    "a": Boolean // always_place

    } Meaning of keys: a is asset b is isBuy p is price s is size r is reduceOnly t is type c is cloid (client order id)

  3. Info endpoint: Spot

    Removed the testnet-only qualifier from outcome metadata and added the settledOutcome request with settlement-fraction and USDC examples.

    Retrieve information about a settled outcome
    Full change

    { "name": "TEST", "maxSupply": "1852229076.12716007", "totalSupply": "851681534.05516005", "circulatingSupply": "851681534.05516005", "szDecimals": 0, "weiDecimals": 5, "midPx": "3.2049", "markPx": "3.2025", "prevDayPx": "3.2025", "genesis": { "userBalances": [ [ "0x0000000000000000000000000000000000000001", "1000000000.0" ], [ "0xffffffffffffffffffffffffffffffffffffffff", "1000000000.0" ] ], "existingTokenBalances": [] }, "deployer": "0x0000000000000000000000000000000000000001", "deployGas": "100.0", "deployTime": "2024-06-05T10:50:59.434", "seededUsdc": "0.0", "nonCirculatingUserBalances": [], "futureEmissions": "0.0" }

    Retrieve outcome metadata (testnet-only)

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

    { "outcomes": [ { "outcome": 123, "name": "Recurring", "description": "class:priceBinary|underlying:HYPE|expiry:20260310-1100|targetPrice:34.5|period:3m", "sideSpecs": [ { "name": "Yes" }, { "name": "No" } ] } ] }

    Retrieve information about a settled outcome

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

    Headers

    Name

    Value

    Content-Type*

    "application/json"

    Body

    Name

    Type

    Description

    type*

    String

    "settledOutcome"

    outcome*

    int

    outcome

    Response

    { "spec": { "outcome": 95, "name": "Recurring", "description": "class:priceBinary|underlying:BTC|expiry:20260526-0600|targetPrice:77363|period:1d", "sideSpecs": [ { "name": "Yes" }, { "name": "No" } ], "quoteToken": "USDC" }, "settleFraction": "0.0", "details": "price:76876.9" }

  4. Info endpoint

    Removed the alignedQuoteTokenInfo query section from the info endpoint reference.

    Query aligned quote token status
    Full change

    "unifiedAccount" | "portfolioMargin" | "disabled" | "default" | "dexAbstraction"

    Query aligned quote token status

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

    Headers

    Name

    Type

    Description

    Content-Type*

    String

    "application/json"

    Request Body

    Name

    Type

    Description

    type*

    String

    "alignedQuoteTokenInfo"

    token*

    Number

    token index

    { "isAligned": true, "firstAlignedTime": 1758949452538, "evmMintedSupply": "0.0", "dailyAmountOwed": [ [ "2025-10-04", "0.0" ], [ "2025-10-05", "0.0" ], ... ], "predictedRate": "0.01" }

    Query borrow/lend user state

  5. Portfolio margin

    Replaced alpha-only restrictions with account-value eligibility, removed USDH limits, updated supply and borrow caps, and revised collateral and testing guidance.

    IMPORTANT: Portfolio margin is a complex technical upgrade and requires bootstrapping the supply side for borrowable assets.
    Full change

    Portfolio margin

    Alpha mode

    Under portfolio margin, a user’s spot and perps trading are unified for greater capital efficiency. Furthermore, portfolio margin accounts automatically earn yield on all borrowable assets not actively used for trading.

    Users can supply eligible quote assets to earn yield. This synergizes and composes with HyperEVM lending protocols. In a future upgrade, CoreWriter will expose the same supply action for smart contracts. Portfolio margin intentionally does not bring a full-fledged lending market to HyperCore, as that is best built by independent teams on the EVM. For example, HyperCore lending is not tokenized, but an EVM protocol could do so by launching a fully onchain yield-bearing ERC20 token contract through CoreWriter and precompiles. Portfolio margin introduces organic demand to borrow and should expand the value proposition of teams building on the HyperEVM.

    IMPORTANT: Portfolio margin is a complex technical upgrade and requires bootstrapping the supply side for borrowable assets. Portfolio margin accounts will fall back to non-portfolio margin behavior when caps are hit. During alpha mode, the following requirements apply:

    IMPORTANT: Portfolio margin is a complex technical upgrade and requires bootstrapping the supply side for borrowable assets. Portfolio margin accounts will fall back to non-portfolio margin behavior when caps are hit. The following requirements apply:

    Master account >$5M in weighted volume or account value >$10k

    Account value <$25M

    USDT: 50M USDT global supply cap, 10M USDT global borrow cap, 5M USDT user supply cap, 1M USDT user borrow cap

    USDH: 500M USDH global supply cap, 100M USDH global borrow cap, 5M USDH user supply cap, 1M USDH user borrow cap

    USDC: 1B USDC global supply cap, 200M USDC global borrow cap, 50M USDC user supply cap, 10M USDC user borrow cap

    HYPE: 10M HYPE global supply cap, 500k HYPE user supply cap

    BTC: 4k BTC global supply cap, 200 BTC user supply cap

    USDC: 1B USDC global supply cap, 500M USDC global borrow cap, 250M USDC user supply cap, 50M USDC user borrow cap

    HYPE: 10M HYPE global supply cap, 1M HYPE user supply cap

    BTC: 2k BTC global supply cap, 200 BTC user supply cap

    LTV and borrowing

    Under portfolio margin, eligible collateral assets have an LTV (loan-to-value) ratio between 0 and 1. During pre-alpha, HYPE will have an LTV of 0.5. When placing spot and perp orders under portfolio margin, insufficient balance will automatically borrowed against eligible collateral up to token_balance * borrow_oracle_price * ltv , where price is denominated in the asset being borrowed.

    Borrowed assets accrue interest continuously, and are indexed hourly to match the perp funding interval. Portfolio margin users pay interest on borrowed assets and earn interest on idle assets according to the same rate. During pre-alpha, the borrow interest rate for stablecoins is set at 0.05 + 4.75 * max(0, utilization - 0.8) APY, compounded continuously depending on the instantaneous value of utilization = total_borrowed_value / total_supplied_value . Earned interest is accrued proportionally to all suppliers. The protocol retains 10% of borrowed interest as a buffer for future liquidations.

    Under portfolio margin, eligible collateral assets have an LTV (loan-to-value) ratio between 0 and 1. HYPE and BTC have an LTV of 0.5. When placing spot and perp orders under portfolio margin, insufficient balance will automatically borrowed against eligible collateral up to token_balance * borrow_oracle_price * ltv , where price is denominated in the asset being borrowed.

    Borrowed assets accrue interest continuously, and are indexed hourly to match the perp funding interval. Portfolio margin users pay interest on borrowed assets and earn interest on idle assets according to the same rate. The borrow interest rate for stablecoins is set at 0.05 + 4.75 * max(0, utilization - 0.8) APY, compounded continuously depending on the instantaneous value of utilization = total_borrowed_value / total_supplied_value . Earned interest is accrued proportionally to all suppliers. The protocol retains 10% of borrowed interest as a buffer for future liquidations.

    Example: Carry trade

    The account becomes liquidatable when portfolio_margin_ratio > 0.95. All notional values in the above definition are converted to USDC using borrow_oracle_price(token) .

    During mainnet pre-alpha, the caps per user will begin at borrow_cap(USDC) = 1000 and supply_cap(HYPE) = 200. After borrow caps are hit, additional margin used must be supplied by the user using the settlement asset regardless of whether portfolio margin is active. Therefore, the best way to test the full portfolio margin behavior is to use small test accounts.

    Depending on the order of oracle price updates, either perp positions or spot borrows may be liquidated first. In other words, once portfolio margin ratio is liquidatable, users should not expect a deterministic liquidation sequence.

  6. HIP-4: Outcome markets

    Documented custom side names through sideSpecs and fractional settlement through settleFraction, and corrected wording.

    Outcomes are fully collateralized contracts that settle within a fixed range.
    Full change

    Overview

    Outcomes are fully collateralized contracts that settle within a fixed range. They are a general-purpose primitive that are useful for applications such as prediction markets and bounded options-like instruments.

    Outcomes are fully collateralized contracts that settle within a fixed range. HIP-4 is a general-purpose primitive that is useful for applications such as prediction markets and bounded options-like instruments.

    Outcomes bring non-linearity, dated contracts, and an alternative form of derivative trading that does not involve leverage or liquidations. The outcome primitive expands the expressivity of HyperCore, while composing with other primitives such as portfolio margin and the HyperEVM.

    The first market is a recurring binary outcome that settles daily at 06:00 UTC to the BTC mark price on HyperCore mark prices. See the spec here. Multi-outcome markets will be supported but not part of the initial mainnet release. Additional features and markets will be rolled out in stages.

    The first market is a recurring binary outcome that settles daily at 06:00 UTC to the BTC mark price on HyperCore mark prices. See the spec here. Multi-outcome markets will be supported but are not part of the initial mainnet release. Additional features and markets will be rolled out in stages.

    The outcome trading API is similar to spot, with key differences highlighted here: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/asset-ids.

    Mechanics

    Each outcome market consists of two sides, each with a token. Usually the tokens are labeled Yes and No. Settlement automatically converts either Yes to 1 quote token and No to 0 quote tokens, or vice versa.

    The order books of Yes and No tokens for the same outcome are merged to share liquidity. For example, an order to buy Yes at price p is equivalent to an order to Sell No at price 1-p. Under the merged book, price-time priority generalizes to price-side-time priority. In other words, for orders at the same merged price level, the resting sell orders are sorted before all resting buy dual orders. Advanced users may also manually split and merge outcomes to convert between primary and dual balances. See here for API examples.

    Each outcome market consists of two sides, each with a token. The tokens are labeled by sideSpecs in the outcomeMeta info endpoint, often Yes and No. Settlement automatically converts either Yes to settleFraction quote tokens and No to 1 - settleFraction quote tokens. In particular, settleFraction = 1 for "binary yes" and settleFraction = 0 for "binary no" settlement.

    The order books of Yes and No tokens for the same outcome are merged to share liquidity. For example, an order to buy Yes at price p is equivalent to an order to sell No at price 1-p. Under the merged book, price-time priority generalizes to price-side-time priority. In other words, for orders at the same merged price level, the resting sell orders are sorted before all resting buy dual orders. Advanced users may also manually split and merge outcomes to convert between primary and dual balances. See here for API examples.

    Most operations abstract the dual book's liquidity from the user's perspective. However, there are a few examples whose ergonomics will be improved on a future network upgrade. For example, historical orders can return the primary and dual orders separately if a user sends an order that both matches and rests on the book.

    Questions are collections of outcomes that where exactly one outcome will settle to Yes, and all others will settle to No. Each outcome trades on a separate order book, but are linked by negate and merge operations. See here for API examples. In other words, users with No shares on different outcomes of the same question can redeem quote tokens before the underlying outcomes settle.

    Questions are collections of outcomes where exactly one outcome will settle to Yes, and all others will settle to No. Each outcome trades on a separate order book, but is linked by negate and merge operations. See here for API examples. In other words, users with No shares on different outcomes of the same question can redeem quote tokens before the underlying outcomes settle.

    Fees are currently zero for outcome markets for initial testing. However, builder codes do work the same as normal spot trading, where builders earn builder fees on sell orders that specify their builder code.

  7. Staking

    Corrected staking prose, including the distinction between jailing and slashing, without changing the one-day delegation lock or seven-day withdrawal queue.

    Within the staking account, HYPE may be staked to any number of validators.
    Full change

    HYPE staking on Hyperliquid happens within HyperCore. Just as USDC can be transferred between perps and spot accounts, HYPE can be transferred between spot and staking accounts.

    Within the staking account, HYPE may be staked to any number of validators. Here and in other docs, delegate and stake are used interchangeably, as Hyperliquid only supports delegated proof of stake.

    Each validator has a self-delegation requirement of 10k HYPE to become active. The self-delegation requirement is locked for one year. Any time that the self-delegation for a validator drops below 10k HYPE, the validator enters undelegate-only mode. In other words, where all future delegations to this validator are disabled, so the validator's total stake can only decrease going forward.

    Within the staking account, HYPE may be staked to any number of validators. Here and in other docs, delegate and stake are used interchangeably, as Hyperliquid only supports delegated proof-of-stake.

    Each validator has a self-delegation requirement of 10k HYPE to become active. The self-delegation requirement is locked for one year. Any time that the self-delegation for a validator drops below 10k HYPE, the validator enters undelegate-only mode (i.e., where all future delegations to this validator are disabled), so the validator's total stake can only decrease going forward.

    Once active, validators produce blocks and receive rewards proportional to their total delegated stake. Validators may charge a commission to their delegators. This commission cannot be increased unless the new commission is less than or equal to 1%. This prevents scenarios where a validator attracts a large amount of stake and then raises the commission significantly to take advantage of unaware stakers.

    Delegations to a particular validator have a lockup duration of 1 day. After this lockup, delegations may be partially or fully undelegated at any time. Undelegated balances instantly reflect in staking account balance.

    Transfers from spot account to staking account are instant. However, transfers from staking account to spot account have a 7 day unstaking queue. Most other proof of stake chains have a similar mechanism, which ensures that large-scale consensus attacks are penalized by slashing or social layer mechanisms. There is currently no automatic slashing implemented. Each address may have at most 5 pending withdrawals in the unstaking queue.

    Transfers from spot account to staking account are instant. However, transfers from staking account to spot account have a 7 day unstaking queue. Most other proof-of-stake chains have a similar mechanism, which ensures that large-scale consensus attacks are penalized by slashing or social layer mechanisms. There is currently no automatic slashing implemented. Each address may have at most 5 pending withdrawals in the unstaking queue.

    As an example, if you initiate a staking to spot transfer of 100 HYPE at 08:00:00 UTC on March 11 and a transfer of 50 HYPE at 09:00:00 UTC on March 12, the 100 HYPE transfer will be finalized at 08:00:01 UTC on March 18 and the 50 HYPE transfer will be finalized at 09:00:01 UTC on March 19.

    The staking reward rate formula is inspired by Ethereum, where the reward rate is inversely proportional to the square root of total HYPE staked. At 400M total HYPE staked, the yearly reward rate is approximately 2.37% per year. Staking rewards come from the future emissions reserve.

    The staking reward rate formula is inspired by Ethereum, where the reward rate is inversely proportional to the square root of total HYPE staked. At 400M total HYPE staked, the reward rate is approximately 2.37% per year. Staking rewards come from the future emissions reserve.

    Technical Details

    The notion of a quorum is essential to modern proof of stake consensus algorithms such as HyperBFT. A quorum is any set of validators that has more than ⅔ of the total stake in the network. The operating requirement of consensus is that a quorum of stake is honest (non-Byzantine). Therefore it is an essential responsibility of every staker to only delegate to trusted validators.

    The notion of a quorum is essential to modern proof-of-stake consensus algorithms such as HyperBFT. A quorum is any set of validators that has more than ⅔ of the total stake in the network. The operating requirement of consensus is that a quorum of stake is honest (non-Byzantine). Therefore it is an essential responsibility of every staker to only delegate to trusted validators.

    HyperBFT consensus proceeds in rounds, which is a fundamental discrete bundle of transactions along with signatures from a quorum of validators. Each round may be committed after certain conditions are met, after which it is sent to the execution state for processing. A key property of the consensus algorithm is that all honest nodes agree on the ordered list of committed rounds.

    The validator set evolves in epochs of 100k rounds, which is approximately 90 minutes on mainnet. The validators and consensus stakes are static for each staking epoch.

    Validators may vote to jail peers that do not respond with adequate latency or frequency to the consensus messages of the voter. Upon receiving a quorum of jail votes, a validator becomes jailed and no longer participates in consensus. A jailed validator does not produce rewards for its delegators. A validator may unjail themselves by diagnosing and fixing the causes, subject to onchain unjailing rate limits. Note that jailing is not the same slashing, which is reserved for provably malicious behavior such as double-signing blocks at the same round.

    Validators may vote to jail peers that do not respond with adequate latency or frequency to the consensus messages of the voter. Upon receiving a quorum of jail votes, a validator becomes jailed and no longer participates in consensus. A jailed validator does not produce rewards for its delegators. A validator may unjail itself by diagnosing and fixing the causes, subject to onchain unjailing rate limits. Note that jailing is not the same as slashing, which is reserved for provably malicious behavior such as double-signing blocks at the same round.

June 2026

6
  1. Builder codes

    Required builder-code recipients to use Standard account abstraction.

    In order to use builder codes, the end user would first approve a max fee for the builder address via the ApproveBuilderFee action.
    Full change

    Builder codes allow builders to receive a fee on fills that they send on behalf of a user. They are set per-order for maximal flexibility. The user must approve a maximum builder fee for each builder, and can revoke permissions at any time. Builder codes are processed entirely onchain as part of the fee logic.

    In order to use builder codes, the end user would first approve a max fee for the builder address via the ApproveBuilderFee action. This action must be signed by the user's main wallet, not an agent/API wallet. The builder must have at least 100 USDC in perps account value and must use standard as the account abstraction mode.

    Builder codes currently only apply to fees that are collected in the quote or collateral asset. In other words, builder codes do not apply to the buying side of spot trades but apply to both sides of perp trades. Builder fees charged can be at most 0.1% on perps and 1% on spot.

  2. Portfolio margin

    Changed the example quote asset from USDH to USDC, added USDT borrowing caps, and increased documented USDC, HYPE, and BTC capacities.

    Portfolio margin unlocks functionality such as the carry trade where a spot balance is offset by a short perps position, collateralized by the spot balance.
    Full change

    Under portfolio margin, a user’s spot and perps trading are unified for greater capital efficiency. Furthermore, portfolio margin accounts automatically earn yield on all borrowable assets not actively used for trading.

    Portfolio margin unlocks functionality such as the carry trade where a spot balance is offset by a short perps position, collateralized by the spot balance. Spot and perp pnl offset each other, protecting against liquidation on the perp position. More generally, spot and perps trading can be performed from a single unified balance. For example, a user could also hold HYPE and immediately buy BTC on the BTC/USDH book. All HIP-3 DEXs are included in portfolio margin, though not all HIP-3 DEX collateral assets are borrowable. Future HyperCore asset classes and primitives will support portfolio margin as well.

    Portfolio margin unlocks functionality such as the carry trade where a spot balance is offset by a short perps position, collateralized by the spot balance. Spot and perp pnl offset each other, protecting against liquidation on the perp position. More generally, spot and perps trading can be performed from a single unified balance. For example, a user could also hold HYPE and immediately buy BTC on the BTC/USDC book. All HIP-3 DEXs are included in portfolio margin, though not all HIP-3 DEX collateral assets are borrowable. Future HyperCore asset classes and primitives will support portfolio margin as well.

    Users can supply eligible quote assets to earn yield. This synergizes and composes with HyperEVM lending protocols. In a future upgrade, CoreWriter will expose the same supply action for smart contracts. Portfolio margin intentionally does not bring a full-fledged lending market to HyperCore, as that is best built by independent teams on the EVM. For example, HyperCore lending is not tokenized, but an EVM protocol could do so by launching a fully onchain yield-bearing ERC20 token contract through CoreWriter and precompiles. Portfolio margin introduces organic demand to borrow and should expand the value proposition of teams building on the HyperEVM.

    Master account >$5M in weighted volume

    USDT: 50M USDT global supply cap, 10M USDT global borrow cap, 5M USDT user supply cap, 1M USDT user borrow cap

    USDH: 500M USDH global supply cap, 100M USDH global borrow cap, 5M USDH user supply cap, 1M USDH user borrow cap

    USDC: 500M USDC global supply cap, 100M USDC global borrow cap, 5M USDC user supply cap, 1M USDC user borrow cap

    HYPE: 1M HYPE global supply cap, 50k HYPE user supply cap

    BTC: 400 BTC global supply cap, 20 BTC user supply cap

    USDC: 1B USDC global supply cap, 200M USDC global borrow cap, 50M USDC user supply cap, 10M USDC user borrow cap

    HYPE: 10M HYPE global supply cap, 500k HYPE user supply cap

    BTC: 4k BTC global supply cap, 200 BTC user supply cap

    LTV and borrowing

  3. WebSocket subscriptions

    Added outcome metadata updates, spot state and cross-DEX streams, and compressed fast asset contexts, and clarified the related response types.

    Optional parameters: nSigFigs: int, mantissa: int , fast: boolean (5 levels if fast, 20 levels if slow)
    Full change

    Subscription message: { "type": "l2Book", "coin": "<coin_symbol>" }

    Optional parameters: nSigFigs: int, mantissa: int , fast: boolean (5 levels if fast, 20 levels if slow)

    Data format: WsBook

    Data format: WsUserEvent

    Note: The channel name for userEvents messages is "channel": "user"

    userFills:

    Data format: WsBbo

    spotState

    Subscription message: { "type": "spotState", "user": "<address>", "isPortfolioMargin": bool }

    Data format: WsSpotState

    isPortfolioMargin is an optional argument

    allDexsClearinghouseState

    Subscription message: { "type": "allDexsClearinghouseState", "user": "<address>" }

    Data format: WsAllDexsClearinghouseState

    allDexsAssetCtxs

    Subscription message: { "type": "allDexsAssetCtxs" }

    Data format: WsAllDexsAssetCtxs

    outcomeMetaUpdates

    Subscription message: { "type": "outcomeMetaUpdates" }

    Data format: WsOutcomeMetaUpdates

    fastAssetCtxs

    { "method": "subscribe", "subscription": { "type": "fastAssetCtxs" } }

    Data format: base64 encoded and compressed WsFastAssetCtx

    To read data, apply in order: 1. base64-decode to bytes 2. decompress: a raw DEFLATE stream (RFC 1951) — there is no zlib (RFC 1950) or gzip (RFC 1952) wrapper. Python zlib.decompress(b, wbits=-15), browsers new DecompressionStream("deflate-raw"), Node fflate.inflateSync 3. UTF-8 decode and parse as JSON 4. Example to test your implementation payload: "q1ZyCnFWsqpWyk0syg6oULJSsjQ3NTDQM1Wq1VFyDfFAkTI2MzXQMwJLVVRWWfmFuTiiyBuamOoZKdXWAgA=" decoded: { "BTC": { "markPx": "97500.5" }, "ETH": { "markPx": "3650.25" }, "xyz:NVDA": { markPx": "145.2" }}

    The first message is a snapshot, subsequent messages contain only coins that have updated. Fields that have no updates are omitted.

    Data formats

    WsBbo : Bbo updates that are sent only if the bbo changes on a block

    WsSpotState : Spot state update.

    WsAllDexsClearinghouseState : Clearinghouse states across all dexs for specific user

    WsAllDexsAssetCtxs : Asset contexts across all dexs

    WsOutcomeMetaUpdates : Changes to the outcome meta

    For the streaming user endpoints such as WsUserFills,WsUserFundings the first message has isSnapshot: true and the following streaming updates have isSnapshot: false.

    Here are the definitions of the data types used in the WebSocket API:

    interface WsTrade { coin: string; side: string; px: string; sz: string; hash: string; time: number; // tid is 50-bit hash of (buyer_oid, seller_oid). // For a globally unique trade id, use (block_time, coin, tid) tid: number; users: [string, string] // [buyer, seller] } // Snapshot feed, pushed on each block that is at least 0.5 since last push interface WsBook { coin: string; levels: [Array<WsLevel>, Array<WsLevel>]; time: number; } interface WsBbo { coin: string; time: number; bbo: [WsLevel | null, WsLevel | null]; } interface WsLevel { px: string; // price sz: string; // size n: number; // number of orders } interface Notification { notification: string; } interface AllMids { mids: Record<string, string>; } interface Candle { t: number; // open millis T: number; // close millis s: string; // coin i: string; // interval o: number; // open price c: number; // close price h: number; // high price l: number; // low price v: number; // volume (base unit) n: number; // number of trades } type WsUserEvent = {"fills": WsFill[]} | {"funding": WsUserFunding} | {"liquidation": WsLiquidation} | {"nonUserCancel" :WsNonUserCancel[]}; interface WsUserFills { isSnapshot?: boolean; user: string; fills: Array<WsFill>; } interface WsFill { coin: string; px: string; // price sz: string; // size side: string; time: number; startPosition: string; dir: string; // used for frontend display closedPnl: string; hash: string; // L1 transaction hash oid: number; // order id crossed: boolean; // whether order crossed the spread (was taker) fee: string; // negative means rebate tid: number; // unique trade id liquidation?: FillLiquidation; feeToken: string; // the token the fee was paid in builderFee?: string; // amount paid to builder, also included in fee } interface FillLiquidation { liquidatedUser?: string; markPx: number; method: "market" | "backstop"; } interface WsUserFunding { time: number; coin: string; usdc: string; szi: string; fundingRate: string; } interface WsLiquidation { lid: number; liquidator: string; liquidated_user: string; liquidated_ntl_pos: string; liquidated_account_value: string; } interface WsNonUserCancel { coin: String; oid: number; } interface WsOrder { order: WsBasicOrder; status: string; // See https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-order-status-by-oid-or-cloid for a list of possible values statusTimestamp: number; } interface WsBasicOrder { coin: string; side: string; limitPx: string; sz: string; oid: number; timestamp: number; origSz: string; cloid: string | undefined; } interface WsActiveAssetCtx { coin: string; ctx: PerpsAssetCtx; } interface WsActiveSpotAssetCtx { coin: string; ctx: SpotAssetCtx; } type SharedAssetCtx = { dayNtlVlm: number; prevDayPx: number; markPx: number; midPx?: number; }; type PerpsAssetCtx = SharedAssetCtx & { funding: number; openInterest: number; oraclePx: number; }; type SpotAssetCtx = SharedAssetCtx & { circulatingSupply: number; }; interface WsActiveAssetData { user: string; coin: string; leverage: Leverage; maxTradeSzs: [number, number]; availableToTrade: [number, number]; } interface WsTwapSliceFill { fill: WsFill; twapId: number; } interface WsUserTwapSliceFills { isSnapshot?: boolean; user: string; twapSliceFills: Array<WsTwapSliceFill>; } interface TwapState { coin: string; user: string; side: string; sz: number; executedSz: number; executedNtl: number; minutes: number; reduceOnly: boolean; randomize: boolean; timestamp: number; } type TwapStatus = "activated" | "terminated" | "finished" | "error"; interface WsTwapHistory { state: TwapState; status: { status: TwapStatus; description: string; }; time: number; } interface WsUserTwapHistory { isSnapshot?: boolean; user: string; history: Array<WsTwapHistory>; } // Additional undocumented fields in WebData3 will be removed on a future update interface WebData3 { userState: { agentAddress: string | null; agentValidUntil: number | null; serverTime: number; cumLedger: number; isVault: boolean; user: string; optOutOfSpotDusting?: boolean; dexAbstractionEnabled?: boolean; }; perpDexStates: Array<PerpDexState>; } interface PerpDexState { totalVaultEquity: number; perpsAtOpenInterestCap?: Array<string>; leadingVaults?: Array<LeadingVault>; } interface LeadingVault { address: string; name: string; } interface ClearinghouseState { assetPositions: Array<AssetPosition>; marginSummary: MarginSummary; crossMarginSummary: MarginSummary; crossMaintenanceMarginUsed: number; withdrawable: number; } interface MarginSummary { accountValue: number; totalNtlPos: number; totalRawUsd: number; totalMarginUsed: number; } interface AssetPosition { type: "oneWay"; position: Position } interface OpenOrders { dex: string; user: string; orders: Array<Order>; } interface TwapStates { dex: string; user: string; states: Array<[number, TwapState]>; }

    interface WsTrade { coin: string; side: string; px: string; sz: string; hash: string; time: number; // tid is 50-bit hash of (buyer_oid, seller_oid). // For a globally unique trade id, use (block_time, coin, tid) tid: number; users: [string, string] // [buyer, seller] } // Snapshot feed, pushed on each block that is at least 0.5 since last push interface WsBook { coin: string; levels: [Array<WsLevel>, Array<WsLevel>]; time: number; } interface WsBbo { coin: string; time: number; bbo: [WsLevel | null, WsLevel | null]; } interface WsLevel { px: string; // price sz: string; // size n: number; // number of orders } interface Notification { notification: string; } interface AllMids { mids: Record<string, string>; } interface Candle { t: number; // open millis T: number; // close millis s: string; // coin i: string; // interval o: number; // open price c: number; // close price h: number; // high price l: number; // low price v: number; // volume (base unit) n: number; // number of trades } type WsUserEvent = {"fills": WsFill[]} | {"funding": WsUserFunding} | {"liquidation": WsLiquidation} | {"nonUserCancel" :WsNonUserCancel[]}; interface WsUserFills { isSnapshot?: boolean; user: string; fills: Array<WsFill>; } interface WsFill { coin: string; px: string; // price sz: string; // size side: string; time: number; startPosition: string; dir: string; // used for frontend display closedPnl: string; hash: string; // L1 transaction hash oid: number; // order id crossed: boolean; // whether order crossed the spread (was taker) fee: string; // negative means rebate tid: number; // unique trade id liquidation?: FillLiquidation; feeToken: string; // the token the fee was paid in builderFee?: string; // amount paid to builder, also included in fee } interface FillLiquidation { liquidatedUser?: string; markPx: number; method: "market" | "backstop"; } interface WsUserFunding { time: number; coin: string; usdc: string; szi: string; fundingRate: string; } interface WsLiquidation { lid: number; liquidator: string; liquidated_user: string; liquidated_ntl_pos: string; liquidated_account_value: string; } interface WsNonUserCancel { coin: String; oid: number; } interface WsOrder { order: WsBasicOrder; status: string; // See https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-order-status-by-oid-or-cloid for a list of possible values statusTimestamp: number; } interface WsBasicOrder { coin: string; side: string; limitPx: string; sz: string; oid: number; timestamp: number; origSz: string; cloid: string | undefined; } interface WsActiveAssetCtx { coin: string; ctx: PerpsAssetCtx; } interface WsActiveSpotAssetCtx { coin: string; ctx: SpotAssetCtx; } type SharedAssetCtx = { dayNtlVlm: number; prevDayPx: number; markPx: number; midPx?: number; }; type PerpsAssetCtx = SharedAssetCtx & { funding: number; openInterest: number; oraclePx: number; }; type SpotAssetCtx = SharedAssetCtx & { circulatingSupply: number; }; interface WsActiveAssetData { user: string; coin: string; leverage: Leverage; maxTradeSzs: [number, number]; availableToTrade: [number, number]; } interface WsTwapSliceFill { fill: WsFill; twapId: number; } interface WsUserTwapSliceFills { isSnapshot?: boolean; user: string; twapSliceFills: Array<WsTwapSliceFill>; } interface TwapState { coin: string; user: string; side: string; sz: number; executedSz: number; executedNtl: number; minutes: number; reduceOnly: boolean; randomize: boolean; timestamp: number; } type TwapStatus = "activated" | "terminated" | "finished" | "error"; interface WsTwapHistory { state: TwapState; status: { status: TwapStatus; description: string; }; time: number; } interface WsUserTwapHistory { isSnapshot?: boolean; user: string; history: Array<WsTwapHistory>; } // Additional undocumented fields in WebData3 will be removed on a future update interface WebData3 { userState: { agentAddress: string | null; agentValidUntil: number | null; serverTime: number; cumLedger: number; isVault: boolean; user: string; optOutOfSpotDusting?: boolean; dexAbstractionEnabled?: boolean; }; perpDexStates: Array<PerpDexState>; } interface PerpDexState { totalVaultEquity: number; perpsAtOpenInterestCap?: Array<string>; leadingVaults?: Array<LeadingVault>; } interface LeadingVault { address: string; name: string; } interface ClearinghouseState { dex: string; user: string; clearinghouseState: InnerClearinghouseState; } interface InnerClearinghouseState { assetPositions: Array<AssetPosition>; marginSummary: MarginSummary; crossMarginSummary: MarginSummary; crossMaintenanceMarginUsed: number; withdrawable: number; } interface MarginSummary { accountValue: number; totalNtlPos: number; totalRawUsd: number; totalMarginUsed: number; } interface AssetPosition { type: "oneWay"; position: Position } interface OpenOrders { dex: string; user: string; orders: Array<Order>; } interface TwapStates { dex: string; user: string; states: Array<[number, TwapState]>; } interface WsSpotState { user: string; spotState: SpotState; } interface SpotState { balances: Array<UserBalance>; } interface UserBalance { coin: string; token: number; hold: string; total: string; entryNtl: string; } interface WsAllDexsClearinghouseState { user: string; clearinghouseStates: Array<[string, InnerClearinghouseState]>; } interface WsAllDexsAssetCtxs { ctxs: Array<[string, Array<PerpsAssetCtx>]>; } type WsOutcomeMetaUpdates = [WsOutcomeMetaUpdate]; type WsOutcomeMetaUpdate = | { outcomeCreated: OutcomeSpec } | { outcomeSettled: number } | { questionUpdated: QuestionSpec } | { questionSettled: number }; type OutcomeSpec = { outcome: number; name: string; description: string; sideSpecs: [OutcomeSideSpec, OutcomeSideSpec]; }; type OutcomeSideSpec = { name: string; }; type QuestionSpec = { question: number; name: string; description: string; fallbackOutcome: number; namedOutcomes: number[]; settledNamedOutcomes: number[]; }; type FFastAssetCtx = { markPx?: number; midPx?: number | null; }; type WsFastAssetCtxs = Record<string, FFastAssetCtx>;

    WsUserNonFundingLedgerUpdates

  4. HIP-3: Builder-deployed perpetuals

    Corrected grammar and standardized capitalization in the HIP-3 slashing, cross-margin, and backstop-liquidator text.

    Some malicious behavior is valid by protocol definition, but incorrect by certain subjective interpretations.
    Full change

    Even attempted malicious deployer inputs that do not cause protocol issues are slashable. Similarly, inputs that do cause protocol issues but that are not irregular are not slashable. In particular, bugs under normal operation that are unrelated to the deployer inputs are not within scope of slashing. The interpretation of "irregular" inputs is to be determined by validator vote, and includes inputs that exploit edge cases or loopholes that circumvent system limits. All deployer transactions are onchain, and can be independently analyzed by any interested parties.

    Some malicious behavior is valid by protocol definition, but incorrect by certain subjective interpretations. The slashing principle provides that the protocol should not intervene in subjective matters. The motivation is that while proof-of-stake blockchains could hard fork on undesirable state transitions, they very rarely do. Neutrality of the platform is an incredibly important feature to preserve. Relatedly, the slashed stake by the deployer is burned instead of being distributed to affected users. This is again based on proof-of-stake principles and prevents some forms of misaligned incentives between users and deployers. While the protocol layer does not enforce subjective irregularities, the downstream application and social layers can. Ultimately, the deployer's reputation and future success is always at stake.

    Some malicious behavior is valid by protocol definition, but incorrect by certain subjective interpretations. The slashing principle provides that the protocol should not intervene in subjective matters. The motivation is that while proof-of-stake blockchains could hard fork on undesirable state transitions, they very rarely do. Neutrality of the platform is an incredibly important feature to preserve. Relatedly, the slashed stake by the deployer is burned instead of being distributed to affected users. This is again based on proof-of-stake principles and prevents some forms of misaligned incentives between users and deployers. While the protocol layer does not enforce subjective irregularities, the downstream application and social layers can. Ultimately, the deployer's reputation and future success are always at stake.

    The amount slashed in a given instance is ultimately a stake-weighted median of validator votes. However, as a general guideline, irregular inputs that cause invalid state transitions or prolonged network downtime can be slashed up to 100%. Irregular inputs causing brief network downtime can be partially slashed up to 50%. Invalid inputs that cause network degradation or performance issues can be partially slashed up to 20%.

    In the most likely outcome, slashing never happens on mainnet. A large amount of technical work has gone into making HIP-3 a self-contained and technically robust system. Barring implementation issues, HIP-3 inherits Hyperliquid's carefully designed mathematical solvency guarantees.

    Cross Margin

    Cross margin

    IMPORTANT: Enabling cross margin on an asset is irreversible. Deployers should carefully consider the conditions below before enabling.

    Despite the system-level protection, users still take greater risk when using cross margin across DEXs with different deployers. To better protect users, mainnet validators will enforce that HIP-3 deployers only enable cross margin on assets that satisfy defined eligibility standards, including: sufficient observable liquidity, a reliable external oracle source, and resilience to price manipulation. In particular, each time the `externalPerpPx` of an asset moves more than 50% relative to the start of day price, validators will conduct a review to determine whether the deployer should be slashed due to manipulation. Assets where 50% daily moves are expected more than once a month are ineligible for cross margin and are subject to deployer slashing.

    Backstop Liquidator

    Each HIP-3 dex is associated with a fully onchain strategy at 0x400..00 + {dex_index} that takes over backstop liquidatable positions from the designated HIP-3 DEX. The onchain backstop liquidators only accept assets where cross margin is enabled, making those assets significantly less likely to experience ADL going forward during high volatility events. Each DEX’s onchain backstop liquidator is an independent user and falls back to ADL to mathematically guarantee solvency of the DEX.

    Backstop liquidator

    Each HIP-3 DEX is associated with a fully onchain strategy at 0x400..00 + {dex_index} that takes over backstop liquidatable positions from the designated HIP-3 DEX. The onchain backstop liquidators only accept assets where cross margin is enabled, making those assets significantly less likely to experience ADL going forward during high volatility events. Each DEX’s onchain backstop liquidator is an independent user and falls back to ADL to mathematically guarantee solvency of the DEX.

    There is no action item for users. Once scaled out, the backstop liquidators will absorb undercollateralized positions while simultaneously avoiding bad debt and reducing the need for ADL.

  5. Exchange endpoint

    Added agent asset transfers, HIP-3 backstop-liquidator transfers, outcome split, merge and negate actions, and AQAv2 authorization, and reorganized the transfer sections.

    Send Asset
    Full change

    Headers

    Send Asset

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

    This generalized method is used to transfer tokens between different perp DEXs, spot balance, users, and/or sub-accounts. Use "" to specify the default USDC perp DEX and "spot" to specify spot. Only the collateral token can be transferred to or from a perp DEX.

    Headers

    Name

    Value

    Content-Type*

    application/json

    Body

    Name

    Type

    Description

    action*

    Object

    "type": "sendAsset",

    "hyperliquidChain": "Mainnet" (on testnet use "Testnet" instead),

    "signatureChainId": the id of the chain used when signing in hexadecimal format; e.g. "0xa4b1" for Arbitrum,

    "destination": address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000,

    "sourceDex": name of perp dex to transfer from,

    "destinationDex": name of the perp dex to transfer to,

    "token": tokenName:tokenId; e.g. "PURR:0xc4bf3f870c0e9465323c0b6ed28096c2",

    "amount": amount of token to send as a string; e.g. "0.01",

    "fromSubAccount": address in 42-character hexadecimal format or empty string if not from a subaccount,

    "nonce": current timestamp in milliseconds as a Number, should match nonce

    nonce*

    Number

    Recommended to use the current timestamp in milliseconds, must match the nonce in the action Object above

    signature*

    Object

    Response

    {'status': 'ok', 'response': {'type': 'default'}}

    Agent Send Asset

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

    Similar to send asset, but can be signed by an agent. Destination must match the source address. Use "" to specify the default USDC perp DEX and "spot" to specify spot. Only the collateral token can be transferred to or from a perp DEX.

    Headers

    Name

    Value

    Content-Type*

    application/json

    Body

    Name

    Type

    Description

    action*

    Object

    "type": "agentSendAsset",

    "destination": address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000,

    "sourceDex": name of perp dex to transfer from,

    "destinationDex": name of the perp dex to transfer to,

    "token": tokenName:tokenId; e.g. "PURR:0xc4bf3f870c0e9465323c0b6ed28096c2",

    "amount": amount of token to send as a string; e.g. "0.01",

    "fromSubAccount": address in 42-character hexadecimal format or empty string if not from a subaccount,

    "nonce": current timestamp in milliseconds as a Number, should match nonce

    nonce*

    Number

    Recommended to use the current timestamp in milliseconds, must match the nonce in the action Object above

    signature*

    Object

    Response

    {'status': 'ok', 'response': {'type': 'default'}}

    Send to EVM with data

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

    Specialized action for Core to EVM transfer that includes an additional data payload. See HyperCore <> HyperEVM transfers for more details. When used coreReceiveWithData will be called on the linked contract instead of transfer. IMPORTANT: it is the caller's responsibility to ensure that the token is properly linked and the linked contract supports the following interface:

    interface ICoreReceiveWithData { function coreReceiveWithData( address from, bytes32 destinationRecipient, uint32 destinationChainId, uint256 amount, uint64 nonce, bytes calldata data ) external; }

    Headers

    Name

    Value

    Content-Type*

    application/json

    Body

    Name

    Type

    Description

    action*

    Object

    "type": "sendToEvmWithData",

    "hyperliquidChain": "Mainnet" (on testnet use "Testnet" instead),

    "signatureChainId": the id of the chain used when signing in hexadecimal format; e.g. "0xa4b1" for Arbitrum,

    "token": tokenName:tokenId; e.g. "PURR:0xc4bf3f870c0e9465323c0b6ed28096c2",

    "amount": amount of token to send as a string; e.g. "0.01",

    "sourceDex": name of perp dex to transfer from,

    "destinationRecipient": address in addressEncoding format,

    "addressEncoding": "hex" | "base58",

    "destinationChainId": number,

    "gasLimit": number,

    "data": bytes,

    "nonce": current timestamp in milliseconds as a Number, should match nonce

    nonce*

    Number

    Recommended to use the current timestamp in milliseconds, must match the nonce in the action Object above

    signature*

    Object

    Response

    {'status': 'ok', 'response': {'type': 'default'}}

    Core USDC transfer

    Response

    Send Asset

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

    This generalized method is used to transfer tokens between different perp DEXs, spot balance, users, and/or sub-accounts. Use "" to specify the default USDC perp DEX and "spot" to specify spot. Only the collateral token can be transferred to or from a perp DEX.

    Headers

    Name Value Content-Type\* application/json Body

    Name Type Description action\* Object { "type": "sendAsset", "hyperliquidChain": "Mainnet" (on testnet use "Testnet" instead), "signatureChainId": the id of the chain used when signing in hexadecimal format; e.g. "0xa4b1" for Arbitrum, "destination": address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000, "sourceDex": name of perp dex to transfer from, "destinationDex": name of the perp dex to transfer to, "token": tokenName:tokenId; e.g. "PURR:0xc4bf3f870c0e9465323c0b6ed28096c2", "amount": amount of token to send as a string; e.g. "0.01", "fromSubAccount": address in 42-character hexadecimal format or empty string if not from a subaccount, "nonce": current timestamp in milliseconds as a Number, should match nonce } nonce\* Number Recommended to use the current timestamp in milliseconds, must match the nonce in the action Object above signature\* Object Response

    {'status': 'ok', 'response': {'type': 'default'}}

    Send to EVM with data

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

    Specialized action for Core to EVM transfer that includes an additional data payload. See hypercore-less-than-greater-than-hyperevm-transfers for more details. When used coreReceiveWithData will be called on the linked contract instead of transfer. IMPORTANT: it is the caller's responsibility to ensure that the token is properly linked and the linked contract supports the following interface:

    interface ICoreReceiveWithData { function coreReceiveWithData( address from, bytes32 destinationRecipient, uint32 destinationChainId, uint256 amount, uint64 nonce, bytes calldata data ) external; }

    Headers

    Name Value Content-Type\* application/json Body

    Name Type Description action\* Object { "type": "sendToEvmWithData", "hyperliquidChain": "Mainnet" (on testnet use "Testnet" instead), "signatureChainId": the id of the chain used when signing in hexadecimal format; e.g. "0xa4b1" for Arbitrum, "token": tokenName:tokenId; e.g. "PURR:0xc4bf3f870c0e9465323c0b6ed28096c2", "amount": amount of token to send as a string; e.g. "0.01", "sourceDex": name of perp dex to transfer from, "destinationRecipient": address in addressEncoding format, "addressEncoding": "hex" "base58", "destinationChainId": number, "gasLimit": number, "data": bytes, "nonce": current timestamp in milliseconds as a Number, should match nonce } nonce\* Number Recommended to use the current timestamp in milliseconds, must match the nonce in the action Object above signature\* Object Response

    {'status': 'ok', 'response': {'type': 'default'}}

    Headers

    Name Type Description action\* Object { "type": "vaultTransfer", "vaultAddress": address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000, "isDeposit": boolean, "usd": number } nonce\* number Recommended to use the current timestamp in milliseconds signature\* Object expiresAfter Number Timestamp in milliseconds Response

    nonce*

    number

    Recommended to use the current timestamp in milliseconds

    signature*

    Object

    expiresAfter

    Number

    Timestamp in milliseconds

    Response

    {'status': 'ok', 'response': {'type': 'default'}}

    Deposit or withdraw from an HIP-3 DEX's backstop liquidator

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

    Add or remove funds from HIP-3 backstop liquidator address. ntl is an integer in units of 1e-6 quote tokens. Amount must be a multiple of 1000 quote tokens (i.e. ntl % 1000000000 == 0).

    Only principal amount is withdrawable, not pnl.

    Headers

    Name

    Value

    Content-Type*

    application/json

    Body

    Name

    Type

    Description

    action*

    Object

    "type": "hip3LiquidatorTransfer",

    "dex": string (e.g. "xyz"),

    "ntl": number, "isDeposit": boolean

    {'status': 'ok', 'response': {'type': 'default'}}

    Headers

    Split outcome

    Split X quote tokens into X Yes and X No shares.

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

    Headers

    Name

    Type

    Description

    Content-Type*

    String

    "application/json"

    Request Body

    Name

    Type

    Description

    action*

    Object

    "type": "userOutcome",

    "splitOutcome": { "outcome": Number, amount: String (e.g., "123.0") }

    nonce*

    Number

    Recommended to use the current timestamp in milliseconds

    signature*

    Object

    {'status': 'ok', 'response': {'type': 'default'}}

    Merge outcome

    Merge X Yes and X No shares into X quote tokens.

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

    Headers

    Name

    Type

    Description

    Content-Type*

    String

    "application/json"

    Request Body

    Name

    Type

    Description

    action*

    Object

    "type": "userOutcome",

    "mergeOutcome": { "outcome": Number, amount: String | null (null means max) }

    nonce*

    Number

    Recommended to use the current timestamp in milliseconds

    signature*

    Object

    {'status': 'ok', 'response': {'type': 'default'}}

    Merge question

    Merge X Yes shares from each outcome associated to the same question into X quote tokens.

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

    Headers

    Name

    Type

    Description

    Content-Type*

    String

    "application/json"

    Request Body

    Name

    Type

    Description

    action*

    Object

    "type": "userOutcome",

    "mergeQuestion": { "question": Number, amount: String | null (null means max) }

    nonce*

    Number

    Recommended to use the current timestamp in milliseconds

    signature*

    Object

    {'status': 'ok', 'response': {'type': 'default'}}

    Negate outcome

    Convert X No shares from an outcome associated with a question into X Yes shares of every other outcome associated with the question.

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

    Headers

    Name

    Type

    Description

    Content-Type*

    String

    "application/json"

    Request Body

    Name

    Type

    Description

    action*

    Object

    "type": "userOutcome",

    "negateOutcome": { "question": Number, "outcome": Number, amount: String }

    nonce*

    Number

    Recommended to use the current timestamp in milliseconds

    signature*

    Object

    {'status': 'ok', 'response': {'type': 'default'}}

    Validator vote on risk-free rate for aligned quote asset

    Headers

    Authorize AQAv2 role

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

    Headers

    Name

    Type

    Description

    Content-Type*

    String

    "application/json"

    Request Body

    Name

    Type

    Description

    action*

    Object

    "type": "authorizeAqav2Role",

    "token": number // e.g. 0 for USDC,

    "role": "technical" | "treasury"

    nonce*

    Number

    Recommended to use the current timestamp in milliseconds

    signature*

    Object

    {'status': 'ok', 'response': {'type': 'default'}}

    Claim rewards

  6. Fees

    Removed the testnet-only qualifier for outcomes, clarified that volume counts on the side that pays the fee and that outcomes have no maker rebates, and documented the staking-link lock action.

    A staking user may send EIP-712 signed action with primary type HyperliquidTransaction:StakingLinkDisableTradingUser and payload {tradingUser: String, nonce: Number} that renders the trading user unusable and funds locked.
    Full change

    Staking linking

    A "staking user" and a "trading user" can be linked so that the staking user's HYPE staked can be attributed to the trading user's fees. A few important points to note: The staking user and the trading user must be controlled by the same user. For security purposes, the staking user will be able to unilaterally transfer all funds from the trading user to the staking user's account in a single irreversible transaction. A trading user should therefore never link to a staking user that is controlled by another user. Linking is permanent. Unlinking is not supported. The staking user will not receive any staking-related fee discount after being linked. Linking requires the trading user to send an action first, and then the staking user to finalize the link. See "Link Staking" at app.hyperliquid.xyz/portfolio for details. No action is required if you plan to trade and stake from the same address.

    Outcome Tokens (testnet only)

    Outcome token trading only charges fees when closing or settling, not when opening outcome positions. Only fee-paying volume is counted for outcome trading. There are 6 cases for outcome trades which are special cases of this logic:

    2a. Normal Trade where only maker pays fee: both users get px * sz

    A staking user may send EIP-712 signed action with primary type HyperliquidTransaction:StakingLinkDisableTradingUser and payload {tradingUser: String, nonce: Number} that renders the trading user unusable and funds locked. In 1 year after locking, the funds from the trading user are automatically transferred to the staking user. This action is irreversible and not recommended under normal operation.

    Outcome trading only charges fees when closing or settling, not when opening outcome positions. Only fee-paying volume is counted for outcome trading. There are 6 cases for outcome trades which are special cases of this logic:

    2a. Normal Trade where one side pays fee: both users get fee_paying_px * sz

    2b. Normal Trade where no one pays fee: no volume is counted

    3b. Burning, only taker pays fee: both users get taker_px * sz

    Outcome trading does not support rebates. Users who would receive rebates for spot and perp trading pay zero fees on maker orders.

    Fee formula for developers

May 2026

4
  1. HIP-3: Builder-deployed perpetuals

    Changed HIP-3 stake retention to at least 183 days after deployment, added configurable deployer fee shares, and clarified what happens when a quote asset is disabled.

    The staking requirement for mainnet will be 500k HYPE.
    Full change

    Spec

    The staking requirement for mainnet will be 500k HYPE. This requirement is expected to decrease over time as the infrastructure matures. Any amount staked above the most recent requirement can be unstaked. The staking requirement is maintained for 30 days even after all of the deployer's perps have been halted.

    The staking requirement for mainnet will be 500k HYPE. This requirement is expected to decrease over time as the infrastructure matures. Any amount staked above the most recent requirement can be unstaked. The staking requirement is maintained for a minimum of 183 days after the dex is deployed.

    Any deployer that meets the staking requirement can deploy one perp dex. As a reminder, each perp dex features independent margining, order books, and deployer settings. A future upgrade may support multiple dex deployments sharing the same deployer and staking requirement.

    Any quote asset can be used as the collateral asset for a dex. As a reminder, assets that fail to meet the permissionless quote asset requirements will lose quote asset status based on onchain validator vote. Such a vote would also disable perp dexs that use this asset as collateral. A deployer-initiated disabling of quote asset does not disable the corresponding perp dexs.

    HIP-3 deployers are not subject to slashing related to quote assets. On a future upgrade, dexs with disabled quote assets would support migration to a new collateral token. This is not expected to happen on mainnet, as quote token deployers have their separate staking and slashing conditions. In summary, the quote asset choice is important for trading fee and product considerations, but is not an existential risk for HIP-3 deployers.

    The first 3 assets deployed in any perp dex do not require auction participation. Additional assets go through a Dutch auction with the same hyperparameters (including frequency and minimum price) as the HIP-1 auction. The HIP-3 auction for additional perps is shared across all perp dexs. Future upgrades will support improved ergonomics around reserving assets for time-sensitive future deployments. Deployers also get 7 reserve deployments that can be used at the current auction price, but bypassing the auction timer.

    HIP-3 markets incorporate the usual sources of trading fee discounts, including staking discounts, referral rewards, and aligned collateral discount. From the deployer perspective, the fee share is fixed at 50%. From the user perspective, fees are 2x the usual fees on validator-operated perp markets. The net effect is that the protocol collects the same fee regardless of whether the trade is on an HIP-3 or a validator-operated perp. User rebates are unaffected, and do not interact with the deployer. Deployer configurability of fees will be supported in a future upgrade.

    HIP-3 markets incorporate the usual sources of trading fee discounts, including staking discounts, referral rewards, and aligned collateral discount. HIP-3 deployers can configure an additional fee share between 0-300% (0-100% for growth mode). If the share is above 100%, the protocol fee is also increased to be equal to the deployer fee.

    Aligned stablecoin collateral will automatically receive reduced fees once the alignment condition (which is being updated based on user and deployer feedback) is implemented.

  2. HIP-4: Outcome markets

    Added outcome mechanics: complementary tokens, merged-book priority, split and merge operations, linked questions, and the initial zero-fee description.

    Overview
    Full change

    HIP-4: Outcome markets

    Overview

    Outcomes are fully collateralized contracts that settle within a fixed range. They are a general-purpose primitive that are useful for applications such as prediction markets and bounded options-like instruments.

    The outcome trading API is similar to spot, with key differences highlighted here: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/asset-ids.

    Mechanics

    Each outcome market consists of two sides, each with a token. Usually the tokens are labeled Yes and No. Settlement automatically converts either Yes to 1 quote token and No to 0 quote tokens, or vice versa.

    The order books of Yes and No tokens for the same outcome are merged to share liquidity. For example, an order to buy Yes at price p is equivalent to an order to Sell No at price 1-p. Under the merged book, price-time priority generalizes to price-side-time priority. In other words, for orders at the same merged price level, the resting sell orders are sorted before all resting buy dual orders. Advanced users may also manually split and merge outcomes to convert between primary and dual balances. See here for API examples.

    Most operations abstract the dual book's liquidity from the user's perspective. However, there are a few examples whose ergonomics will be improved on a future network upgrade. For example, historical orders can return the primary and dual orders separately if a user sends an order that both matches and rests on the book.

    Questions are collections of outcomes that where exactly one outcome will settle to Yes, and all others will settle to No. Each outcome trades on a separate order book, but are linked by negate and merge operations. See here for API examples. In other words, users with No shares on different outcomes of the same question can redeem quote tokens before the underlying outcomes settle.

    Fees are currently zero for outcome markets for initial testing. However, builder codes do work the same as normal spot trading, where builders earn builder fees on sell orders that specify their builder code.

  3. Contract specifications

    Added recurring binary and multi-price outcome specifications with interpolated mark-price settlement and doubled the highest-leverage maximum market-order value.

    Crypto Perps
    Full change

    Contract specifications

    Crypto Perps

    Hyperliquid perpetuals are derivatives products without expiration date. Instead, they rely on funding payments to ensure convergence to the underlying spot price over time. See Funding for more information.

    Maximum market order value

    $15,000,000 for max leverage >= 25, $5,000,000 for max leverage in [20, 25), $2,000,000 for max leverage in [10, 20), otherwise $500,000

    $30,000,000 for max leverage >= 25, $5,000,000 for max leverage in [20, 25), $2,000,000 for max leverage in [10, 20), otherwise $500,000

    Maximum limit order value

    10 * maximum market order value

    Recurring outcomes

    Recurring outcomes are automatically deployed and settled by the protocol on a fixed cadence. The specification for the current instance of the recurring outcome is found in the description field of outcomeMeta .

    Binary

    class:priceBinary|underlying:BTC|expiry:20260503-0600|targetPrice:78213|period:1d"

    The target price is computed using a linear interpolation between the mark price updates immediately before and immediately after the settlement timestamp. Precisely, the contract settles to YES if and only if markPrice0 + (settlementTime - t0) / (t1 - t0) * (markPrice1 - markPrice0) ≥ targetPrice where t0 and t1 are the timestamps of mark price updates immediately before and after settlementTime

    Multi-price

    "class:priceBucket|underlying:BTC|expiry:20260507-0745|priceThresholds:81538,81783|period:15m"

    There are three price buckets depending on the target price at the time of settlement: < P1, [P1, P2) and ≥ P2. Exactly one of the 3 outcomes settles to 1, and the others settle to 0. The target price computation uses the same interpolation as binary markets described above.

    Uniqueness

    There is guaranteed to be at most one recurring series for each (seriesType, underlying, period) combination.

  4. HIP-3: Builder-deployed perpetuals

    Added the HIP-3 backstop-liquidator section describing cross-margin eligibility and the ADL fallback.

    Backstop Liquidator
    Full change

    IMPORTANT: Enabling cross margin on an asset is irreversible. Deployers should carefully consider the conditions below before enabling.

    Backstop Liquidator

    Each HIP-3 dex is associated with a fully onchain strategy at 0x400..00 + {dex_index} that takes over backstop liquidatable positions from the designated HIP-3 DEX. The onchain backstop liquidators only accept assets where cross margin is enabled, making those assets significantly less likely to experience ADL going forward during high volatility events. Each DEX’s onchain backstop liquidator is an independent user and falls back to ADL to mathematically guarantee solvency of the DEX.

    There is no action item for users. Once scaled out, the backstop liquidators will absorb undercollateralized positions while simultaneously avoiding bad debt and reducing the need for ADL.

April 2026

2
  1. Fees

    Expanded the staking-link control warnings and added the six cases that set fee-paying volume for outcome minting, trading, burning, and settlement.

    A "staking user" and a "trading user" can be linked so that the staking user's HYPE staked can be attributed to the trading user's fees.
    Full change

    Staking linking

    A "staking user" and a "trading user" can be linked so that the staking user's HYPE staked can be attributed to the trading user's fees. A few important points to note: The staking user will be able to unilaterally control the trading user. In particular, linking to a specific staking user essentially gives them full control of funds in the trading account. Linking is permanent. Unlinking is not supported. The staking user will not receive any staking-related fee discount after being linked. Linking requires the trading user to send an action first, and then the staking user to finalize the link. See "Link Staking" at app.hyperliquid.xyz/portfolio for details. No action is required if you plan to trade and stake from the same address.

    A "staking user" and a "trading user" can be linked so that the staking user's HYPE staked can be attributed to the trading user's fees. A few important points to note: The staking user and the trading user must be controlled by the same user. For security purposes, the staking user will be able to unilaterally transfer all funds from the trading user to the staking user's account in a single irreversible transaction. A trading user should therefore never link to a staking user that is controlled by another user. Linking is permanent. Unlinking is not supported. The staking user will not receive any staking-related fee discount after being linked. Linking requires the trading user to send an action first, and then the staking user to finalize the link. See "Link Staking" at app.hyperliquid.xyz/portfolio for details. No action is required if you plan to trade and stake from the same address.

    Outcome Tokens (testnet only)

    Outcome token trading only charges fees when closing or settling, not when opening outcome positions. Only fee-paying volume is counted for outcome trading. There are 6 cases for outcome trades which are special cases of this logic:

    1\. Minting, no one pays fee: no volume is counted

    2a. Normal Trade where only maker pays fee: both users get px * sz

    2b. Normal Trade where no one pays fee: no volume is counted

    3a. Burning, both sides pay fee: both users get (maker_px + taker_px) * sz = 1 * sz

    3b. Burning, only taker pays fee: both users get taker_px * sz

    4\. Settlement: each user gets settle_fraction * sz

    Fee formula for developers

  2. Fees

    Added the first testnet outcome-fee rule, which charged fees only on closing or settlement, not on opening.

    Outcome Tokens (testnet only)
    Full change

    Staking linking

    Outcome Tokens (testnet only)

    Outcome token trading only charges fees when closing or settling, not when opening outcome positions.

    Fee formula for developers

March 2026

4
  1. HIP-3: Builder-deployed perpetuals

    Added seven reserve deployments at the current auction price and removed the isolated-only margin restriction.

    The first 3 assets deployed in any perp dex do not require auction participation.
    Full change

    HIP-3 deployers are not subject to slashing related to quote assets. On a future upgrade, dexs with disabled quote assets would support migration to a new collateral token. This is not expected to happen on mainnet, as quote token deployers have their separate staking and slashing conditions. In summary, the quote asset choice is important for trading fee and product considerations, but is not an existential risk for HIP-3 deployers.

    Isolated-only margin mode is required. Cross margin will be supported in a future upgrade.

    The first 3 assets deployed in any perp dex do not require auction participation. Additional assets go through a Dutch auction with the same hyperparameters (including frequency and minimum price) as the HIP-1 auction. The HIP-3 auction for additional perps is shared across all perp dexs. Future upgrades will support improved ergonomics around reserving assets for time-sensitive future deployments. Deployers also get 7 reserve deployments that can be used at the current auction price, but bypassing the auction timer.

    HIP-3 markets incorporate the usual sources of trading fee discounts, including staking discounts, referral rewards, and aligned collateral discount. From the deployer perspective, the fee share is fixed at 50%. From the user perspective, fees are 2x the usual fees on validator-operated perp markets. The net effect is that the protocol collects the same fee regardless of whether the trade is on an HIP-3 or a validator-operated perp. User rebates are unaffected, and do not interact with the deployer. Deployer configurability of fees will be supported in a future upgrade.

  2. Portfolio margin

    Moved portfolio margin from pre-alpha to alpha, introduced explicit asset caps and a volume gate, and added a BTC carry-trade example.

    Alpha mode
    Full change

    Portfolio margin

    Pre-alpha mode

    Alpha mode

    Under portfolio margin, a user’s spot and perps trading are unified for greater capital efficiency. Furthermore, portfolio margin accounts automatically earn yield on all borrowable assets not actively used for trading.

    Portfolio margin unlocks functionality such as the carry trade where a spot balance is offset by a short perps position, collateralized by the spot balance. Spot and perp pnl offset each other, protecting against liquidation on the perp position. More generally, spot and perps trading can be performed from a single unified balance. For example, a user could also hold HYPE and immediately buy ETH on the ETH/USDH book. All HIP-3 DEXs are included in portfolio margin, though not all HIP-3 DEX collateral assets are borrowable. Future HyperCore asset classes and primitives will support portfolio margin as well.

    Portfolio margin unlocks functionality such as the carry trade where a spot balance is offset by a short perps position, collateralized by the spot balance. Spot and perp pnl offset each other, protecting against liquidation on the perp position. More generally, spot and perps trading can be performed from a single unified balance. For example, a user could also hold HYPE and immediately buy BTC on the BTC/USDH book. All HIP-3 DEXs are included in portfolio margin, though not all HIP-3 DEX collateral assets are borrowable. Future HyperCore asset classes and primitives will support portfolio margin as well.

    Users can supply eligible quote assets to earn yield. This synergizes and composes with HyperEVM lending protocols. In a future upgrade, CoreWriter will expose the same supply action for smart contracts. Portfolio margin intentionally does not bring a full-fledged lending market to HyperCore, as that is best built by independent teams on the EVM. For example, HyperCore lending is not tokenized, but an EVM protocol could do so by launching a fully onchain yield-bearing ERC20 token contract through CoreWriter and precompiles. Portfolio margin introduces organic demand to borrow and should expand the value proposition of teams building on the HyperEVM.

    IMPORTANT: Portfolio margin is a complex technical upgrade and requires bootstrapping the supply side for borrowable assets. Therefore, portfolio margin will launch in pre-alpha mode where borrowable asset caps are extremely low. Users should test with new accounts or subaccounts with <$1k in value. Portfolio margin accounts will fall back to non-portfolio margin behavior when caps are hit. In pre-alpha mode, only USDC is borrowable, and HYPE is the only collateral asset. USDH will be added as borrowable and BTC as collateral before the alpha phase. Details will be added to the Docs.

    IMPORTANT: Portfolio margin is a complex technical upgrade and requires bootstrapping the supply side for borrowable assets. Portfolio margin accounts will fall back to non-portfolio margin behavior when caps are hit. During alpha mode, the following requirements apply:

    Master account >$5M in weighted volume

    USDH: 500M USDH global supply cap, 100M USDH global borrow cap, 5M USDH user supply cap, 1M USDH user borrow cap

    USDC: 500M USDC global supply cap, 100M USDC global borrow cap, 5M USDC user supply cap, 1M USDC user borrow cap

    HYPE: 1M HYPE global supply cap, 50k HYPE user supply cap

    BTC: 400 BTC global supply cap, 20 BTC user supply cap

    LTV and borrowing

    Borrowed assets accrue interest continuously, and are indexed hourly to match the perp funding interval. Portfolio margin users pay interest on borrowed assets and earn interest on idle assets according to the same rate. During pre-alpha, the borrow interest rate for stablecoins is set at 0.05 + 4.75 * max(0, utilization - 0.8) APY, compounded continuously depending on the instantaneous value of utilization = total_borrowed_value / total_supplied_value . Earned interest is accrued proportionally to all suppliers. The protocol retains 10% of borrowed interest as a buffer for future liquidations.

    Example: Carry trade

    The carry trade becomes significantly more capital efficient with portfolio margin, as there is no trading cost to rebalance over signifcant price ranges. A portfolio margin account's spot borrow and perps pnl offset each other for accounting. The trader still needs to account for external factors such as funding, interest, and drift between spot and perp prices.

    For example, a user holds 1 BTC in spot and shorts 1 BTC-USDC perp at 10x leverage. If BTC's price is 100k, the user only pays interest on the 1/10 initial margin but earns funding on the full 100k position. If BTC's price moves down to 50k, the trader has unrealized pnl in USDC. The trader can choose to maintain the notional value of the trade by buying more spot BTC and increasing the perp short. If BTC's price moves up to 150k, portfolio margin automatically borrows 50k USDC against the spot BTC, now worth 150k. The user can sell BTC and close the perp position to maintain the notional exposure of the funding trade. If BTC's price moves up to 200k, the trader must reduce the notional exposure of the funding trade to avoid a borrow-lend liquidation.

    Note that the hedged price range increased dramatically compared to the same trade without portfolio margin, where the perp leg is collateralized by USDC.

    Liquidations

  3. Asset IDs

    Added how outcome sides are encoded as coins, token names, and order assets, and reorganized the existing perp and spot ID explanation.

    Asset IDs are the integer representation for sending orders and cancels via actions.
    Full change

    Asset IDs

    Asset IDs are the integer representation for sending orders and cancels via actions. See here for more details.

    Perps

    Perpetual endpoints expect an integer for asset, which is the index of the coin found in the meta info response. E.g. BTC = 0 on mainnet.

    Builder-deployed perps expect 100000 + perp_dex_index * 10000 + index_in_meta . For example, test:ABC on testnet has perp_dex_index = 1 ,index_in_meta = 0 , asset = 110000 . Note that builder-deployed perps always have name in the format {dex}:{coin} .

    Spot

    Spot endpoints expect 10000 + spotInfo["index"] where spotInfo is the corresponding object in spotMeta that has the desired quote and base tokens. For example, when submitting an order for PURR/USDC, the asset that should be used is 10000 because its asset index in the spot info is 0.

    Builder-deployed perps expect 100000 + perp_dex_index * 10000 + index_in_meta . For example, test:ABC on testnet has perp_dex_index = 1 ,index_in_meta = 0 , asset = 110000 . Note that builder-deployed perps always have name in the format {dex}:{coin} .

    Examples

    Note that spot ID is different from token ID, and that mainnet and testnet have different asset IDs. For example, for HYPE:

    Testnet spot ID: 1035

    Outcomes

    Outcomes share most implementation details with spot trading, with a different token representing each outcome side. However, the API representation of outcomes is different from both spot and perps.

    Outcome assets are derived from an outcome id plus a binary side. These are found in the outcomeMeta info response.

    For an outcome with id outcome and side side:

    encoding = 10 * outcome + side

    Only side 0 and side 1 are valid.

    Example:

    outcome 1, side 0 -> encoding 10

    The same encoding is used in three different representations:

    Outcome spot coin: #<encoding>

    Outcome token name: +<encoding>

    Outcome asset ID: 100_000_000 + encoding

    Example:

    #10 = outcome 1, side 0

    +10 = the corresponding token name

    100000010 = asset ID

  4. Exchange endpoint

    Added the claimRewards exchange action.

    Claim rewards
    Full change

    {'status': 'ok', 'response': {'type': 'default'}}

    Claim rewards

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

    Headers

    Name

    Type

    Description

    Content-Type*

    String

    "application/json"

    Request Body

    Name

    Type

    Description

    action*

    Object

    "type": "claimRewards"

    nonce*

    Number

    Recommended to use the current timestamp in milliseconds

    signature*

    Object

    {'status': 'ok', 'response': {'type': 'default'}}

Where the docs disagree
Topic One page says Another says Rely on
HIP-4 fees "Fees are currently zero for outcome markets", HIP-4 overview Fees apply "when closing or settling, not when opening", fees page Fees apply. The overview predates the August fee switch. See fees
Deployment status "Testnet-only", deployer actions page "HIP-4 permissionless deployments were enabled on mainnet", 31 Aug update Live on mainnet. The page's caps of 10 and 50 are testnet values
App fees on buys Builder codes work "the same as normal spot trading", HIP-4 overview, and "do not apply to the buying side of spot trades", builder codes page "Builder codes can also be applied to buy orders for outcome orders", deployer actions page Apps can charge on buys and sells
Daily market at exactly the target Yes if the mark price "is above targetPrice", info endpoint page Yes if the interpolated price is "≥ targetPrice", contract specifications The formula, for Hyperliquid's own daily markets only. Deployer price markets follow their template's "above"
CoreWriter on mainnet Write system contracts "are not live on mainnet yet", HyperEVM overview The write contract is documented in full, interacting with HyperCore, and in use per the 8 Sep update Live
Contracts supplying to portfolio margin "In a future upgrade, CoreWriter will expose the same supply action", portfolio margin CoreWriter action 15 already lists supply and withdraw, interacting with HyperCore The action reference and the 8 Sep update
Perp margin asset "USDC is currently used for all perps margining", HIP-1 "Any quote asset can be used as the collateral asset for a dex", HIP-3 USDC for Hyperliquid's own perps. HIP-3 exchanges choose. HIP-4 uses USDC
Deployer fee share Spot and HIP-3 deployers keep "up to 50%", fees page Fees in non-USDC HIP-1 tokens go 100% to the deployer, HIP-1 Each sentence covers a different case. A HIP-4 deployer gets at most half
Staking-link takeover Funds move "in a single irreversible transaction", fees page Funds move "1 year after locking", same page Linking is permanent. Only link accounts you control

When two official pages disagree, the more specific page and the newer announcement are usually right. When the chain can answer, ask it. outcomeMeta shows who deploys on mainnet, and outcomeDeployerLimits shows a venue's remaining room.

Old wording that is history, not a conflict
  • The HIP-4 overview says multi-outcome markets "are not part of the initial mainnet release". That described the 2 May 2026 launch. Questions arrived on 7 May.
  • Early plans used USDH for HIP-4. The 26 May update says HIP-4 markets "now use USDC as the quote asset".
  • Standalone markets can settle at any fraction while outcomes in a question settle at 0 or 1. The two rules cover different market types.