81trust / 100

Coin Market Chart Range

by Coin market chart for a time in Markets & finance

x402 APIPassing, checked 43 min ago

Price, market cap and volume series for a coin over an ARBITRARY time window: `from`/`to` as unix seconds or ISO dates, or `lookback` ("6h", "3d", "2w") ending now. Granularity is automatic upstream: 5-minute points for a window of 1 day or less, hourly up to 90 days, daily beyond. The windowed sibling of crypto-history (which counts days back from now): use it to align with a specific event, a filing date or another series.

GET https://agent402.tools/api/coin-market-chart-range

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agent402.tools/api/coin-market-chart-range?coin=ethereum&currency=usd&lookback=3d"
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%2Fcoin-market-chart-range
const res = await pay("https://agent402.tools/api/coin-market-chart-range?coin=ethereum&currency=usd&lookback=3d");
console.log(await res.json());

Example input

{
  "coin": "ethereum",
  "currency": "usd",
  "lookback": "3d"
}

Example output

{
  "cached": false,
  "coin": "ethereum",
  "count": 73,
  "currency": "usd",
  "fetchedAt": "2026-08-22T13:20:00.000Z",
  "from": "2026-08-19T13:20:00.000Z",
  "granularity": "1h",
  "points": [
    {
      "marketCap": 287000000000,
      "price": 2380.1,
      "time": "2026-08-19T14:00:00.000Z",
      "volume": 13800000000
    }
  ],
  "source": "coingecko",
  "summary": {
    "changePct": 1.87,
    "first": 2380.1,
    "high": 2480.1,
    "last": 2424.5,
    "low": 2350
  },
  "to": "2026-08-22T13:20:00.000Z"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
43 min agoPassed402189 ms$0.008
6 h agoPassed402185 ms$0.008