# DefiLlama — Get historical TVL (excludes liquid staking and double counted tvl) of a chain

Get DefiLlama Chain Historical TVL data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including structured JSON records, identifiers, and response metadata for chart l1/l2 adoption, compare ecosystem drawdowns, and compute chain market share, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/defillama/defillama-get-historical-tvl-excludes-liquid-staking-and-double-counted-tvl-of-a-chain/a2c082ed-ef5a-404e-b4b2-f7cdae255219/
API ID: a2c082ed-ef5a-404e-b4b2-f7cdae255219
Provider: defillama
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/defillama/v2/historicalChainTvl/{chain}
Page update time: 2026-12-03T02:39:15.398Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:39:12.491Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## DefiLlama Chain Historical TVL API

Provide a blockchain slug in the `chain` path parameter (such as `Ethereum`, obtained from `/v2/chains`). The response is an array of timestamped `date` and `tvl` records excluding liquid staking and double-counted TVL.

## What You Can Build

- **Chart L1/L2 adoption**: Plot multi-year TVL curves for Ethereum, Arbitrum, Solana or Base in analytics dashboards.
- **Compare ecosystem drawdowns**: Measure peak-to-trough liquidity changes across competing chains during market stress.
- **Compute chain market share**: Divide a chain’s historical TVL by global totals from the Global Historical TVL API.

## Returned Data

| Field | Meaning |
| --- | --- |
| `[]` | Historical TVL time-series array for the selected chain |
| `[].date` | UNIX timestamp for the TVL data point |
| `[].tvl` | Chain total value locked in USD (excluding liquid staking and double-counted TVL) |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DefiLlama — Get historical TVL (excludes liquid staking and double counted tvl) of a chain request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "chain": {
          "type": "string",
          "description": "chain slug, you can get these from /chains or the chains property on /protocols"
        }
      },
      "required": [
        "chain"
      ]
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "date": {
        "type": "integer"
      },
      "tvl": {
        "type": "integer"
      }
    }
  }
}
```

## Request example
Scenario: Official UI example (not runtime verified)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/defillama/v2/historicalChainTvl/Ethereum' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
[
  {
    "date": 1609459200,
    "tvl": 45000000000
  }
]
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Where do I find valid chain slugs?
Call the DefiLlama All Chains TVL API and use the returned name values (for example, Ethereum).

### Does this TVL include liquid staking or double-counted assets?
No. Per the contract, this endpoint excludes liquid staking and double-counted TVL.

### Can I filter by a start or end date in the query string?
No date range query parameters are defined; slice the returned array by date on the client side.

### What format are date and tvl returned in?
date is a numeric UNIX timestamp in seconds and tvl is a numeric USD figure.

### How do I get historical TVL across all chains combined?
Use the DefiLlama Global Historical TVL API with no chain path parameter.

### How do I inspect historical TVL for a single DeFi protocol?
Use the DefiLlama Protocol Historical TVL API with a protocol slug.

## Available implementations
- defillama: https://openany.si/defillama/defillama-get-historical-tvl-excludes-liquid-staking-and-double-counted-tvl-of-a-chain/a2c082ed-ef5a-404e-b4b2-f7cdae255219/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
