# Defillama

10 endpoints on Defillama. Every one returns the same response shape and has a flat, published price in credits.

Category: [Finance & markets](https://onekey.dev/docs/categories/finance.md) · [Overview page](https://onekey.dev/platforms/defillama)

## Endpoints

| Endpoint | What it does | Cost | Status |
| --- | --- | --- | --- |
| [`chain_tvl_history`](https://onekey.dev/docs/api/defillama/chain_tvl_history.md) | Daily TVL history for a chain (all time). | 5 credits | stable |
| [`chains`](https://onekey.dev/docs/api/defillama/chains.md) | TVL per chain across DeFi. | 5 credits | stable |
| [`global_tvl_history`](https://onekey.dev/docs/api/defillama/global_tvl_history.md) | Daily global DeFi TVL history (all time). | 5 credits | stable |
| [`hacks`](https://onekey.dev/docs/api/defillama/hacks.md) | DeFi hacks and exploits database. | 5 credits | stable |
| [`pool_chart`](https://onekey.dev/docs/api/defillama/pool_chart.md) | TVL/APY history for a yield pool (by pool UUID). | 5 credits | stable |
| [`protocol_dex_volume`](https://onekey.dev/docs/api/defillama/protocol_dex_volume.md) | DEX volume summary of a protocol (24h/7d/30d/all-time). | 1 credit | stable |
| [`protocol_fees`](https://onekey.dev/docs/api/defillama/protocol_fees.md) | Fees/revenue summary of a protocol (24h/7d/30d/all-time). | 1 credit | stable |
| [`protocol_tvl`](https://onekey.dev/docs/api/defillama/protocol_tvl.md) | Current TVL of a DeFi protocol (by DefiLlama slug). | 1 credit | stable |
| [`stablecoin_chains`](https://onekey.dev/docs/api/defillama/stablecoin_chains.md) | Stablecoin market cap per chain. | 5 credits | stable |
| [`stablecoins`](https://onekey.dev/docs/api/defillama/stablecoins.md) | All stablecoins with circulating supply and peg info. | 5 credits | stable |

Every endpoint page has a **Field mapping** section showing which source field becomes which [unified field](https://onekey.dev/docs/schema.md) (fixed schema) or platform-specific `ext.` field.
