# Financial Data x402 – Crypto Pair Price

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

Returns the current price, 24h USD change percentages, and metadata for a cryptocurrency trading pair (e.g. BTC/ETH) sourced from CoinGecko, paid per-call via x402 with USDC.

## Facts

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

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-caccbb0e
```

Example prompt: What's the current price of BTC quoted in ETH right now, along with each coin's 24-hour percentage change in USD?

## When to prefer this

Choose this endpoint when you need a live crypto-to-crypto pair price without setting up API keys or subscriptions, and you are operating in an x402-compatible agent environment that can pay $0.01 USDC per call on Base or Solana. Ideal for lightweight, pay-as-you-go crypto price lookups where you want both the current pair ratio and each asset's individual 24h USD movement. Prefer alternatives if you need aggregated OHLCV data, order book depth, or high-frequency streaming prices.

## Known failure modes

- Payment not received or x402 payment flow fails → 402 Payment Required response
- Invalid or unrecognized base/quote currency symbols → empty or error response
- CoinGecko data temporarily unavailable → stale or missing price data
- Combined 24h ratio change is intentionally not provided — use individual base/quote USD change fields instead
- Network timeout on the Vercel edge function → 504 or connection error

## 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 trading pair label (e.g. 'BTC/ETH'), the computed pair price, the base and quote coin 24h USD change percentages (separately, not combined), the timestamp of the data, the data source (CoinGecko), and metadata for both coins including their name, CoinGecko ID, and market cap rank.

## 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-caccbb0e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-stock-indicators.vercel.app](https://www.zero.xyz/host/x402-stock-indicators.vercel.app/llms.txt)
