Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
New API

Asset metrics

This data is included in the following Kaiko packages:

  • Level 1 & Level 2 Data [Level 2 Aggregations]

Subscriptions with "DeFi Lending & Borrowing" as the market type.

What is this endpoint for?

get

Asset metrics give the same series for one asset or one market of a lending protocol, with its supply and borrow rates, its utilization and its share of the protocol's activity. Use it to follow the yield and the demand on one asset, such as USDC on Aave v3.

Authorizations
X-Api-KeystringRequired

Your Kaiko API key. Sent on every request. Never in a query parameter.

Query parameters
blockchainstringRequired

Kaiko blockchain code. An unknown chain is a 404 unsupported_blockchain.

Example: {"value":"ethereum"}Pattern: ^[a-z0-9_]+$
protocolstringRequired

Kaiko protocol code: aav3 (Aave v3), aav2 (Aave v2), cmpd (Compound v2), cmp3 (Compound v3) or mkr (Maker). An unknown protocol, or one that does not run on blockchain, returns 404 unknown_protocol. aav3 runs on ethereum, polygon, avalanche, arbitrum and optimism; aav2 on ethereum, polygon and avalanche; cmpd, cmp3 and mkr on ethereum. /defi/lending/protocol-summaries lists the protocols of a blockchain.

Example: {"value":"aav3"}Pattern: ^[a-z0-9]{1,16}$
assetstringOptional

The asset to read: a token symbol as the rows carry it (weth) or its 0x contract address, matched in any letter case. With market_id, the asset within that market. One of asset and market_id is required (400). An asset no reserve of protocol holds returns 404 unknown_asset.

Example: {"value":"weth"}Pattern: ^[A-Za-z0-9._-]{1,64}$
market_idstringOptional

The market to read, as the rows carry it (aave/v3/weth, maker/v2/eth-a). One of asset and market_id is required (400). A market protocol does not have returns 404 unknown_asset.

Example: {"value":"aave/v3/weth"}Pattern: ^[a-z0-9/._-]{1,128}$
start_timestring · date-timeOptional

Inclusive start of the window, ISO 8601 UTC. The endpoint documents its precision and its default when omitted; a nanosecond endpoint accepts any precision from seconds to nanoseconds.

Example: 2026-09-24T00:00:00.000Z
end_timestring · date-timeOptional

Exclusive end of the window, ISO 8601 UTC, at the precision the endpoint documents. Defaults to now. Must be after start_time.

Example: 2026-09-25T00:00:00.000Z
intervalstring · enumOptional

Bucket length of a lending metrics read: whole hours, so the cumulative interest is read from the hourly checkpoints.

Default: 1dExample: 1hPossible values:
sortstring · enumOptional

Order on the time axis.

Default: descExample: descPossible values:
page_sizeinteger · min: 1 · max: 1000Optional

Rows per page. A value above the maximum returns 400, never a silent cap. Endpoints needing other bounds define their own PageSize<Resource>Query.

Default: 100Example: {"value":100}
api_versionstringOptional

Contract version to serve, as a date. Each endpoint serves its newest version released on or before it, so one date pins the whole API. When omitted, the endpoint's oldest version still served is used, so breaking changes only reach clients that raise their date. Append -preview (2027-02-01-preview) to also be served preview versions, which carry no stability promise. A date in the future, or one resolving to a retired version, returns 400 unsupported_api_version. The version served is echoed in meta.api_version, and meta.url and meta.next_url always carry this parameter. No default here on purpose: it differs per endpoint, and the request validator would otherwise fill in one date for all of them.

Example: 2026-10-01Pattern: ^\d{4}-\d{2}-\d{2}(-preview)?$
Responses
200

One page of LendingAssetMetric rows.

application/json

One page of LendingAssetMetric rows.

get/defi/lending/asset-metrics
GET /defi/lending/asset-metrics?blockchain=text&protocol=text HTTP/1.1
Host: api.kaiko.io
X-Api-Key: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "blockchain": "ethereum",
      "protocol": "aav3",
      "market_id": "aave/v3/weth",
      "asset_symbol": "weth",
      "asset_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
      "timestamp": "2026-09-01T00:00:00.000Z",
      "num_assets": 1,
      "total_deposited_usd": "5139129210.683418",
      "total_collateral_usd": "5097505392.533049",
      "total_borrowed_usd": "4391013321.995652",
      "total_utilization_ratio": "0.8544274996759074",
      "collateral_ratio": "0.9919006087521909",
      "cumulative_liquidated_usd": "2292300435.1364694",
      "cumulative_liquidated_profit_usd": "121838081.2511936",
      "cumulative_protocol_revenue_usd": "153931241.70012015",
      "cumulative_interest_accumulated_usd": "1049083712.2651507",
      "cumulative_interest_earned_usd": "1049083712.2651507",
      "cumulative_interest_paid_usd": "1211842084.8214176",
      "interval_protocol_revenue_usd": "120940.87517240644",
      "interval_interest_earned_usd": "749731.141733408",
      "interval_interest_paid_usd": "876035.2422013283",
      "interval_interest_accumulated_usd": "749731.141733408",
      "interval_number_of_deposits": 405,
      "interval_number_of_withdraws": 1727,
      "interval_number_of_repays": 797,
      "interval_number_of_borrows": 1096,
      "interval_number_of_liquidations": 1,
      "interval_number_of_flash_loans": 422,
      "interval_number_of_users": 253,
      "interval_deposited_usd": "1005413583.0446085",
      "interval_withdrawn_usd": "774699783.2951672",
      "interval_repaid_usd": "121934053.4767422",
      "interval_borrowed_usd": "223388010.38483855",
      "interval_liquidated_usd": "28.958188153525015",
      "interval_flash_loaned_usd": "3684322.532557155",
      "interval_liquidated_profit_usd": "2.0203387439250946",
      "lend_rate": "0.015457756035325305",
      "borrow_rate_stable": "0",
      "borrow_rate_variable": "0.02182505194271038",
      "utilization_rate": "0.8544274996759074",
      "deposit_ratio": "0.4401957924",
      "withdraw_ratio": "0.5407866713",
      "borrow_ratio": "0.5850506172",
      "liquidation_ratio": null,
      "total_deposit_ratio": "0.2112673212",
      "total_borrow_ratio": "0.4399366153"
    }
  ],
  "meta": {
    "api_version": "2026-10-01",
    "url": "https://api.kaiko.io/defi/lending/asset-metrics?blockchain=ethereum&protocol=aav3&asset=weth&start_time=2026-09-01T00:00:00.000Z&end_time=2026-09-02T00:00:00.000Z&page_size=1&api_version=2026-10-01",
    "count": 1,
    "next_url": null
  }
}

Last updated

Was this helpful?