# DAO Treasury API
> Live treasury composition for DeFi protocols and DAOs, keyless. For any protocol it returns the value its DAO holds in its treasury, split into the protocol OWN governance token versus real diversified reserves (stablecoins, ETH, BTC and other assets) — the single most-watched measure of treasury health and runway — broken down per chain, plus the treasury value over time. Live, nothing stored. The DAO-treasury layer for DeFi research, governance, risk and dashboard apps — this is treasury composition (own-token vs real reserves), not protocol TVL.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/daotreasury-api/..."
```

## Pricing
- **Free** (Free) — 1,900 calls/Mo, 3 req/s
- **Starter** ($13/Mo) — 46,000 calls/Mo, 8 req/s
- **Pro** ($44/Mo) — 290,000 calls/Mo, 20 req/s
- **Business** ($134/Mo) — 1,900,000 calls/Mo, 50 req/s

## Endpoints

### Treasury

#### `GET /v1/history` — Treasury total value over time for a protocol

**Parameters:**
- `protocol` (query, required, string) — DeFiLlama protocol/DAO slug Example: `uniswap`
- `limit` (query, optional, string) — Days of history (1-365, default 90) Example: `90`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/daotreasury-api/v1/history?protocol=uniswap&limit=90"
```

**Response:**
```json
{
    "data": {
        "note": "Total treasury value (own token + reserves) over time, daily. date is a unix timestamp (seconds).",
        "slug": "uniswap",
        "count": 90,
        "source": "DeFiLlama",
        "history": [
            {
                "date": 1773792000,
                "total_usd": 2119266114
            },
            {
                "date": 1773878400,
                "total_usd": 1941049582
            },
            {
                "date": 1773964800,
                "total_usd": 1895413030
            },
            {
                "date": 1774051200,
                "total_usd": 1908319005
            },
            {
                "date": 1774137600,
                "total_usd": 1854265002
            },
            {
                "date": 1774224000,
                "total_usd": 1851951028
            },
            {
                "date": 1774310400,
                "total_usd": 1897345478
            },
            {
                "date": 1774396800,
                "total_usd": 1906730516
            },
            {
                "date": 1774483200,
                "total_usd": 1939818647
            },
            {
                "date": 1774569600,
                "total_usd": 1860606917
            },
            {
                "date": 1774656000,
                "total_usd": 1777995276
            },
            {
                "date": 1774742400,
                "total_usd": 1783497040
            },
       
…(truncated, see openapi.json for full schema)
```

#### `GET /v1/treasury` — Treasury composition for a protocol — own token vs real reserves, per chain

**Parameters:**
- `protocol` (query, required, string) — DeFiLlama protocol/DAO slug (e.g. uniswap, aave, lido, balancer, frax, gnosis) Example: `uniswap`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/daotreasury-api/v1/treasury?protocol=uniswap"
```

**Response:**
```json
{
    "data": {
        "note": "reserves_usd = real diversified holdings (stablecoins, ETH, etc.); own_token_usd = the DAO's own governance token. A higher reserves share means a healthier, less reflexive treasury.",
        "slug": "uniswap",
        "chains": [
            {
                "chain": "Ethereum",
                "reserves": 1523.76,
                "own_tokens": 686827569.13
            },
            {
                "chain": "Total",
                "reserves": 0,
                "own_tokens": 686827569.13
            }
        ],
        "source": "DeFiLlama",
        "protocol": "Uniswap",
        "total_usd": 1373656662.02,
        "chain_count": 2,
        "reserves_pct": 0,
        "reserves_usd": 1523.76,
        "own_token_pct": 100,
        "own_token_usd": 1373655138.26
    },
    "meta": {
        "timestamp": "2026-06-14T08:04:22.056Z",
        "request_id": "572918ee-ecb8-47bd-aa3c-95218d99c9ac"
    },
    "status": "ok",
    "message": "DAO treasury retrieved successfully",
    "success": true
}
```

### Meta

#### `GET /v1/meta` — Service metadata & live sample

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/daotreasury-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "note": "treasury and history take a required protocol slug (a DeFiLlama protocol/DAO slug, e.g. uniswap, aave, lido, gnosis, balancer, maker, frax). history also takes optional limit (1-365 days). All money values are USD.",
        "sample": {
            "protocol": "Uniswap",
            "total_usd": 1373656662.02,
            "reserves_pct": 0
        },
        "source": "DeFiLlama open treasury API (api.llama.fi/treasury), live",
        "service": "daotreasury-api",
        "examples": [
            "uniswap",
            "aave",
            "lido",
            "balancer",
            "frax",
            "gnosis"
        ],
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/history": "Treasury value over time for a protocol (protocol=uniswap, limit).",
            "GET /v1/treasury": "Treasury composition for a protocol — own token vs real reserves, per chain (protocol=uniswap)."
        },
        "description": "Live treasury composition for DeFi protocols / DAOs, keyless. For any protocol: the value its DAO holds, split into the protocol's OWN governance token versus real diversified reserves (stablecoins, ETH, BTC) — the most-watched measure of treasury health / runway — broken down per chain, plus the treasury value over time. Live, nothing stored beyond a short protective cache. The DAO-treasury layer for DeFi research, governance, risk and dashboard apps. This is treasury composition (own-toke
…(truncated, see openapi.json for full schema)
```


---
Marketplace page: https://www.oanor.com/api/daotreasury-api
OpenAPI spec: https://www.oanor.com/api/daotreasury-api/openapi.json
