# CoinGecko Exchange Rates via Locus x402

> CoinGecko Exchange Rates via Locus x402 is a paid API for AI agents from coingecko.x402.paywithlocus.com, paid per call via x402, $0.06/call, status unknown (last checked 2026-09-15).

Fetches BTC-denominated exchange rates for all major currencies and assets via CoinGecko, paid per-call using x402 micropayments.

## Facts

- Endpoint: POST https://coingecko.x402.paywithlocus.com/coingecko/exchange-rates
- Price: $0.06/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coingecko-exchange-rates-via-locus-x402-30a5bafb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hJTkr244_UyTj2Ouvj5qV

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 coingecko-exchange-rates-via-locus-x402-30a5bafb -d '<json body>'
```

Example prompt: Pull the current BTC-denominated exchange rates for all major currencies from CoinGecko right now — I need to see how USD, EUR, GBP, and JPY compare against Bitcoin.

## When to prefer this

Choose this endpoint when you need BTC-denominated exchange rates across a broad set of fiat and crypto currencies sourced from CoinGecko, and you want pay-per-call micropayment billing via x402 with no API key management. Prefer it over direct CoinGecko API calls when operating in an agent environment that supports x402 payments natively.

## Known failure modes

- Payment failure if USDC balance insufficient for the $0.06 per-call fee
- CoinGecko API rate limiting or downtime causing upstream errors
- Malformed POST body causing request rejection
- Empty or missing input object returning validation error
- Network timeout if CoinGecko upstream is slow

## How this service works

Cryptocurrency market data — prices, charts, market cap, exchanges, trending coins, global stats, NFTs, derivatives, and on-chain data.

## Output

Returns a JSON object with a `data` field containing BTC-denominated exchange rates for all supported currencies and assets as provided by CoinGecko, along with payment settlement details (settled USDC amount, authorized max), a request ID, and a status URL for tracking.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {},
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coingecko-exchange-rates-via-locus-x402-30a5bafb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coingecko.x402.paywithlocus.com](https://www.zero.xyz/host/coingecko.x402.paywithlocus.com/llms.txt)
