# CoinGecko Market Chart via Locus x402

> CoinGecko Market Chart 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).

Returns historical price, market cap, and volume chart data for a specific cryptocurrency over a configurable time range and interval.

## Facts

- Endpoint: POST https://coingecko.x402.paywithlocus.com/coingecko/market-chart
- 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-market-chart-via-locus-x402-b6ddd126
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W9OSkJjrD4emkxiYZTehK

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-market-chart-via-locus-x402-b6ddd126 -d '<json body>'
```

Example prompt: Can you pull the daily price and market cap chart for Bitcoin in USD over the last 30 days from CoinGecko?

## When to prefer this

Choose this endpoint when you need historical OHLC or time-series market data for a specific coin over a defined period — especially when you need configurable granularity (5-minute, hourly, or daily). Prefer this over spot-price endpoints when the use case involves charting, backtesting, trend analysis, or performance review. The x402 micropayment model makes it suitable for pay-per-call agent workflows without API key management.

## Known failure modes

- Invalid coin ID returns an error — must use CoinGecko coin ID (e.g. 'bitcoin', not 'BTC')
- Unsupported 'days' value outside allowed set (1,7,14,30,90,180,365,max) causes request failure
- Invalid 'interval' value not in ('daily','hourly','5-minutely') returns error
- Insufficient USDC balance for x402 payment causes payment failure and no data returned
- Rate limiting or upstream CoinGecko API outage may result in 5xx errors

## 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 containing time-series arrays for price, market cap, and total volume (as [timestamp, value] pairs) for the requested coin and currency over the specified period, along with payment settlement details confirming the $0.06 USDC charge.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string"
  },
  "days": {
   "type": "string"
  },
  "interval": {
   "type": "string"
  },
  "precision": {
   "type": "string"
  },
  "vs_currency": {
   "type": "string"
  }
 }
}
```

## 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-market-chart-via-locus-x402-b6ddd126/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)
