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

# Wholesale Credit Interest Rates

> Balance-weighted borrow rate on each wholesale credit line, as APR and APY with their standard deviations, and the borrowed balance in USD used as the weight. Each series is one credit line token, keyed by protocol, chain, credit line and token.

One row per wholesale credit interest rate, keyed by protocol, chain, credit line and token: the parent protocol and product, chain, token and the mapped protocol, project and network records. The id is the series key of the wholesale-credit-interest-rates timeseries model.

| | |
| - | - |
| Access | Lending-protocols-dataset |
| Tabular model | `wholesale-credit-interest-rates`: primary key `id` |
| Timeseries model | `wholesale-credit-interest-rates`: intervals `1d`, series key `id` (Wholesale Credit Interest Rate ID), series must be named (up to 10 per call) |

## Endpoints

> [card] [List Wholesale Credit Interest Rates](https://docs.blockworks.com/api-reference/data-api/wholesale-credit/tabular-wholesale-credit-interest-rates.md)
>
> One page of rows with per-column filters, sorting and pagination.

> [card] [Batch Get Wholesale Credit Interest Rate timeseries](https://docs.blockworks.com/api-reference/data-api/wholesale-credit/timeseries-wholesale-credit-interest-rates.md)
>
> Up to 10 series in one request, named by Wholesale Credit Interest Rate ID in `series`.

> [card] [Get Wholesale Credit Interest Rate timeseries](https://docs.blockworks.com/api-reference/data-api/wholesale-credit/timeseries-wholesale-credit-interest-rates-by-id.md)
>
> One series over a time window, keyed by its Wholesale Credit Interest Rate ID.

## Metrics

5 metrics. Use the `Field` value in `selections`; every point starts with the timestamp and continues in this order.

| Field | Name | Type | Unit | Description |
| - | - | - | - | - |
| `weightedBorrowAPR` | Weighted Borrow APR | float64 | | Balance-weighted borrow APR, as a decimal. |
| `weightedBorrowAPY` | Weighted Borrow APY | float64 | | Balance-weighted borrow APY, as a decimal. |
| `weightedBorrowAPRStdDev` | Weighted Borrow APR Standard Deviation | float64 | | Balance-weighted standard deviation of the borrow APR. |
| `weightedBorrowAPYStdDev` | Weighted Borrow APY Standard Deviation | float64 | | Balance-weighted standard deviation of the borrow APY. |
| `weightedBorrowUSD` | Weighted Borrow (USD) | float64 | | Borrow balance used as the rate weight in USD. |

## Columns

Use the `Field` value in `selections`, `sortBy`, and as the base of a filter parameter (`Field` plus one of its `Filters` suffixes).

| Field | Type | Filters | Sort | Description |
| - | - | - | - | - |
| `id` | string | `Eq`, `IsOneOf` | | The series key of the wholesale-credit-interest-rates timeseries model, the parent slug, chain, credit line id and token address, joined with underscores. (primary key) |
| `name` | string | `Eq`, `IsOneOf`, `Contains` | default | The display name of the series, the credit line name and token symbol. |
| `slug` | string | `Eq`, `IsOneOf` | yes | The parent protocol's project slug, the slug used for the same protocol across the API. |
| `parentSlug` | string | `Eq`, `IsOneOf` | yes | The parent protocol's short name. |
| `productSlug` | string | `Eq`, `IsOneOf` | | The product or version within the parent protocol. |
| `chain` | string | `Eq`, `IsOneOf` | | The short name of the chain (ethereum, base, solana). |
| `creditLineID` | string | `Eq`, `IsOneOf` | | The wholesale credit line's identifier. |
| `tokenAddress` | string | `Eq`, `IsOneOf` | | The token contract address (the mint address on Solana); null when unlabeled. |
| `creditLineName` | string | `Eq`, `IsOneOf`, `Contains` | | The wholesale credit line's display name. |
| `tokenSymbol` | string | `Eq`, `IsOneOf`, `Contains` | yes | The token's ticker symbol. |
| `protocolSlug` | string | `Eq`, `IsOneOf` | | The slug of the protocol record mapped to the product; null when unmapped. |
| `protocolName` | string | `Eq`, `IsOneOf` | | The name of the protocol record mapped to the product; null when unmapped. |
| `projectID` | string | `Eq`, `IsOneOf` | | The identifier of the parent protocol's project record; null when unmapped. |
| `networkID` | string | `Eq`, `IsOneOf` | | The chain's networkID in the blockchains model; null when unmapped. |

## Example

```bash curl theme={null}
curl "https://api.blockworks.com/query/timeseries/wholesale-credit-interest-rates/1d/<id>?timeframe=7d&selections=weightedBorrowAPR,weightedBorrowAPY" \
  -H "X-Blockworks-API-Key: $BLOCKWORKS_API_KEY"
```

See [Get Wholesale Credit Interest Rate timeseries](https://docs.blockworks.com/api-reference/data-api/wholesale-credit/timeseries-wholesale-credit-interest-rates-by-id.md) for the response and the errors.


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