# Crypto Historical Price & Market Data

> Crypto Historical Price & Market Data is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.003000/call, status unknown (last checked 2026-09-14).

Returns historical price, market cap, and trading volume data for any cryptocurrency over time

## Facts

- Endpoint: GET https://x402-gateway-production.up.railway.app/api/crypto/history
- Price: $0.003000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-c531ab04
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I4Qk1ngCoun-P0xkMAnR4

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 x402-gateway-production-up-railway-app-c531ab04
```

Example prompt: Can you pull the historical price and market cap data for Bitcoin over the last 90 days so I can see how it's been trending?

## When to prefer this

Use this endpoint when you need time-series historical data (price, market cap, volume) for a specific cryptocurrency — ideal for charting, backtesting, trend analysis, or answering questions about past crypto performance. Prefer this over real-time price endpoints when the user needs data spanning days, weeks, or months rather than the current spot price.

## Known failure modes

- Unknown or unsupported coin symbol returns an error or empty result
- Invalid date range parameters return a 400 error
- Payment of 0.003 USDC not fulfilled triggers 402 Payment Required
- Rate limiting or server overload returns 429 or 503
- Very recently listed coins may have incomplete historical data

## How this service works

Historical price, market cap, and volume data for any coin

## Output

Returns a time series dataset containing historical price, market capitalization, and trading volume figures for the requested cryptocurrency across the specified time range, suitable for charting or quantitative analysis.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "example": "bitcoin",
       "description": "Coin ID"
      },
      "days": {
       "type": "string",
       "default": "30",
       "example": "30",
       "description": "Days of history (1-365 or \"max\")"
      },
      "currency": {
       "type": "string",
       "default": "usd",
       "example": "usd",
       "description": "Fiat currency"
      },
      "interval": {
       "type": "string",
       "example": "daily",
       "description": "Data interval (daily)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-production-up-railway-app-c531ab04/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production.up.railway.app](https://www.zero.xyz/host/x402-gateway-production.up.railway.app/llms.txt)
