---
title: "DeFi balance sheets (experimental)"
method: GET
path: "/timeseries/defi-balance-sheets"
tags: ["Timeseries"]
---

# DeFi balance sheets (experimental)

`GET /timeseries/defi-balance-sheets`

## Request

- Base URL: `https://api.coinmetrics.io/v4`
- URL: `https://api.coinmetrics.io/v4/timeseries/defi-balance-sheets`
- Auth: API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/docs/timeseries/defi-balance-sheets/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns Defi Balance Sheet records for specified DeFi protocols.</br> The data is being updated on an end-of-day frequency.</br> Results are ordered by tuple (`defi_protocol`, `block_height`).</br> To fetch the next page of results use the `next_page_url` JSON response field.

## Query parameters

- `defi_protocols` string[], required
- `start_time` string
- `end_time` string
- `start_height` integer
- `end_height` integer
- `start_inclusive` boolean
- `end_inclusive` boolean
- `timezone` string
- `page_size` integer
- `paging_from` 'start' | 'end', PagingFrom
- `pretty` boolean
- `format` 'json' | 'csv'
- `next_page_token` string

## Response `200`

DeFi balance sheets.

- DefiBalanceSheetsResponse: DeFi balance sheets response.
  - `data` DefiBalanceSheet[], required
    - `defi_protocol` string, required: DeFi protocol name (e.g. `aave_v2_eth` or `uniswap_v3_eth`).
    - `block_height` string, required: The block height at which this DeFi balance sheet is calculated.
    - `time` string, required: The time near or equal to the block creation time this DeFi balance sheet is calculated at. The time in ISO 8601 date-time format. Always with nanoseconds precision.
    - `assets_total_usd` string, required: Total USD value of all assets in the DeFi balance sheet.
    - `assets_total_count` string, required: Total count of all assets in the DeFi balance sheet.
    - `liabilities_total_usd` string, required: Total USD value of all liabilities in the DeFi balance sheet.
    - `liabilities_total_count` string, required: Total count of all liabilities in the DeFi balance sheet.
    - `loans_lent_total_usd` string, required: Total USD value of loans lent in the DeFi balance sheet.
    - `tvl_total_usd` string, required: Total USD value of TVL in the DeFi balance sheet.
    - `net_working_capital_usd` string, required: DeFi balance sheet net working capital USD value.
    - `protocol_utilization_ratio` string: DeFi balance sheet protocol utilization ratio.
    - `liquid_supply_ratio` string: DeFi balance sheet liquid supply ratio.
    - `current_ratio` string: DeFi balance sheet current ratio.
    - `debt_to_assets_ratio` string: DeFi balance sheet debt to asset.
    - `assets` DefiBalanceSheetAssetItem[], required: DeFi balance sheet assets.
      - `asset` string, required: Name of the asset.
      - `total_units` string, required: Balance units value.
      - `loans_lent_units` string: Balance units value.
      - `tvl_units` string: Balance units value.
      - `total_usd` string: Balance USD value.
      - `loans_lent_usd` string: Balance USD value.
      - `tvl_usd` string: Balance USD value.
      - `total_share` string: The percentage that this item represents relative to the total value.
      - `loans_lent_share` string: The percentage that this item represents relative to the total value.
      - `tvl_share` string: The percentage that this item represents relative to the total value.
    - `liabilities` DefiBalanceSheetLiabilityItem[], required: DeFi balance sheet liabilities.
      - `asset` string, required: Name of the asset.
      - `total_units` string, required: Balance units value.
      - `total_usd` string: Balance USD value.
      - `total_share` string: The percentage that this item represents relative to the total value.
  - `next_page_token` string: Token of the next page results for a given request.
  - `next_page_url` string: URL of the next page results for a given request.

## Other responses

- `400`: DeFi protocol not found.
- `401`: Requested resource requires authorization.
- `403`: Requested resource is not available with supplied credentials.
- `414`: Provided URI is too long. It must not be greater than 10000 symbols.

---

[API](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4.md) - [All operations](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/llms.txt) - [OpenAPI document](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/revisions/774268c0a4fe?raw)
