# DefiLlama — Get historical TVL (excludes liquid staking and double counted tvl) of DeFi on all chains

Get DefiLlama Global 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 date to track macro defi cycles, benchmark chain dominance, and generate executive briefings, 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-defi-on-all-chain/c0bcad1d-fba5-4b1d-917a-218cdf250ec4/
API ID: c0bcad1d-fba5-4b1d-917a-218cdf250ec4
Provider: defillama
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/defillama/v2/historicalChainTvl
Page update time: 2026-12-03T02:39:15.410Z
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.613Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

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

Call this parameter-free GET endpoint to fetch the historical aggregate DeFi TVL curve across all chains. Liquid staking and double-counted TVL are excluded from the returned `date` and `tvl` entries.

## What You Can Build

- **Track macro DeFi cycles**: Overlay global DeFi TVL against stablecoin supply to measure on-chain capital deployment.
- **Benchmark chain dominance**: Use global daily TVL as the denominator when computing single-chain market share over time.
- **Generate executive briefings**: Compute 7-day, 30-day and year-to-date aggregate TVL percentage changes.

## Returned Data

| Field | Meaning |
| --- | --- |
| `[]` | Global historical DeFi TVL time-series array |
| `[].date` | UNIX timestamp for the aggregate TVL observation |
| `[].tvl` | Combined DeFi TVL in USD across all chains (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 DeFi on all chains 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": {}
    },
    "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' \
  -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": 15000000000
  }
]
```

## 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
### Are any request parameters required?
No. Send a GET request with your OpenAny API key and no path or query inputs.

### Why are liquid staking and double-counted TVL excluded?
Excluding them avoids counting the same underlying collateral multiple times across protocols and chains.

### What fields does each array item contain?
Each entry provides date (UNIX timestamp) and tvl (USD total).

### Can I request only the last 30 days from the API?
No date filter is defined in the contract; filter the returned time-series array by date client-side.

### How do I get historical TVL for just one chain?
Use the DefiLlama Chain Historical TVL API and pass the target chain slug in the path.

### Where can I get current per-chain TVL rankings?
Use the DefiLlama All Chains TVL API to fetch current TVL for every chain.

## Available implementations
- defillama: https://openany.si/defillama/defillama-get-historical-tvl-excludes-liquid-staking-and-double-counted-tvl-of-defi-on-all-chain/c0bcad1d-fba5-4b1d-917a-218cdf250ec4/

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