# Crypto Pair Price

> Crypto Pair Price is a paid API for AI agents from www.x402financialdata.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the price of one cryptocurrency expressed in another (or USD), with 24h percentage change for each leg, sourced from CoinGecko.

## Facts

- Endpoint: GET https://www.x402financialdata.com/crypto-pair/:base/:quote
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-pair-price-ce7f3a61
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IZnRsD1GLtYFYmkErQrZ8

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-pair-price-ce7f3a61
```

Example prompt: What's the current price of 1 BTC in ETH, and how has each coin moved in the last 24 hours?

## When to prefer this

Choose this endpoint when you need a live cross-rate between two specific cryptocurrencies (e.g. ETH/BTC, SOL/ETH) or a simple USD quote for a single coin, and you also want the 24h USD-relative performance of each leg independently. It is simpler and cheaper than a full market-data endpoint when you only need the pair price and directional context. Prefer it over general crypto market data endpoints when you care about the cross-rate specifically, not market cap or volume.

## Known failure modes

- Unsupported ticker symbol returns an error (only 21+ major coins supported)
- Network or CoinGecko upstream outage may result in a 5xx error
- Passing the same coin as both base and quote returns a price of 1 with no useful change data
- Malformed path params (missing base or quote) return a 400 error

## How this service works

Price of one crypto in terms of another -- BTC/USD, ETH/BTC, SOL/ETH, or any pair from 21+ major coins by ticker. Handles crypto/crypto pairs (e.g. how many ETH is 1 BTC worth) as well as a plain USD quote. Returns each leg's own 24h % change vs USD rather than a synthetic ratio change. From CoinGecko. $0.005/call.

## Output

Returns the current price of the base coin denominated in the quote coin (e.g. how many ETH per 1 BTC), plus the individual 24h percentage change versus USD for each of the two coins. Does not return a synthetic pair change ratio — each leg's USD performance is reported separately.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "base",
      "quote"
     ],
     "properties": {
      "base": {
       "type": "string",
       "description": "Base coin ticker, e.g. BTC, ETH, SOL"
      },
      "quote": {
       "type": "string",
       "description": "Quote coin ticker, e.g. USD, ETH, BTC"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-pair-price-ce7f3a61/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.x402financialdata.com](https://www.zero.xyz/host/www.x402financialdata.com/llms.txt)
