# Financial Data x402 – Crypto Pair Price

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

Returns the current cross-rate price and 24-hour USD change percentages for any cryptocurrency pair (e.g. BTC/ETH), sourced from CoinGecko, via a pay-per-call x402 micropayment.

## Facts

- Endpoint: GET https://x402financialdata.com/crypto-pair/%7Bbase%7D/%7Bquote%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/financial-data-x402-crypto-pair-price-b7b505e5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UZmsN5brCI24_yU1OxLTj

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 financial-data-x402-crypto-pair-price-b7b505e5
```

Example prompt: What's the current price of BTC quoted in ETH, and how have both coins moved in the last 24 hours against USD?

## When to prefer this

Choose this endpoint when you need a real-time cryptocurrency cross-rate price (non-USD quote) without committing to an API key or subscription — ideal for AI agents that call price data infrequently or across many pairs, paying $0.01 USDC per call via x402. Prefer this over CoinGecko direct if you want trustless micropayment access on Base or Solana. Not ideal for high-frequency trading requiring millisecond latency or bulk batch pricing.

## Known failure modes

- Unknown or unsupported cryptocurrency symbol returns an error or empty result
- Payment failure via x402 (insufficient USDC balance or unsupported chain) blocks the request
- CoinGecko data staleness if the cache window has not refreshed yet (check as_of timestamp)
- Malformed URL path parameters (e.g. spaces or lowercase variants) may return 4xx errors
- Rate limiting or service unavailability on the upstream CoinGecko feed

## How this service works

Pay-per-call stock, macro, on-chain, and crypto data over the x402 protocol. USDC on Base or Solana, no API keys, no subscriptions.

## Output

A JSON object containing the cross-rate price of the base/quote pair (e.g. BTC/ETH = 33.75), the as-of timestamp, the 24-hour percentage price change in USD for both the base and quote coins separately, CoinGecko IDs and market cap ranks for both coins, and the data source. Note: a combined pair 24h-change is intentionally omitted to avoid inaccuracy from two independently cached legs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "BTC",
  "note": "No combined ratio 24h-change is provided -- combining two independently-cached USD legs into a synthetic ratio change was unreliable and dropped rather than shipped inaccurate. Use base_change_24h_pct_usd/quote_change_24h_pct_usd instead.",
  "pair": "BTC/ETH",
  "as_of": "2026-07-31T03:43:30.000Z",
  "price": 33.7577077484,
  "quote": "ETH",
  "source": "coingecko",
  "base_info": {
   "name": "Bitcoin",
   "coingecko_id": "bitcoin",
   "market_cap_rank": 1
  },
  "quote_info": {
   "name": "Ethereum",
   "coingecko_id": "ethereum",
   "market_cap_rank": 2
  },
  "base_change_24h_pct_usd": 0.32,
  "quote_change_24h_pct_usd": -0.6
 }
}
```

## More

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