# Crypto All-Time-High API
> Live crypto all-time-high tracker as an API — the distance-from-ATH (and distance-from-all-time-low) every crypto dashboard shows, powered by CoinGecko. For any coin it returns the current price, its all-time high with the date and how far below it the price sits now (the headline "X% below ATH"), the days since that high, and the mirror metrics versus the all-time low. It also ranks the top 100 coins by how close they are to — or how far they have fallen from — their ATH, so you can see at a glance which assets are at fresh highs and which are deepest in drawdown. Get a coin's ATH stats, the leaders/laggards board, or search to resolve a coin name to its id. The cycle-and-drawdown layer for crypto, trading and dashboard apps. Live, no key. Distinct from live-price, market-cap and OHLC APIs — this is the all-time-high / drawdown analytic.

## 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/cryptoath-api/..."
```

## Pricing
- **Free** (Free) — 9,000 calls/Mo, 5 req/s
- **Starter** ($13/Mo) — 125,000 calls/Mo, 15 req/s
- **Pro** ($36/Mo) — 650,000 calls/Mo, 40 req/s
- **Desk** ($85/Mo) — 3,000,000 calls/Mo, 100 req/s

## Endpoints

### ATH

#### `GET /v1/ath` — A coin ATH/ATL stats and distance

**Parameters:**
- `coin` (query, required, string) — Coin id or symbol Example: `bitcoin`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/cryptoath-api/v1/ath?coin=bitcoin"
```

**Response:**
```json
{
    "data": {
        "id": "bitcoin",
        "ath": 126080,
        "atl": 67.81,
        "name": "Bitcoin",
        "rank": 1,
        "price": 61074,
        "at_ath": false,
        "symbol": "BTC",
        "ath_date": "2025-10-06T18:57:42.558Z",
        "atl_date": "2013-07-06T00:00:00.000Z",
        "market_cap": 1223963328525,
        "below_ath_pct": -51.56,
        "change_24h_pct": -3.51,
        "days_since_ath": 246,
        "up_from_atl_pct": 89967.04
    },
    "meta": {
        "timestamp": "2026-06-10T05:21:16.072Z",
        "request_id": "5b5f6fd1-26f4-4592-b1df-de0364636826"
    },
    "status": "ok",
    "message": "ATH stats retrieved successfully",
    "success": true
}
```

### Leaders

#### `GET /v1/leaders` — Top-100 ranked by distance from ATH

**Parameters:**
- `order` (query, optional, string) — near (closest to ATH) | far (deepest drawdown) Example: `far`
- `limit` (query, optional, string) — Max coins (1-100) Example: `20`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/cryptoath-api/v1/leaders?order=far&limit=20"
```

**Response:**
```json
{
    "data": {
        "coins": [
            {
                "id": "internet-computer",
                "ath": 700.65,
                "atl": 2.02,
                "name": "Internet Computer",
                "rank": 61,
                "price": 2.25,
                "at_ath": false,
                "symbol": "ICP",
                "ath_date": "2021-05-10T16:05:53.653Z",
                "atl_date": "2026-02-24T05:35:51.591Z",
                "market_cap": 1246074160,
                "below_ath_pct": -99.68,
                "change_24h_pct": -3.44,
                "days_since_ath": 1857,
                "up_from_atl_pct": 11.85
            },
            {
                "id": "filecoin",
                "ath": 236.84,
                "atl": 0.677565,
                "name": "Filecoin",
                "rank": 91,
                "price": 0.74996,
                "at_ath": false,
                "symbol": "FIL",
                "ath_date": "2021-04-01T13:29:41.564Z",
                "atl_date": "2026-06-06T05:05:41.903Z",
                "market_cap": 591456379,
                "below_ath_pct": -99.68,
                "change_24h_pct": -3.11,
                "days_since_ath": 1896,
                "up_from_atl_pct": 10.95
            },
            {
                "id": "polkadot",
                "ath": 54.98,
                "atl": 0.892875,
                "name": "Polkadot",
                "rank": 50,
                "price": 0.940748,
                "at_ath": fal
…(truncated, see openapi.json for full schema)
```

### Search

#### `GET /v1/search` — Resolve a coin name/symbol to its id

**Parameters:**
- `q` (query, required, string) — Coin name or symbol Example: `solana`
- `limit` (query, optional, string) — Max results (1-25) Example: `10`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/cryptoath-api/v1/search?q=solana&limit=10"
```

**Response:**
```json
{
    "data": {
        "coins": [
            {
                "id": "solana",
                "name": "Solana",
                "rank": 7,
                "symbol": "SOL"
            },
            {
                "id": "solana-name-service",
                "name": "Solana Name Service",
                "rank": 2171,
                "symbol": "SNS"
            },
            {
                "id": "green-satoshi-token",
                "name": "STEPN Green Satoshi Token on Solana",
                "rank": 2594,
                "symbol": "GST-SOL"
            },
            {
                "id": "play-solana-token",
                "name": "Play Solana Token",
                "rank": 3026,
                "symbol": "PLAY"
            },
            {
                "id": "pepecoin-on-solana",
                "name": "PepeCoin on Solana",
                "rank": 3636,
                "symbol": "PEPE"
            },
            {
                "id": "harambe-2",
                "name": "Harambe on Solana",
                "rank": 3735,
                "symbol": "HARAMBE"
            },
            {
                "id": "solana-fork-staccana",
                "name": "Solana Fork Staccana",
                "rank": 3822,
                "symbol": "STACCANA"
            },
            {
                "id": "wiener-doge-on-solana",
                "name": "Wiener Doge on Solana",
                "rank": 4071,
                "symbol": "WIENER"
            },
        
…(truncated, see openapi.json for full schema)
```

### Meta

#### `GET /v1/meta` — Service metadata

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

**Response:**
```json
{
    "data": {
        "source": "CoinGecko public markets + search (live)",
        "service": "cryptoath-api",
        "endpoints": {
            "GET /v1/ath": "A coin's ATH/ATL stats (coin=bitcoin or coin=BTC).",
            "GET /v1/meta": "This document.",
            "GET /v1/search": "Resolve a coin name/symbol to its id (q=solana).",
            "GET /v1/leaders": "Top-100 coins ranked by distance from ATH (order=near|far, limit)."
        },
        "description": "Live crypto all-time-high tracker from CoinGecko: for any coin, the current price, its all-time high with date and how far below it the price sits now (the '% below ATH'), days since the high, and the mirror metrics versus the all-time low. Also ranks the top coins by how close they are to — or how far they have fallen from — their ATH. Get a coin's ATH stats, the leaders/laggards board, or search to resolve a name. Live, no key. Distinct from live-price, market-cap and OHLC APIs — this is the all-time-high / drawdown analytic.",
        "upstream_status": null
    },
    "meta": {
        "timestamp": "2026-06-09T03:02:33.524Z",
        "request_id": "5b8087e6-671f-409f-ad40-4ec6dcc15069"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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