> ## Documentation Index
> Fetch the complete documentation index at: https://chainstack-docs-polygon-erigon-trace-deprecation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# userBorrowLendInterest | Hyperliquid info

> The info endpoint with type: "userBorrowLendInterest" returns a user's borrow/lend interest accrual records per token on Hyperliquid.

<Info>
  You can only use this endpoint on the official Hyperliquid public API. It is not available through Chainstack, as the open-source node implementation does not support it yet. See [Hyperliquid methods](/docs/hyperliquid-methods) for the full availability breakdown.
</Info>

The `info` endpoint with `type: "userBorrowLendInterest"` returns a user's borrow and lend interest accrual records, per token. Use it to track interest earned on supplied balances and paid on borrowed balances.

## Parameters

### Request body

* `type` (string, required) — The request type. Must be `"userBorrowLendInterest"`.
* `user` (string, required) — Address in 42-character hexadecimal format.

## Response

Returns an array of interest records. Each record contains:

* `time` (integer) — Timestamp of the update (milliseconds since epoch).
* `token` (string) — Token symbol (for example, `USDC`).
* `borrow` (string) — Borrow interest amount.
* `supply` (string) — Supply interest amount.

## Example request

<CodeGroup>
  ```shell Shell theme={null}
  curl -X POST \
    -H "Content-Type: application/json" \
    -d '{"type": "userBorrowLendInterest", "user": "0x1442ad477ded1b0028b57621aa7b6f7eadb8f568"}' \
    https://api.hyperliquid.xyz/info
  ```

  ```python Python (hyperliquid-python-sdk) theme={null}
  from hyperliquid.info import Info
  from hyperliquid.utils import constants

  info = Info(constants.MAINNET_API_URL, skip_ws=True)

  # The SDK has no dedicated userBorrowLendInterest helper, so post the request directly.
  interest = info.post("/info", {
      "type": "userBorrowLendInterest",
      "user": "0x1442ad477ded1b0028b57621aa7b6f7eadb8f568",
  })
  print(interest)
  ```

  ```typescript TypeScript (@nktkas/hyperliquid) theme={null}
  import { HttpTransport, InfoClient } from "@nktkas/hyperliquid";

  const transport = new HttpTransport();
  const info = new InfoClient({ transport });

  const interest = await info.userBorrowLendInterest({
    user: "0x1442ad477ded1b0028b57621aa7b6f7eadb8f568",
  });
  console.log(interest);
  ```
</CodeGroup>

## Example response

```json theme={null}
[
  {
    "time": 1710000000000,
    "token": "USDC",
    "borrow": "0.0",
    "supply": "1.234567"
  }
]
```

## Use cases

The `info` endpoint with `type: "userBorrowLendInterest"` is useful for:

* Tracking interest earned and paid over time
* Accounting and tax reporting for borrow/lend activity
* Analyzing the cost and yield of positions


## OpenAPI

````yaml openapi/hyperliquid_node_api/hypercore_info/info_user_borrow_lend_interest.json post /info
openapi: 3.0.0
info:
  title: Hyperliquid Node API
  version: 1.0.0
  description: This is an API for interacting with Chainstack Hyperliquid node.
servers:
  - url: https://api.hyperliquid.xyz
security: []
paths:
  /info:
    post:
      tags:
        - hyperliquid operations
      summary: info (userBorrowLendInterest)
      operationId: infoUserBorrowLendInterest
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  description: Request type
                  default: userBorrowLendInterest
                  enum:
                    - userBorrowLendInterest
                user:
                  type: string
                  description: User address in 42-character hexadecimal format.
                  default: '0x1442ad477ded1b0028b57621aa7b6f7eadb8f568'
              required:
                - type
                - user
      responses:
        '200':
          description: The user's borrow/lend interest accrual records.
          content:
            application/json:
              schema:
                type: array
                description: >-
                  Each item is a borrow/lend interest record for a token at a
                  point in time.
                items:
                  type: object
                  properties:
                    time:
                      type: integer
                      description: Timestamp of the update (ms since epoch).
                    token:
                      type: string
                      description: Token symbol (e.g., USDC).
                    borrow:
                      type: string
                      description: Borrow interest amount.
                    supply:
                      type: string
                      description: Supply interest amount.

````