# Financial Data x402 – Crypto Price History

> Financial Data x402 – Crypto Price History 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 historical daily price, volume, and market cap data for a cryptocurrency symbol over the past 30 days, paid per-call via x402 (USDC on Base or Solana).

## Facts

- Endpoint: GET https://x402-stock-indicators.vercel.app/crypto-history/%7Bsymbol%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-price-history-415a3015
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ydyUtIj0rGSSVB8qbdFUE

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-price-history-415a3015
```

Example prompt: Pull the last 30 days of daily price, volume, and market cap history for BTC using the x402 pay-per-call crypto data service — I want to see how it's been trending.

## When to prefer this

Choose this endpoint when you need 30-day historical crypto price, volume, and market cap data with no API key or subscription required — ideal for agents that need lightweight, pay-as-you-go access via USDC micropayments over the x402 protocol, especially in automated or low-frequency workflows where traditional API subscriptions are overkill.

## Known failure modes

- Invalid or unrecognized symbol returns an error or empty data
- Payment failure (insufficient USDC balance or unsupported chain) blocks the request
- CoinGecko upstream outage may cause 502 or stale data
- Malformed symbol in URL path returns 400 or 404
- Rate limiting on upstream data provider may delay response

## 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 queried symbol, CoinGecko ID, the vs_currency (USD), number of days (30), point count, and an array of daily data points each with a timestamp (t), price, volume, and market cap.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "days": 30,
  "points": [
   {
    "t": "2026-07-10T00:00:00Z",
    "price": 63118.23,
    "volume": 15815981040.35,
    "market_cap": 1266456023316.78
   },
   {
    "t": "2026-08-09T05:14:10Z",
    "price": 65167.89,
    "volume": 12200124511.14,
    "market_cap": 1307784610884.24
   }
  ],
  "symbol": "BTC",
  "point_count": 2,
  "vs_currency": "usd",
  "coingecko_id": "bitcoin"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/financial-data-x402-crypto-price-history-415a3015/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)
