# Sundial Exchange Stats API

> Sundial Exchange Stats API is a paid API for AI agents from sundial.exchange, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Returns real-time platform statistics for the Sundial Exchange Solana DEX, including TPS, TVL, SOL price, and 24h volume metrics

## Facts

- Endpoint: GET https://sundial.exchange/api/stats
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sundial-exchange-stats-api-63866d82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8k97leS8RCcD6aYGrpCyk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sundial-exchange-stats-api-63866d82
```

Example prompt: What are the current stats on Sundial Exchange — I want to see the SOL price, total value locked, transactions per second, and how 24h volume has changed?

## When to prefer this

Use this endpoint when you need a quick, single-call snapshot of Sundial Exchange's overall platform health and market metrics — including SOL price, TVL, volume, and TPS — without needing pool-level or token-level breakdown. Prefer this over /api/dex/overview when a high-level summary suffices, and over /api/pools/analytics when you don't need per-pool data.

## Known failure modes

- 402 Payment Required if $0.10 USDC payment is not provided
- 503 or timeout if Sundial Exchange backend is temporarily unavailable
- Stale or null values if on-chain data indexing is lagging
- Rate limiting if called too frequently without valid payment

## How this service works

Access /api/stats - Sundial Exchange API (Base) for $0.10

## Output

A JSON object containing: current TPS (transactions per second), total value locked in USD, SOL price in USD, 24h trading volume in USD, 24h SOL price change percentage, 24h TVL change percentage, and 24h volume change percentage — all reflecting live Sundial Exchange platform state.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tps": {
   "type": "number",
   "description": "Transactions per second"
  },
  "tvlUsd": {
   "type": "number",
   "description": "Total value locked in USD"
  },
  "solPriceUsd": {
   "type": "number",
   "description": "SOL price in USD"
  },
  "volume24hUsd": {
   "type": "number",
   "description": "24h volume in USD"
  },
  "solChange24hPct": {
   "type": "number",
   "description": "24h SOL price change %"
  },
  "tvlChange24hPct": {
   "type": "number",
   "description": "24h TVL change %"
  },
  "volume24hChangePct": {
   "type": "number",
   "description": "24h volume change %"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sundial-exchange-stats-api-63866d82/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sundial.exchange](https://www.zero.xyz/host/sundial.exchange/llms.txt)
