# CRYPTYX Market History

> CRYPTYX Market History is a paid API for AI agents from cryptyx.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns historical OHLCV (open, high, low, close, volume) price data for a specified digital asset over a given number of days

## Facts

- Endpoint: GET https://cryptyx.ai/api/market-history
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cryptyx-market-history-88a6424d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UU7fCMRCCYrs0UmL7Zl4D

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 cryptyx-market-history-88a6424d
```

Example prompt: Pull the last 90 days of market history for BTC from CRYPTYX — I need the daily open, high, low, close, and volume data.

## When to prefer this

Use this endpoint when you need structured historical OHLCV price data for a specific cryptocurrency over a defined time window (up to 365 days). It is well-suited for backtesting, charting, trend analysis, or generating price summaries. Prefer this over real-time ticker endpoints when historical patterns rather than current prices are needed.

## Known failure modes

- Invalid or unsupported asset symbol returns an error or empty dataset
- days parameter exceeds 365 — API likely rejects or caps the request
- Missing required parameters (asset or days) result in a 400-level error
- Payment not included or insufficient USDC causes a 402 Payment Required response
- Rate limiting or service downtime may return 429 or 5xx errors

## How this service works

Daily OHLCV bars for one asset over 1-1825 days — open, high, low, close, USD volume. UTC-1 anchor day. The grounded spot tape behind every CRYPTYX factor score and signal. Coverage: pass any asset in the CRYPTYX 200+ tracked universe (BTC, ETH, SOL, top-cap + long-tail).

## Output

An array of daily records for the requested asset, each containing date, open, high, low, close prices, and trading volume. For example, a BTC record might show date '2026-04-25', open 67000, high 68500, low 66500, close 68000, volume 1200000000.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "days": {
   "type": "number",
   "description": "Number of days (max 365)"
  },
  "asset": {
   "type": "string",
   "description": "Asset symbol (e.g. BTC, ETH, SOL)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "data": [
  {
   "low": 66500,
   "date": "2026-04-25",
   "high": 68500,
   "open": 67000,
   "asset": "BTC",
   "close": 68000,
   "volume": 1200000000
  }
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cryptyx-market-history-88a6424d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cryptyx.ai](https://www.zero.xyz/host/cryptyx.ai/llms.txt)
