> ## 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.

> [card] Credit Cost
>
> 1 per call

> [card] Processing
>
> Realtime

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](https://goldrush.dev/docs/pricing-calculator.md?endpoint=%2Fapi-reference%2Fhyperliquid-info%2Fuser-borrow-lend-interest).

> [!NOTE]
>
> * 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.

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.

## Endpoint

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

## Request

**type** `string` *required*

Always `"userBorrowLendInterest"`.

**user** `string` *required*

The wallet address (lowercase 0x-prefixed hex).

**startTime** `int` *required*

Unix timestamp in milliseconds. Inclusive lower bound for the window.

**endTime** `int`

Unix timestamp in milliseconds. Inclusive upper bound. Defaults to current server time when omitted.

### Example

```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()
```

## 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.

**time** `int`

Millisecond timestamp of the accrual point.

**token** `string`

Token symbol the interest applies to - e.g. `"USDC"`.

**borrow** `string`

Borrow interest charged on the borrowed balance of this token.

**supply** `string`

Supply (lend) interest earned on the supplied balance of this token.

## Related endpoints

> [card] [borrowLendUserState](https://goldrush.dev/docs/api-reference/hyperliquid-info/borrow-lend-user-state.md)
>
> monitor a wallet’s current borrow/lend positions and liquidation risk (account health) in a single call.

> [card] [userFills](https://goldrush.dev/docs/api-reference/hyperliquid-info/user-fills.md)
>
> fetch a user's most recent trade fills without specifying a time window.

> [card] [userFillsByTime](https://goldrush.dev/docs/api-reference/hyperliquid-info/user-fills-by-time.md)
>
> fetch a user’s trade fills within a time window for P\&L recaps and tax ledger reconstruction.

> [card] [userFunding](https://goldrush.dev/docs/api-reference/hyperliquid-info/user-funding.md)
>
> fetch a user's per-coin funding payment history within a time window for funding-only P\&L attribution.

> [card] [userNonFundingLedgerUpdates](https://goldrush.dev/docs/api-reference/hyperliquid-info/user-non-funding-ledger-updates.md)
>
> fetch a user's non-funding USDC ledger history (deposits, withdrawals, transfers, vault flows) within a time…

> [card] [clearinghouseState](https://goldrush.dev/docs/api-reference/hyperliquid-info/clearinghouse-state.md)
>
> fetch a single user's perpetuals account state by wallet address.

See all Hyperliquid endpoints: [Overview hub](https://goldrush.dev/docs/goldrush-hyperliquid/overview.md) · [Info API reference](https://goldrush.dev/docs/goldrush-hyperliquid/info-api/overview.md)

*Last reviewed: 2026-08-17*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.