81trust / 100
Token Price History
by api.x-402.online in Onchain & crypto
x402 APIPassing, checked 2 min ago
Token price history in USD by CoinGecko id or chain:address: a 1-365 day time series with change %, high and low, or the price at an exact past date Token price history in USD for any coin by CoinGecko id or by chain:address: a time series over 1 to 365 days with change %, high and low, or the price at an…
GET https://api.x-402.online/v1/token/price-history
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 145 ms typical, 145 ms slowest 5%
- Last check
- 2 min ago
- Next check
- in 29 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.x-402.online/v1/token/price-history?coin=ethereum&days=7"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%2Fapi.x-402.online%2Fv1%2Ftoken%2Fprice-history
const res = await pay("https://api.x-402.online/v1/token/price-history?coin=ethereum&days=7");
console.log(await res.json());Example input
{
"coin": "ethereum",
"days": "7"
}Example output
{
"change_pct": 5.4,
"coin": "coingecko:ethereum",
"days": 7,
"high_usd": 2890.1,
"low_usd": 2720.4,
"mode": "chart",
"prices": [
{
"price_usd": 2720.4,
"t": "2026-09-20T00:00:00.000Z"
}
],
"symbol": "ETH"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 min ago | Passed | 402 | 157 ms | $0.005 |
| 5 h ago | Passed | 402 | 145 ms | $0.005 |