# Agent402 Coin Market Chart Range

> Agent402 Coin Market Chart Range is a paid API for AI agents from agent402.tools, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-10).

Returns historical OHLCV-style price, volume, and market cap data for a cryptocurrency over a specified time window, with summary statistics and configurable granularity.

## Facts

- Endpoint: GET https://agent402.tools/api/coin-market-chart-range?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-coin-market-chart-range-3a85abf5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VhmUl9nDXZpldAA5TMa20

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 agent402-coin-market-chart-range-3a85abf5
```

Example prompt: Can you pull the historical price and volume data for ethereum in USD from August 1st to August 22nd 2026, including the high, low, and percent change summary?

## When to prefer this

Choose this endpoint when you need time-series cryptocurrency price, volume, and market cap data over a specific historical range with summary statistics (high, low, change%) included. It is ideal for backtesting, charting, portfolio reviews, or any workflow requiring structured OHLCV-style data for a named coin without managing CoinGecko API keys directly. Prefer it over general crypto tickers when you need range data rather than a single current price.

## Known failure modes

- Unknown coin id returns an error or empty result — use CoinGecko slug format (e.g. 'bitcoin', not 'BTC')
- Invalid or unparseable date formats in from/to fields may cause a 400-level error
- Requesting very long historical windows may result in coarser granularity or truncated data
- If the requested window exceeds available data history, the response may be partial
- Network or upstream CoinGecko unavailability may result in a 5xx or timeout response

## How this service works

Price, market cap and volume series for a coin over an ARBITRARY time window: `from`/`to` as unix seconds or ISO dates, or `lookback` ("6h", "3d", "2w") ending now. Granularity is automatic upstream: 5-minute points for a window of 1 day or less, hourly up to 90 days, daily beyond. The windowed sibling of crypto-history (which counts days back from now): use it to align with a specific event, a filing date or another series.

## Output

Returns a JSON object with the queried coin id, from/to timestamps, number of data points, granularity (e.g. 1h), an array of time-series points each containing time, price, volume, and market cap, a summary object with low/high/first/last/changePct values, the currency, data source (CoinGecko), fetchedAt timestamp, and a cached flag.

## 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": [
      "coin"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Window end: unix seconds or ISO-8601 date. Default = now."
      },
      "coin": {
       "type": "string",
       "description": "Coin id (bitcoin, ethereum, ...)."
      },
      "from": {
       "type": "string",
       "description": "Window start: unix seconds or ISO-8601 date. Default = to minus 24h."
      },
      "currency": {
       "type": "string",
       "description": "vs currency (default usd)."
      },
      "lookback": {
       "type": "string",
       "description": "Alternative to from: a window ending at `to`, like \"6h\", \"3d\" or \"2w\"."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "source",
      "fetchedAt",
      "cached",
      "coin",
      "currency",
      "from",
      "to",
      "count",
      "granularity",
      "summary",
      "points"
     ],
     "properties": {
      "to": {
       "type": "string"
      },
      "coin": {
       "type": "string"
      },
      "from": {
       "type": "string"
      },
      "count": {
       "type": "integer"
      },
      "cached": {
       "type": "boolean"
      },
      "points": {
       "type": "array"
      },
      "source": {
       "type": "string"
      },
      "summary": {
       "type": "object"
      },
      "currency": {
       "type": "string"
      },
      "fetchedAt": {
       "type": "string"
      },
      "granularity": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "2026-08-22T13:20:00.000Z",
  "coin": "ethereum",
  "from": "2026-08-19T13:20:00.000Z",
  "count": 73,
  "cached": false,
  "points": [
   {
    "time": "2026-08-19T14:00:00.000Z",
    "price": 2380.1,
    "volume": 13800000000,
    "marketCap": 287000000000
   }
  ],
  "source": "coingecko",
  "summary": {
   "low": 2350,
   "high": 2480.1,
   "last": 2424.5,
   "first": 2380.1,
   "changePct": 1.87
  },
  "currency": "usd",
  "fetchedAt": "2026-08-22T13:20:00.000Z",
  "granularity": "1h"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-coin-market-chart-range-3a85abf5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
