Crypto price history
price_historyGet past USD prices for a crypto asset (ETH, BTC, SOL, LINK and others with a Chainlink feed) over up to 365 days: up to 100 points read from Chainlink's on-chain price feed on Ethereum, each with its time and round, plus first, last, high, low and percent change.
$0.002 USDC per call over x402. Failed calls cost nothing. Call without payment to get a quote.
When to use: You need past prices for a major asset: a trend, a high or low, or the change over a period. Use instead: token_price for the current price of any token, including ones without a Chainlink feed. Parameters: asset: a symbol with a Chainlink USD feed (ETH, BTC, SOL, LINK and others). days: 1-365, default 7. points: 2-100 evenly spaced prices, default 24. Returns: points[] each with time, price_usd and Chainlink round, plus first, last, high, low and percent change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How far back, in days (default 7). | |
| asset | Yes | Symbol, e.g. "ETH", "BTC", "SOL" or "LINK". | |
| points | No | How many prices to return (default 24). | |
| payment | No | Base64 x402 payment payload. Omit it to receive a quote; sign that and call again. |