# x402node Historical Token Price

> x402node Historical Token Price is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-01).

Returns the historical USD price of a crypto token at a specific past timestamp, identified by chain and contract address or CoinGecko ID

## Facts

- Endpoint: GET https://api.x402node.dev/prices/historical?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402node-historical-token-price-e350720a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hckVhW_LAU2KdwwzSD8Db

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 x402node-historical-token-price-e350720a
```

Example prompt: What was the price of WETH on Ethereum (contract 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) on March 10 2024 at midnight UTC? I need it for cost-basis accounting.

## When to prefer this

Use this endpoint when you need the USD price of a specific token at a past point in time — for tax cost-basis calculations, backtesting trading strategies, or financial accounting. Prefer over current-price endpoints when historical accuracy at a specific timestamp is required. Use when the LLM's training data cannot reliably supply accurate historical prices.

## Known failure modes

- Token contract address not found on the specified chain — returns error or null price
- Timestamp is in the future or too recent for historical data — no data available
- CoinGecko ID is invalid or unrecognized — lookup fails
- Chain not supported — returns error
- Price data unavailable for the exact timestamp — may return nearest available or error
- Payment not processed correctly via x402 — 402 Payment Required response

## How this service works

Historical USD price of a token at a specific past timestamp, by chain and contract address or coingecko id. For backtesting, accounting and cost-basis. Data an LLM cannot recall. historical price, price at timestamp, cost basis, backtest, token price history Accepts payment on Base or Solana — either network works.

## Output

Returns the historical USD price of the specified token at the requested timestamp, along with the token and chain identifiers used for the lookup.

## 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",
      "timestamp"
     ],
     "properties": {
      "coin": {
       "type": "string",
       "description": "chain:address or coingecko:id"
      },
      "timestamp": {
       "type": "string",
       "description": "unix seconds, e.g. 1700000000"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402node-historical-token-price-e350720a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
