# x402-services Historical Token Price Lookup

> x402-services Historical Token Price Lookup is a paid API for AI agents from x402-services-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the price of a cryptocurrency token at a specific past date or timestamp for backtesting, accounting, and audit purposes.

## Facts

- Endpoint: POST https://x402-services-production.up.railway.app/api/analytics/price-at
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-services-historical-token-price-lookup-2522e5c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WQX5tgkfaCAUjVdgMrEVe

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-services-historical-token-price-lookup-2522e5c1 -d '<json body>'
```

Example prompt: What was the price of ETH on March 15, 2023? I need the exact USD price for an accounting audit.

## When to prefer this

Use this endpoint when you need a precise historical price for a specific token at a known past date or timestamp — ideal for tax calculations, portfolio P&L, smart contract audits, or backtesting trading strategies. Prefer this over live price endpoints when the date is in the past and accuracy at that moment matters.

## Known failure modes

- Unknown coin symbol or CoinGecko ID returns an error or null price
- Future timestamps default to current price or return an error
- Very old or illiquid tokens may have no historical price data
- Malformed ISO date or unix timestamp causes a validation error
- Payment not processed results in 402 response blocking the call

## How this service works

Point-in-time historical price: what did a token cost at a past date/timestamp? Send { coin, when }. Essential for backtesting, accounting, and audits.

## Output

A point-in-time USD price for the requested token at the specified date or timestamp, suitable for use in financial calculations, audit trails, and backtesting scenarios.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "coin"
 ],
 "properties": {
  "coin": {
   "type": "string",
   "description": "Symbol (ETH), coingecko:id, or chain:0xaddress"
  },
  "when": {
   "type": "string",
   "description": "Unix timestamp or ISO date; default now"
  }
 }
}
```

## More

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