Token price history (USD) · Token Price History

by Token price history (USD)

POSTBaseSolanaArbitrumPolygonMonadAvalancheeip155:1329OptimismFraxtaleip155:42220stellar:pubnetalgorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=

$0.004

per call · USD Coin on Base

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.

Endpoint

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

3

Calls / 30d

1

Unique payers / 30d

Aug 31

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("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"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agent402.tools/api/token-price-history" \
  -H "Content-Type: application/json" \
  -d '{"contract":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","days":7,"interval":"1d","network":"ethereum"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "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
}

Payment details

Pay to0xabf4fabd7c416fb67202e5f9002389fc75e2a9d0
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Arbitrum, Polygon, Monad, Avalanche, eip155:1329, Optimism, Fraxtal, eip155:42220, stellar:pubnet, algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=
Schemesexact, upto

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from Token price history (USD) & similar services