# Dashboard

**Tier:** Dev

`GET /hip3-analytics/dashboard`

Combined HIP-3 dashboard payload that replaces 14+ separate calls. Returns summary totals, per-DEX stats, timeseries, liquidation count/value, builder fee series, and priority gas series — everything a HIP-3 DEX analytics dashboard needs in one request. Use it as your primary dashboard data source and drill into specific DEXes with the dex-detail endpoint.

---

## Metric notes

- `liquidation_count` and `liquidation_value_usd` count only the liquidated user's fill (`liq_user IS NOT NULL` and `trader = liq_user`). Counterparty fills are excluded to avoid double-counting.

## Authentication

Requires Dev tier or higher. Dev: range limited to `4h`, `1d`, and `7d`. Pro: full access including `30d` and `all`.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | `4h`, `1d`, `7d`, `30d`, or `all`. Defaults to `1d`. Legacy `period` is accepted until July 21, 2026. |

## Tier behavior

**Dev:** `range` must be `4h`, `1d`, or `7d`.

**Pro:** Full access. `range` includes `30d` and `all`.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip3-analytics/dashboard?range=1d"
```

## Example response

```json
{
  "success": true,
  "range": "1d",
  "period": "1d",
  "summary": {
    "volume": 482000000,
    "total_fees": 241000,
    "trade_count": 128400,
    "unique_users": 8420,
    "liquidation_count": 745,
    "liquidation_value_usd": 326118281.71,
    "total_deployer_fees": 105000,
    "builder_revenue": 125000,
    "priority_gas_total": 8300
  },
  "by_dex": [
    {
      "dex_name": "hyperliquid_dex",
      "volume": 210000000,
      "total_fees": 105000,
      "trade_count": 54200,
      "unique_users": 3820,
      "liquidation_count": 210,
      "liquidation_value_usd": 98000000,
      "total_deployer_fees": 52000,
      "builder_revenue": 58000
    }
  ],
  "timeseries": [
    {
      "date": "2026-06-08T00:00:00",
      "volume": 482000000,
      "total_fees": 241000,
      "trade_count": 128400,
      "unique_users": 8420,
      "liquidation_count": 745,
      "liquidation_value_usd": 326118281.71
    }
  ],
  "builder_fee_timeseries": [],
  "priority_gas_timeseries": []
}
```

## Errors

- `400` — Invalid range value.
- `403` — Dev tier attempting `range=30d` or `range=all`. Upgrade to Pro.

## Related

- [DEX Detail](/docs/api/hip3-analytics/dex-detail)
- [Leaderboard](/docs/api/hip3-analytics/leaderboard)
