๐Ÿ”Œ API & Developers

Hyperliquid API: Query Borrow/Lend User and Reserve State (2026)

โš ๏ธ Disclosure: Some links on this page are affiliate links. If you sign up through them, I may earn a commission โ€” at no extra cost to you. I only review tools I actually use.
Use Hyperliquid's info endpoint to read borrow/lend state. Send a POST request to https://api.hyperliquid.xyz/info with a JSON body. The relevant request types are borrowLendUserState, borrowLendReserveState, and allBorrowLendReserveStates. These endpoints return account and reserve data; they do not submit borrow or lend actions.

This article includes a Hyperliquid referral link. If you sign up, supa.is may earn a commission; the referee gets a 4% fee discount on the first $25M of volume per account. Vaults and sub-accounts are excluded.

The request and response shapes below are from the Hyperliquid info endpoint documentation, accessed 2026-11-13.

Endpoint and headers

Use the same info endpoint for all three queries:

POST https://api.hyperliquid.xyz/info
Content-Type: application/json

For user-specific queries, pass the actual address of the master or sub-account you want to inspect. The documentation notes that using an agent wallet address can return an empty result.

Query borrow/lend user state

Request body:

FieldTypeRequiredDescription
typeStringYesborrowLendUserState
userStringYesAccount address in hexadecimal format, e.g. 0x0000000000000000000000000000000000000000
Example request:

{
  "type": "borrowLendUserState",
  "user": "0x0000000000000000000000000000000000000000"
}

Example response:

{
  "tokenToState": [
    [
      0,
      {
        "borrow": {
          "basis": "0.0",
          "value": "0.0"
        },
        "supply": {
          "basis": "44.69295862",
          "value": "44.69692314"
        }
      }
    ],
    [
      1105,
      {
        "borrow": {
          "basis": "0.0",
          "value": "0.0"
        },
        "supply": {
          "basis": "0.0",
          "value": "0.0"
        }
      }
    ]
  ],
  "health": "healthy",
  "healthFactor": null
}

Documented response fields:

FieldMeaning in the documented response
tokenToStateArray of [token index, state] pairs
borrow.basisBorrow basis value for the token
borrow.valueBorrow value for the token
supply.basisSupply basis value for the token
supply.valueSupply value for the token
healthAccount health string; the example returns "healthy"
healthFactorHealth factor field; the example returns null

Query borrow/lend reserve state

Request body:

๐Ÿ’ก Hyperliquid

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

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

FieldTypeRequiredDescription
typeStringYesborrowLendReserveState
tokenNumberYesToken index
Example request:

{
  "type": "borrowLendReserveState",
  "token": 0
}

Example response:

{
  "borrowYearlyRate": "0.05",
  "supplyYearlyRate": "0.0008245002",
  "balance": "3245939.4732256099",
  "utilization": "0.018322226",
  "oraclePx": "1.0",
  "ltv": "0.0",
  "totalSupplied": "3306509.7335290499",
  "totalBorrowed": "60582.61869494"
}

Documented reserve-state fields:

FieldDescription
borrowYearlyRateBorrow yearly rate
supplyYearlyRateSupply yearly rate
balanceReserve balance
utilizationReserve utilization
oraclePxOracle price
ltvLoan-to-value parameter
totalSuppliedTotal supplied amount
totalBorrowedTotal borrowed amount
For a specific reserve, pass that reserve's numeric token index. The provided documentation page does not include a token-index-to-name mapping.

Query all borrow/lend reserve states

Request body:

FieldTypeRequiredDescription
typeStringYesallBorrowLendReserveStates
Example request:

{
  "type": "allBorrowLendReserveStates"
}

Example response:

[
  [
    0,
    {
      "borrowYearlyRate": "0.05",
      "supplyYearlyRate": "0.0008244951",
      "balance": "3245960.0596176102",
      "utilization": "0.0183221137",
      "oraclePx": "1.0",
      "ltv": "0.0",
      "totalSupplied": "3306530.3251102199",
      "totalBorrowed": "60582.62446067"
    }
  ],
  [
    150,
    {
      "borrowYearlyRate": "0.05",
      "supplyYearlyRate": "0.0",
      "balance": "11318.09684696",
      "utilization": "0.0",
      "oraclePx": "23.99",
      "ltv": "0.5",
      "totalSupplied": "11318.09684696",
      "totalBorrowed": "0.0"
    }
  ]
]

The bulk response is an array of [token index, reserve state] pairs. Use it when you need reserve parameters for multiple tokens in one request.

How to use the outputs

For broader portfolio-margin context, see Hyperliquid Portfolio Margin: How It Works. If your workflow involves supplied USDH, see Hyperliquid: Withdraw Supplied USDH from Lending.

If you want to use these endpoints against a live account, Create a Hyperliquid account.

Continue with Hyperliquid

Browse the Hyperliquid guide hub for the complete user journey.

๐Ÿงฎ Free Hyperliquid calculators

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

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

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

About the author

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

๐Ÿ“š Related Articles

๐Ÿ“–
Guides

How Hyperliquid Portfolio Margin Works

How Hyperliquid combines spot and cross-margin perps, supports collateral-backed borrowing, applies eligibility and caps, and defines liquidation risk.

July 28, 2026 โฑ 3 min read
โš–๏ธ
Comparisons

OKX Simple Earn vs Hyperliquid HLP: Yield Compared (2026)

Compare OKX Simple Earn vs Hyperliquid HLP yields, risks, and fees. Which is better for your idle crypto in 2026? A detailed CEX vs DEX yield analysis.

June 25, 2026 โฑ 12 min read
๐Ÿ“–
Guides

Hyperliquid: Withdraw Supplied USDH from Lending (2026)

Learn how to safely withdraw supplied USDH from Hyperliquid's Borrow & Lend feature. Step-by-step guide, risks, and best practices for 2026.

July 14, 2026 โฑ 6 min read