# Hyperliquid — Query all borrow/lend reserve states

Get Hyperliquid All Lending Reserves data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Hyperliquid, pass parameters such as type, and retrieve structured data including token index, reported reserve balance, total supplied amount, total borrowed amount, and reported utilization ratio for reserve dashboards, and rate comparisons.

Documentation: https://openany.si/hyperliquid/hyperliquid-query-all-borrow-lend-reserve-states/fcc586dd-cde4-44f1-87ab-b01c46cc0925/
API ID: fcc586dd-cde4-44f1-87ab-b01c46cc0925
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/all-borrow-lend-reserve-states
Page update time: 2026-12-03T02:49:34.434Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:33.831Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid All Lending Reserves API

POST type="allBorrowLendReserveStates". The response is an array of \[token index, reserve state\] pairs. Keep the token index attached to balance, totalSupplied, totalBorrowed, utilization and rate fields, which are returned as decimal strings.

## What You Can Build

- **Reserve dashboards**: Display available reserves with token identities.
- **Rate comparisons**: Keep borrowing and supply rates separate.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `[][0]` | Token index |
| `[][1].balance` | Reported reserve balance |
| `[][1].totalSupplied` | Total supplied amount |
| `[][1].totalBorrowed` | Total borrowed amount |
| `[][1].utilization` | Reported utilization ratio |
| `[][1].borrowYearlyRate` | Reported yearly borrowing rate |
| `[][1].supplyYearlyRate` | Reported yearly supply rate |
| `[][1].oraclePx` | Reported oracle price |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Query all borrow/lend reserve states request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "examples": [
        {
          "type": "allBorrowLendReserveStates"
        }
      ],
      "properties": {
        "type": {
          "const": "allBorrowLendReserveStates",
          "description": "Fixed native Info query discriminator.",
          "enum": [
            "allBorrowLendReserveStates"
          ],
          "example": "allBorrowLendReserveStates",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object",
      "description": "Query all borrow/lend reserve states Documentation prepared only; runtime not verified."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "array",
  "items": {
    "type": "array",
    "items": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "object",
          "properties": {
            "balance": {
              "type": "string"
            },
            "borrowYearlyRate": {
              "type": "string"
            },
            "ltv": {
              "type": "string"
            },
            "oraclePx": {
              "type": "string"
            },
            "supplyYearlyRate": {
              "type": "string"
            },
            "totalBorrowed": {
              "type": "string"
            },
            "totalSupplied": {
              "type": "string"
            },
            "utilization": {
              "type": "string"
            }
          }
        }
      ]
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/hyperliquid/info/all-borrow-lend-reserve-states' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "type": "allBorrowLendReserveStates"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
[
  [
    0,
    {
      "balance": "125479890.1242125928",
      "borrowYearlyRate": "0.05",
      "ltv": "0.0",
      "oraclePx": "1.0",
      "supplyYearlyRate": "0.0350299594",
      "totalBorrowed": "440876077.7104488611",
      "totalSupplied": "566355879.8681254387",
      "utilization": "0.778443543"
    }
  ],
  [
    150,
    {
      "balance": "14560424.7182351407",
      "borrowYearlyRate": "0.05",
      "ltv": "0.65",
      "oraclePx": "78.799",
      "supplyYearlyRate": "0.0",
      "totalBorrowed": "0.0",
      "totalSupplied": "14560424.7182351407",
      "utilization": "0.0"
    }
  ],
  [
    197,
    {
      "balance": "2335.7114570355",
      "borrowYearlyRate": "0.05",
      "ltv": "0.5",
      "oraclePx": "79852.852",
      "supplyYearlyRate": "0.0",
      "totalBorrowed": "0.0",
      "totalSupplied": "2335.7114570355",
      "utilization": "0.0"
    }
  ],
  [
    268,
    {
      "balance": "558786.92351906",
      "borrowYearlyRate": "0.05",
      "ltv": "0.0",
      "oraclePx": "0.99895",
      "supplyYearlyRate": "0.0325296516",
      "totalBorrowed": "1457628.96967017",
      "totalSupplied": "2016415.8029481799",
      "utilization": "0.7228811476"
    }
  ],
  [
    360,
    {
      "balance": "142596.70049347",
      "borrowYearlyRate": "0.05",
      "ltv": "0.0",
      "oraclePx": "1.0",
      "supplyYearlyRate": "0.0052211947",
      "totalBorrowed": "18716.58188328",
      "totalSupplied": "161312.92448381",
      "utilization": "0.1160265487"
    }
  ]
]
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does this query need a user or token input?
No. Its JSON body contains the fixed type only and returns the available token-indexed reserve states.

### Is the outer response a flat list of reserve objects?
Read each entry as a token-index-and-state pair. Preserve the index before interpreting the corresponding reserve object.

### Can I sum token balances directly?
Different indices identify different tokens. Keep identities and units separate before any application-level conversion or aggregation.

### Are the rates OpenAny request prices or guaranteed returns?
No. They are reported reserve rate context. OpenAny request billing is separate, and a reported rate is not a guarantee of a future return.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- hyperliquid: https://openany.si/hyperliquid/hyperliquid-query-all-borrow-lend-reserve-states/fcc586dd-cde4-44f1-87ab-b01c46cc0925/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
