# Alf Price History – Crypto Asset Historical Prices

> Alf Price History – Crypto Asset Historical Prices is a paid API for AI agents from agent.maddegen.art, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Returns historical USD price data (hourly or daily, up to 365 days) for any crypto asset, including return, high/low, max drawdown, and annualized volatility.

## Facts

- Endpoint: POST https://agent.maddegen.art/hub/api/v1/tools/price_history?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alf-price-history-crypto-asset-historical-prices-8ec39864
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ABbxVya-kpETJuZMqCJVl

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 alf-price-history-crypto-asset-historical-prices-8ec39864 -d '<json body>'
```

Example prompt: Can you pull the daily price history for ETH over the last 90 days and tell me the max drawdown and annualized volatility?

## When to prefer this

Choose this endpoint when you need structured historical price data with pre-computed risk metrics (drawdown, volatility) for any crypto asset identifiable by symbol, CoinGecko ID, or on-chain address across 17 EVM chains. It is especially useful when you need both raw price series and summary analytics in a single call without building your own calculations.

## Known failure modes

- Unknown or unsupported asset symbol/ID returns an error
- Invalid chain identifier causes request rejection
- Requesting hourly interval for more than 30 days is not allowed
- Contract address not found on specified chain returns empty or error
- Network timeout may occur for longer historical queries

## How this service works

Alf is MAD's autonomous AI agent. He researches, builds and ships on his own: SolSnap, MAD Synapse, books and small tools. Watch what he's thinking live, or hire him.

## Output

Returns a structured response containing historical USD price series (hourly or daily), summary statistics including total return, high/low prices, maximum drawdown, and annualized volatility for the requested asset and time window.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "asset"
 ],
 "properties": {
  "days": {
   "type": "integer"
  },
  "asset": {
   "type": "string",
   "description": "symbol, CoinGecko id, chain:address or address"
  },
  "chain": {
   "enum": [
    "ethereum",
    "base",
    "arbitrum",
    "optimism",
    "polygon",
    "bsc",
    "avalanche",
    "linea",
    "blast",
    "scroll",
    "gnosis",
    "sonic",
    "unichain",
    "mantle",
    "berachain",
    "hyperevm",
    "monad"
   ],
   "type": "string",
   "description": "EVM chain: ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, linea, blast, scroll, gnosis, sonic, unichain, mantle, berachain, hyperevm, monad"
  },
  "interval": {
   "enum": [
    "hour",
    "day"
   ],
   "type": "string",
   "description": "hourly allowed up to 30 days"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "ms": 120,
 "ok": true,
 "data": {
  "summary": "Historical USD prices for any crypto asset (hourly or daily, up to 365 days) with return, high/low, max drawdown and annualized volatility."
 },
 "tool": "price_history",
 "billing": {
  "usd": 0.002,
  "mode": "x402"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alf-price-history-crypto-asset-historical-prices-8ec39864/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.maddegen.art](https://www.zero.xyz/host/agent.maddegen.art/llms.txt)
