> ## Documentation Index
> Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# userBorrowLendInterest | Hyperliquid Info API

> Hyperliquid userBorrowLendInterest: fetch a user's borrow/lend interest accrual history.

<CardGroup cols={2}>
  <Card title="Credit Cost"> 1 per call</Card>
  <Card title="Processing"> Realtime</Card>
</CardGroup>

The Hyperliquid info endpoint with `type: "userBorrowLendInterest"` is used to fetch a user's borrow/lend interest accrual history.

<Tip>
  Estimate your monthly cost for this API using the [Pricing Calculator](/docs/pricing-calculator?endpoint=%2Fapi-reference%2Fhyperliquid-info%2Fuser-borrow-lend-interest).
</Tip>

<Info>
  * Wire-equal to `POST api.hyperliquid.xyz/info` with `{"type": "userBorrowLendInterest", "user": "...", "startTime": ...}`.
  * Bounded by a `[startTime, endTime)` window in milliseconds; `endTime` defaults to the current server time when omitted.
  * Amounts are decimal strings, one row per token per accrual point.
</Info>

Returns a user's borrow/lend interest accrual over a time window - the interest charged on borrowed balances and earned on supplied (lent) balances, per token. Use it for P\&L attribution and accounting on Hyperliquid borrow/lend positions.

User-keyed.

## Endpoint

```
POST https://hypercore.goldrushdata.com/info
Authorization: Bearer <GOLDRUSH_API_KEY>
Content-Type: application/json
```

## Request

<ParamField body="type" type="string" required>
  Always `"userBorrowLendInterest"`.
</ParamField>

<ParamField body="user" type="string" required>
  The wallet address (lowercase 0x-prefixed hex).
</ParamField>

<ParamField body="startTime" type="int" required>
  Unix timestamp in milliseconds. Inclusive lower bound for the window.
</ParamField>

<ParamField body="endTime" type="int">
  Unix timestamp in milliseconds. Inclusive upper bound. Defaults to current server time when omitted.
</ParamField>

### Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://hypercore.goldrushdata.com/info \
    -H "Authorization: Bearer $GOLDRUSH_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "type": "userBorrowLendInterest",
      "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",
      "startTime": 1735689600000
    }'
  ```

  ```typescript TypeScript theme={null}
  const response = await fetch("https://hypercore.goldrushdata.com/info", {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${process.env.GOLDRUSH_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      type: "userBorrowLendInterest",
      user: "0x31ca8395cf837de08b24da3f660e77761dfb974b",
      startTime: 1735689600000,
    }),
  });

  const interest = await response.json();
  ```

  ```python Python theme={null}
  import os, requests

  response = requests.post(
      "https://hypercore.goldrushdata.com/info",
      headers={"Authorization": f"Bearer {os.environ['GOLDRUSH_API_KEY']}"},
      json={
          "type": "userBorrowLendInterest",
          "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",
          "startTime": 1735689600000,
      },
  )

  interest = response.json()
  ```
</CodeGroup>

## Response

An array of per-token interest accrual points within the window. Empty when the user accrued no borrow/lend interest over the range.

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

### Field descriptions

<Note>
  `borrow` and `supply` are returned as **decimal strings**, preserving upstream precision. Do not parse them as floats.
</Note>

<ResponseField name="time" type="int">Millisecond timestamp of the accrual point.</ResponseField>
<ResponseField name="token" type="string">Token symbol the interest applies to - e.g. `"USDC"`.</ResponseField>
<ResponseField name="borrow" type="string">Borrow interest charged on the borrowed balance of this token.</ResponseField>
<ResponseField name="supply" type="string">Supply (lend) interest earned on the supplied balance of this token.</ResponseField>

*Last reviewed: 2026-07-24*
