# Crypto Price History

> Crypto Price History is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-28).

Returns daily USD price history (high, low, % change) for any cryptocurrency token over up to 365 days, or its exact price on a specific past date.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/crypto/price-history?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-price-history-0196e346
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cn_Q2M2jMdZ4_c2hYyL6w

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 crypto-price-history-0196e346
```

Example prompt: Can you pull up the daily price history for Ethereum over the last 90 days, including the high, low, and percentage change each day?

## When to prefer this

Use this endpoint when you need historical daily OHLC-style (open/high/low/close) price data for any cryptocurrency — especially for cost basis calculations, backtesting, charting, or answering 'what was X worth on Y date' questions. It accepts flexible token identifiers (symbol, CoinGecko id, or chain:address), making it more versatile than endpoints requiring a specific format. Prefer this over real-time price endpoints when the user's question is about the past rather than the present.

## Known failure modes

- Unknown token symbol or CoinGecko id returns a 404 or empty result
- Days parameter outside the 2-365 range returns a validation error
- Invalid date format for 'on' parameter (not YYYY-MM-DD) returns a parse error
- Token contract address with unsupported chain prefix returns an error
- Very recently listed tokens may have incomplete historical data
- Rate limiting or upstream CoinGecko outage may cause 5xx errors

## How this service works

Daily USD price history of any token (symbol, CoinGecko id or chain:address) for up to 365 days with high, low and % change, or its exact price on a past date. Use for charts, backtests, cost basis or 'what was ETH worth on...' questions.

## Output

Returns an array of daily price records for the requested token, each containing the date, USD price, daily high, daily low, and percentage change. For a single-date query using the 'on' parameter, returns the exact USD price on that date. Data is sourced from CoinGecko and covers up to 365 days of history.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "on": {
       "type": "string",
       "description": "Single date YYYY-MM-DD instead of a range"
      },
      "days": {
       "type": "integer",
       "description": "Days of daily prices (2-365)"
      },
      "token": {
       "type": "string",
       "description": "Symbol, CoinGecko id or chain:address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-price-history-0196e346/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
