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

# Lending Market Financials

> Daily interest, net interest income, fees and revenue in USD for one token in one lending market. Each series is one market token, keyed by protocol, product, chain, market and token. Fee components a protocol does not report are null. Many series per market, so name the series you need.

One row per token in a lending market, keyed by protocol, product, chain, market and token: the market and token, the parent protocol and product, chain and the mapped protocol, project and network records. The id is the series key of the lending-market-financials timeseries model.

| | |
| - | - |
| Access | Lending-protocols-dataset |
| Tabular model | `lending-market-financials`: primary key `id` |
| Timeseries model | `lending-market-financials`: intervals `1d`, series key `id` (Lending Market Financial ID), series must be named (up to 20 per call) |

## Endpoints

<CardGroup cols={2}>
  <Card title="List Lending Market Tokens" icon="arrow-right" href="/api-reference/data-api/lending-protocols/tabular-lending-market-financials">
    One page of rows with per-column filters, sorting and pagination.
  </Card>

  <Card title="Batch Get Lending Market Financial timeseries" icon="arrow-right" href="/api-reference/data-api/lending-protocols/timeseries-lending-market-financials">
    Up to 20 series in one request, named by Lending Market Financial ID in `series`.
  </Card>

  <Card title="Get Lending Market Financial timeseries" icon="arrow-right" href="/api-reference/data-api/lending-protocols/timeseries-lending-market-financials-by-id">
    One series over a time window, keyed by its Lending Market Financial ID.
  </Card>
</CardGroup>

## Metrics

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

| Field | Name | Type | Unit | Description |
| - | - | - | - | - |
| `interestUSD` | Interest (USD) | float64 | | Interest paid by borrowers in USD. |
| `netInterestIncomeUSD` | Net Interest Income (USD) | float64 | | Net interest income in USD, the interest kept by the protocol. |
| `flashLoanFeesUSD` | Flash Loan Fees (USD) | float64 | | Flash loan fees in USD; null where the protocol does not report them. |
| `liquidationFeesUSD` | Liquidation Fees (USD) | float64 | | Liquidation fees in USD; null where the protocol does not report them. |
| `royaltiesUSD` | Royalties (USD) | float64 | | Royalty fees in USD; null where the protocol does not report them. |
| `feesUSD` | Fees (USD) | float64 | | Total fees in USD, interest plus flash loan, liquidation and royalty fees. |
| `revenueUSD` | Revenue (USD) | float64 | | Revenue in USD, net interest income plus flash loan, liquidation and royalty fees. |

## 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 lending-market-financials timeseries model, the parent slug, product slug, chain, market key and token key, joined with underscores. (primary key) |
| `name` | string | `Eq`, `IsOneOf`, `Contains` | default | The display name of the series, the market 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, the id in lending-protocols (aave). |
| `productSlug` | string | `Eq`, `IsOneOf` | | The product or version within the parent protocol (aave-v3). |
| `chain` | string | `Eq`, `IsOneOf` | | The short name of the chain the market lives on (ethereum, bnb, solana). |
| `marketID` | string | `Eq`, `IsOneOf` | | The market or pool address; null when the protocol does not label markets. |
| `marketName` | string | `Eq`, `IsOneOf`, `Contains` | | The market display name. |
| `marketType` | string | `Eq`, `IsOneOf` | | The market type where the protocol distinguishes one (for example core, pooled or credit\_vault); null otherwise. |
| `tokenAddress` | string | `Eq`, `IsOneOf` | | The token contract address (the mint address on Solana); null when unlabeled. |
| `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. |
| `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/lending-market-financials/1d/<id>?timeframe=7d&selections=interestUSD,netInterestIncomeUSD" \
  -H "X-Blockworks-API-Key: $BLOCKWORKS_API_KEY"
```

See [Get Lending Market Financial timeseries](/api-reference/data-api/lending-protocols/timeseries-lending-market-financials-by-id) for the response and the errors.


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