# Crypto Spot Price Aggregator (Median, Multi-Exchange)

> Crypto Spot Price Aggregator (Median, Multi-Exchange) is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Returns aggregated spot USD prices for major cryptocurrencies, computed as a median across up to five exchanges (Coinbase, Kraken, Bybit, Binance, CoinGecko), with source count, dispersion, 24h change, and volume.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/prices?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-spot-price-aggregator-median-multi-exchange-e1b7168b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__-CWuw0rF9rtVx1h4T2ys

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 crypto-spot-price-aggregator-median-multi-exchange-e1b7168b
```

Example prompt: What are the current spot USD prices for BTC, ETH, and SOL right now — pull from multiple exchanges and give me the median price along with how much they've moved in the last 24 hours?

## When to prefer this

Choose this endpoint when you need a robust, manipulation-resistant spot price that is the median across multiple top exchanges rather than trusting a single source. Ideal for trading agents, DeFi bots, or portfolio valuations where price reliability and source transparency (n_sources, dispersion_bps) matter. Prefer this over single-exchange feeds when cross-exchange consistency is important.

## Known failure modes

- If all exchanges are unreachable, no median can be computed and the endpoint may return an error or empty prices object
- If a symbol is not supported (outside BTC,ETH,SOL,BNB,XRP,DOGE,ADA,AVAX,LINK,SUI), it may be omitted from results or return an error
- Dispersion may be high if exchanges disagree significantly, indicating potential data quality issues
- Payment failure (x402) will block access if USDC balance is insufficient

## How this service works

Spot USD prices: median of Coinbase, Kraken, Bybit, Binance, CoinGecko (whichever respond) with n_sources, dispersion_bps, with 24h change/volume. symbols=BTC,ETH,SOL default; also BNB,XRP,DOGE,ADA,AVAX,LINK,SUI.

## Output

A JSON object with a 'prices' map keyed by symbol (e.g. BTC), each containing the median USD price, per-exchange prices, 24h percentage change, and volume. Also includes a 'sources' array listing the exchange URLs that responded, the number of sources contributing to the median, dispersion in basis points, and an 'updated_at' ISO timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "symbols": {
       "type": "string",
       "examples": [
        "BTC,ETH,SOL",
        "BTC"
       ],
       "description": "Comma-separated symbols (default BTC,ETH,SOL)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "prices": {
   "BTC": {
    "price_usd": 80867.7,
    "binance_usdt": 80860,
    "coinbase_usd": 80875.4,
    "change_24h_pct": 1.2
   }
  },
  "sources": [
   "https://api.binance.com",
   "https://api.coinbase.com"
  ],
  "updated_at": "2026-10-28T11:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-spot-price-aggregator-median-multi-exchange-e1b7168b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kr-x402-mvp.kgy5612.workers.dev](https://www.zero.xyz/host/kr-x402-mvp.kgy5612.workers.dev/llms.txt)
