82trust / 100

Token Price History

by Token price history (USD) in Onchain & crypto

x402 APIPassing, checked 37 min ago

Historical USD price series for a token, by ticker symbol (ETH, BTC, SOL, ...) or by ERC-20 contract + network, at 5-minute (up to 2 days), hourly (up to 30 days) or daily (up to 365 days) resolution. Returns the points plus first/last/high/low and the percent change over the window - the data behind 'how did this token move over the last N days' without a separate market-data subscription. 404 (not charged) when the token is not in the price feed.

POST https://agent402.tools/api/token-price-history

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
191 ms typical, 191 ms slowest 5%
Last check
37 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/token-price-history" \
  -H "content-type: application/json" \
  -d '{"contract":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","days":7,"interval":"1d","network":"ethereum"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Ftoken-price-history
const res = await pay("https://agent402.tools/api/token-price-history", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"contract":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","days":7,"interval":"1d","network":"ethereum"}),
});
console.log(await res.json());

Example input

{
  "contract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "days": 7,
  "interval": "1d",
  "network": "ethereum"
}

Example output

{
  "changePct": 0.005,
  "contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "count": 7,
  "currency": "usd",
  "endTime": "2026-08-22T12:00:00.000Z",
  "fetchedAt": "2026-08-22T12:00:00.000Z",
  "first": 0.99966,
  "high": 0.99982,
  "interval": "1d",
  "last": 0.99971,
  "low": 0.99951,
  "network": "ethereum",
  "points": [
    {
      "price": 0.99966,
      "t": "2026-08-16T00:00:00Z"
    }
  ],
  "source": "alchemy",
  "startTime": "2026-08-15T12:00:00.000Z",
  "symbol": null
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
37 min agoPassed402191 ms$0.004
4 h agoPassed402198 ms$0.004
9 h agoPassed402188 ms$0.004